LM Evaluation Harness
Two papers report an MMLU score for the same model and the numbers differ by several points. Neither is lying — they prompted differently, scored differently, or normalised differently. The LM Evaluation Harness exists to remove that ambiguity: one implementation of each benchmark that everyone runs the same way.
What it actually standardisesEach task in the harness pins down the parts a paper usually leaves vague:
- the exact prompt template, and how many few-shot examples precede the question;
- how an answer is scored — for multiple choice, by comparing the model's log-likelihood of each option rather than parsing free text;
- the metric, including length-normalised accuracy, and how refusals and ties count.
It ships hundreds of tasks and reaches models through swappable backends — Hugging Face Transformers, vLLM for throughput, or a hosted API — so one configuration evaluates a local checkpoint and a commercial endpoint alike. Fine-tune a model and this is how you find out what the fine-tune broke; it has also served as the engine behind public open-model leaderboards.
Why the version mattersTask definitions change as bugs are found, and a scoring fix can move a reported number further than a genuine model improvement would. Comparisons mean something only between runs of the same harness version with the same few-shot count, which is why careful results quote both. Contamination stays its blind spot: the harness measures faithfully, including when the test questions were already in the training data.
The LM Evaluation Harness is EleutherAI's open framework for running language-model benchmarks reproducibly. Each task fixes the prompt template, the few-shot count, the scoring method — typically comparing log-likelihoods of the answer options — and the metric, so numbers produced by different groups are comparable. It covers hundreds of tasks across swappable model backends and underpins public leaderboards. Results remain comparable only within the same harness version and task configuration.
If two schools set the same exam, but one allows notes, phrases the questions differently and marks more generously, comparing their results tells you nothing. Language models have exactly this problem: a score depends heavily on how the question was asked and how the answer was marked. The LM Evaluation Harness is a shared exam hall. It holds hundreds of standard tests and fixes precisely how each one is given and graded, so a number from one team can be set beside a number from another. Most published scores you see for freely available models come out of it.