lm-evaluation-harness
AI Infrastructurelm-evaluation-harness is a standardized framework for benchmarking language models on few-shot and zero-shot tasks — things like MMLU, HellaSwag, ARC, GSM8K, TruthfulQA, and hundreds of other academic benchmarks.
What it is
lm-evaluation-harness is a standardized framework for benchmarking language models on few-shot and zero-shot tasks — things like MMLU, HellaSwag, ARC, GSM8K, TruthfulQA, and hundreds of other academic benchmarks. It handles the annoying parts of LLM evaluation: prompt formatting, answer extraction, scoring logic, and batching, so you don't reimplement eval code for every benchmark and every model architecture. It supports Hugging Face transformers models natively, plus backends for vLLM, GGUF, OpenAI-compatible APIs, and others. Despite the "Training" category label here, this is squarely an evaluation tool, not a training framework — it's what you run after you've trained or fine-tuned something to know if it's actually any good.
Who builds it and why
Built and maintained by EleutherAI, the open research collective behind GPT-Neo/GPT-J and a chunk of foundational open LLM research. It exists because EleutherAI needed reproducible, comparable eval numbers across their own model releases and didn't trust ad-hoc scripts to do it consistently. It became the de facto backend for Hugging Face's Open LLM Leaderboard, which is why it has outsized influence relative to its visibility — most "my model scores X on MMLU" claims in papers and model cards trace back to this codebase or a fork of it.
Production readiness signal
414 contributors and a commit as recent as 2026-06-24 against 13,131 stars indicates an actively maintained project with real community investment, not an academic one-off. v0.4.x versioning suggests the maintainers still consider it pre-1.0 — expect occasional breaking changes to task configs or CLI args between minor versions. CNCF maturity is not applicable (this isn't a CNCF project) and founding date isn't publicly documented, but the commit cadence and contributor count are the stronger signals here: this is a living tool, not an abandoned research artifact. MIT license, pure Python, no vendor lock-in.
Who should use this
- Teams fine-tuning or pretraining open-weight models who need standardized, citable benchmark numbers.
- Researchers who need to reproduce or compare against published leaderboard scores.
- ML platform teams building internal eval pipelines who want a battle-tested task-definition format instead of hand-rolling prompt/scoring logic per benchmark.
- Anyone evaluating quantization, distillation, or pruning changes and needing before/after regression numbers on standard tasks.
Who should NOT use this
- Teams needing production LLM monitoring or online eval (latency, drift, user feedback loops) — this is offline batch benchmarking, not observability.
- Anyone evaluating RAG pipelines, agentic workflows, or multi-turn conversation quality — the task format is built around single-turn, static benchmark datasets, not your application's actual use case.
- Teams that need domain-specific or proprietary eval sets as the primary signal — you can write custom tasks, but if your real question is "does this model work for our support tickets," academic benchmarks here are a weak proxy and you're better off building a targeted eval set with a lighter-weight harness.
- Non-Python shops wanting a black-box CLI with no code exposure — you will end up reading and sometimes patching the task YAML/Python to get correct results, especially for newer or non-English benchmarks.
Alternatives
- HELM (Stanford CRFM) — broader in scope (covers bias, robustness, efficiency metrics alongside accuracy), heavier to run, more opinionated about methodology.
- OpenAI Evals — better if you're specifically evaluating against OpenAI-compatible APIs and want a lighter task-authoring format; smaller academic benchmark coverage.
- DeepEval / promptfoo — better fit if your priority is application-level (RAG, agent, prompt) evaluation rather than academic benchmark reproduction.
Pricing
Fully open source, MIT licensed. No paid tier, no hosted service, no vendor. Compute cost is whatever you spend running inference for evaluation — that's the only real cost.