LM Evaluation Harness
Framework for few-shot evaluation of language models across more than 60 standard benchmarks.
About
EleutherAI's evaluation harness has become the standard way to benchmark language models, implementing more than 60 academic benchmarks with hundreds of subtasks and variants behind a single command line interface. Tasks are defined in YAML configuration files, which keeps prompts reproducible and makes new benchmarks straightforward to add. Models load through HuggingFace transformers, including PEFT and LoRA adapters, or through vLLM, SGLang, GPT-NeoX, Megatron-DeepSpeed, and OpenAI-compatible APIs, so the same task definitions apply to local checkpoints and commercial endpoints alike, with prototype multimodal support via the hf-multimodal and vllm-vlm model types. Installation is a pip install of the lm_eval package with optional extras per backend, and hardware needs depend entirely on the model under test. The code is MIT licensed with no paid tier. It serves as the backend of the Hugging Face Open LLM Leaderboard, is used internally at NVIDIA, Cohere, BigScience, and MosaicML, and has appeared in hundreds of papers, making its prompt formats a common reference point for comparable numbers.
Should you use LM Evaluation Harness?
Pick it when
Pick the harness when you need benchmark numbers comparable to the Open LLM Leaderboard and published papers, on local checkpoints including LoRA adapters or on OpenAI-compatible APIs, with tasks defined in YAML.
Look elsewhere when
Skip it if you want app-level testing of prompts or RAG pipelines, where promptfoo or DeepEval fit, or agentic evals with tool use, which Inspect is built for. Multimodal support is still a prototype.
Alternatives to LM Evaluation Harness
- LightEval
Larger built-in catalog of 1,000+ tasks and sample-level result inspection; scores may not match the harness prompt formats used in papers.
- OpenCompass
Built-in distributed splitting for large sweeps and CompassRank leaderboards; better coverage of Chinese models and providers.
- HELM
Scores calibration, robustness, bias, and toxicity beyond accuracy with inspectable completions; maintenance mode since June 2026.
- Inspect AI
Composes datasets, solvers, and scorers for agentic and safety evals; less standard for headline accuracy comparisons.
Reviews (0)
Leave a Review
No reviews yet. Be the first to review!
Details
- Category
- AI Observability & Evaluation
- Price
- Free
- Platform
- Local/Desktop
- Difficulty
- Intermediate (3/5)
- License
- MIT
- Added
- Jul 29, 2026