Benchmark LLMs across 60+ academic tasks (MMLU, GSM8K, HumanEval, HellaSwag) using the industry-standard EleutherAI evaluation harness.
npx clawhub@latest install lm-evaluation-harnessLM Evaluation Harness is the industry-standard framework for benchmarking LLMs across 60+ academic tasks, including MMLU, GSM8K, HumanEval, TruthfulQA, and HellaSwag. It is used by EleutherAI, HuggingFace, and major research labs — including as the engine behind the Open LLM Leaderboard. Install it when you need reproducible, comparable quality metrics for any HuggingFace or vLLM-compatible model.
npx clawhub@latest install lm-evaluation-harnessClick the Install button at the top of this page for one-click setup
Covers MMLU (57 subjects), GSM8K, HumanEval, TruthfulQA, HellaSwag, ARC, MBPP, WinoGrande, and many more. All tasks use standardized prompts so results are directly comparable across runs and teams.
Switching from the HuggingFace backend to vLLM cuts evaluation time by 5-10×. A full MMLU run on a 7B model drops from ~2 hours to ~15-20 minutes with tensor-parallel vLLM.
Provide a list of model IDs, run evaluations in batch, and generate a markdown comparison table with per-task scores. Supports any mix of HuggingFace hub models and local checkpoints.
Evaluate checkpoints at regular training steps using fast benchmarks (HellaSwag, GSM8K), save per-step JSON results, and plot learning curves to monitor model improvement over time.
Run 4-bit and 8-bit quantized models via load_in_4bit and load_in_8bit model args, reducing VRAM requirements from ~16 GB to ~8 GB for 7B models without changing the evaluation pipeline.
Supports --batch_size auto for optimal throughput detection, --device selection, CPU offloading via device_map=auto, and multi-GPU tensor parallelism through the vLLM backend.
Run 5-shot MMLU, GSM8K, and HellaSwag evaluations on your model using the same prompts as published papers and the Open LLM Leaderboard, producing directly comparable numbers.
Before releasing a fine-tuned checkpoint, run the standard benchmark suite to confirm quality thresholds are met and generate a results JSON suitable for model card reporting.
Integrate lm_eval calls into your training loop to evaluate lightweight benchmarks every N steps, catch regressions early, and plot accuracy curves across the training run.
Evaluate a list of candidate models (e.g., Llama-2-7b, Mistral-7B, Phi-2) on the same task suite in batch and output a markdown comparison table for team review.
lm-eval, transformers; vllm optional for fast inference; human-eval required for HumanEval code executionHF_TOKEN environment variablenpx clawhub@latest install lm-evaluation-harnessLog in to write a review
No reviews yet. Be the first to share your experience!