Eval harnesses: lm-eval-harness, Inspect, HELM, lighteval, app-level tools

Reading: 26 min, plus 12 in closed details. How a harness turns a benchmark into a score, why the same model scores differently in different harnesses, what to pin and report, and running evals at scale. Data as of October 2026 (versions checked 4 October 2026). A child of Topic: evaluation-and-llm-judges.

The idea in one sentence. A benchmark score is the output of a chain of harness decisions (prompt template, few-shot examples, chat template, reading the answer by log-likelihood or by generation, answer extraction, normalisation), every harness makes them differently by default, and changing one link moves the same weights on the same questions by tens of points.

Every number on this chain was measured on one model with one link changed. Qwen2.5-0.5B-Instruct on 200 MMLU test items, ten harness settings (section 3, Why scores differ); the GSM8K line is this page's own lm-eval run, two filters on identical outputs. The one figure not from that model: LLaMA-65B, 63.6 under the original MMLU code against 48.8 under lm-eval-harness as of January 2023 (Hugging Face, 23 June 2023). Each bar is the paired change in points when only that link moves; red bars lie outside the paired 95% interval.

  1. The chain. One item enters on the left and leaves as a score on the right, through seven links: prompt template, few-shot examples, chat template, reading the answer, extraction, normalisation and averaging, scoring and logging. Every harness makes each decision by default, and each makes it differently.
  2. Prompt template and shots (links 1 and 2). The original MMLU prompt to a HELM-style prompt moved this model by 0.0 points; 5 shots to 0 by -0.5. Both bars sit inside the paired interval: no detectable effect at n = 200.
  3. Chat template (link 3). The same 0-shot prompt wrapped in Qwen2.5's chat template and parsed strictly: -33.5 points. Adding "Answer with only the letter." gives back +30.5. The largest effect on this page.
  4. Read the answer (link 4). Log-likelihood to generation: +2.0, inside the interval. Scoring the answer text instead of the letter: -14.8 for LLaMA-65B, the one bar from a published case rather than this model.
  5. Extraction (link 5). Strict to lenient parsing of the same chat outputs: +17.5. On this page's GSM8K run, lm-eval's two filters read identical outputs as 0 and 1 correct out of 10.
  6. Normalise and average (link 6). acc to acc_norm: +0.5. One leaderboard run of Llama 3 8B gives MMLU 66.70 as a macro average and 65.46 micro.
  7. The whole chain. Two links (chat template and extraction, with the instruction that repairs the first) move this model by tens of points; the rest move it by less than their error bars. The last link, the per-sample log, is what lets you tell which one moved a score.

You need

New terms

  • Harness: the program that turns a benchmark into a number (not the agent "harness" that runs a model in a loop, which is Topic: agentic-harnesses).
  • Shots: solved examples placed in the prompt before the question.
  • Log-likelihood scoring: compare the model's probabilities of given answers; generative scoring: let it write, then parse.
  • Extraction (lm-eval: filter): the code that finds the answer in generated text.
  • Solver and scorer (Inspect): a step that changes the sample's state; the function that grades the final state.
  • acc_norm: log-likelihood divided by the answer's length in characters.

The harnesses, by design

Eight harnesses grade a model on public tasks; two app-level tools grade your application on your cases. Versions and status are volatile and sit in one dated table (Which one).

HarnessUnit of workHow it reads answersAgents isolated?
lm-evaluation-harness
EleutherAI
A task YAML: dataset, prompt templates, output type, filters, metricsFour request types: loglikelihood, loglikelihood_rolling, multiple_choice, generate_until; generated text through filter chains (regex, take first, majority vote)No; code tasks run on the host only with --confirm_run_unsafe_code
Inspect and inspect_evals
UK AI Security Institute
A Python Task: dataset, solver chain, scorer, run once per sampleScorers on the final state (match, includes, pattern, choice, math, model_graded_qa, custom); target_perplexity() for loglikelihood-style scoring since 0.3.212Yes: a sandbox per sample (Docker built in; Kubernetes, VMs and cloud sandboxes as packages)
lighteval
Hugging Face
A Python LightevalTaskConfig; newer tasks also carry Inspect fields (sample converter, solver, scorer)Loglikelihood and generative metrics; math answers parsed as expressions (Math-Verify style)Through its Inspect backend
HELM
Stanford CRFM
A RunSpec: scenario, adapter spec (how to prompt), metric specsGeneration and multiple-choice adapters; seven metric families (accuracy, calibration, robustness, fairness, bias, toxicity, efficiency)No
simple-evals
OpenAI
One Python class per benchmark, zero-shot chain-of-thought promptsRegex on an "Answer:" line, or a grader modelNo
OpenAI evalsA registry YAML naming an eval template plus JSONL samplesMatch (output starts with the ideal answer), includes, fuzzy, model-graded YAMLNo
Evalchemy
DataComp, Bespoke Labs
A Python benchmark class built on lm-eval's model and request typesPer benchmark (MATH500 with hendrycks_math's boxed-answer equivalence)No
Unitxt
IBM
A recipe: card (loader, preprocessing, task) plus template, format and demosMetrics from its catalogNo
promptfoo
app level
An application config: prompts x providers x test cases, each with assertions44 deterministic and 17 model-assisted assertion typesNot a sandbox; its red-team mode attacks your app
Braintrust
app level, commercial
Eval(data, task, scores) in your code, stored as an experimentAutoevals, code and LLM-as-judge scorers; online scoring rules on production tracesRemote evals or sandboxes for agent code
The boundary rule
Model-level harnesses answer "is this checkpoint good?"; app-level tools answer "is this system change safe to ship?". A regression gate on a model swap is the second kind even when the trigger is a model: run a harness for the candidate's general capability, and app-level golden sets for the product surface (Production eval engineering owns gates and golden sets).

1. Two designs: a list of requests, or a program per sample

Every harness loads items, gets the model to respond and turns the response into a number. What it treats as the unit of work decides what it can score, what it logs and whether it can run an agent safely.

  • lm-evaluation-harness builds requests. A YAML file says how to render each document into text; the harness builds every request up front (context plus a log-probability to compute or a generation with stop strings), sends them in batches to a backend that implements only three methods, then runs filters and metrics over the responses. Nothing happens per sample that the YAML did not declare: reproducible, and it scales to hundreds of fixed tasks.
  • Inspect runs a program per sample. A Sample becomes a TaskState; a chain of solvers transforms it (add a system message, fill a template, call the model, call a tool, critique, loop as an agent); a scorer grades the final state; every step is recorded as an event. It can express agents, sandboxes and judge batteries, and its logs are complete.

Fig. 2 runs on this page's two real runs: Qwen2.5-0.5B-Instruct (fp32, CPU, 2 threads) on the first ten GSM8K test problems, under lm-eval 0.4.13's gsm8k task as shipped and under inspect_evals 0.23.0's gsm8k on inspect-ai 0.3.276, greedy in both (Inspect needed do_sample=False, section 2) and Inspect capped at 512 new tokens instead of its 2048 default to bound CPU time. Slab lengths are token counts; cubes are verdicts.

  1. lm-eval builds every request first. The YAML renders each of the ten problems into one context (five solved problems drawn for that problem, then the question) before the model runs: ten requests of 748 to 1,096 tokens, all queued.
  2. One batch to the model. The backend only has to answer generate_until(context, until): the ten contexts go in together and ten continuations come back, 29 to 213 tokens each.
  3. Filters over all the responses. Two filter chains read the same ten texts: strict-match finds "#### N" in 7 of them and none is correct; flexible-extract takes the last number and gets 1 right.
  4. One number per filter. exact_match is averaged per filter (0.0 and 0.1) and written to a results file of 5.5 KB; --log_samples adds one record per problem and filter, 90.8 KB for the ten.
  5. Inspect runs a program per sample. One Sample becomes a TaskState; the solvers system_message, prompt_template and generate() change it in turn and the scorer grades the final state. Every step writes events into the log: 20 per sample here.
  6. Ten programs in flight. Each sample runs its own chain, concurrently; match(numeric=True) marks 2 of 10 correct. Nothing is declared up front, so a solver could call a tool, loop as an agent or open a sandbox for its sample.
  7. What each design keeps. A request is fixed before the run, batched and cheap to log: 6.2 to 11.2 KB per problem. A program per sample keeps every message and event: 25.9 to 36.4 KB per problem.

The same GSM8K problem through both

The same ten problems, read one at a time. The widget is a reader's tool, not an animation: it opens on the scoring step of the first problem where the two harnesses' own logged verdicts disagree; pick a problem and a harness, then step back to see the real context, request, output and what each filter or scorer read. Predict first: which harness builds the longer prompt, and which keeps more about one problem?

Ten items cannot compare the two harnesses' accuracy (1 correct out of 10 has an exact 95% interval of 0.3% to 44.5%); the stepper shows what each harness does to one problem. The bars share one scale across both modes: prompt tokens, output tokens, bytes kept per problem.

What "every step is an event" buys: one sample in inspect view, tool calls and their results in order, with Scoring and Metadata one click away. lm-eval's per-sample log has no equivalent because a request has no steps. The real logs of this page's two runs, field by field: tab Inside a run log.

Inspect View showing one sample's Messages tab: the system and user messages, two assistant tool calls to a wikipedia tool with their returned summaries, then the final assistant answer; Scoring and Metadata tabs beside Messages
One sample in inspect view. Image: inspect_ai documentation, UK AI Security Institute, MIT licence (source).

2. From benchmark to score: the decisions in order

Follow the hero's chain left to right. For each link: what the harnesses do by default, and the size of the effect when only that link changes (Qwen2.5-0.5B-Instruct on 200 MMLU items unless another source is named).

Prompt template and few-shot selection

HarnessShots by defaultHow they are chosen
lm-eval gsm8k5, raw text, each ending "#### N"Sampled from the train split with seed 1234 (defaults "0,1234,1234,1234" for Python, NumPy, torch and few-shot): a different five for every problem, measured: the ten contexts start with ten different questions and run 2,181 to 3,328 characters
lm-eval mmlu0 unless --num_fewshotThe first n dev examples, in order, as the original MMLU code
inspect_evals gsm8k10, in one system messageRandom train examples with a fixed seed: the same system message for every problem (measured, all ten identical)
HELM gsm5, "Q: ... A:"Sampled train instances, answers' "####" replaced by "The answer is"
simple-evals0, chain of thoughtNone: few-shot and role-play prompts are "carryovers from evaluating base models"

Size of the effect. On the 0.5B model, 5 shots to 0 moved MMLU by -0.5 points and the original prompt to a HELM-style prompt by 0.0: both inside the paired interval, so no detectable effect on this model. It is not zero everywhere: inspect_evals' MMLU README reports Claude Sonnet 4.5 at 36.0 with 0 shots and 54.5 with 5. Shots teach the answer format; whether that matters depends on whether the model already follows the format.

Chat template

Instruction-tuned models were trained on their own chat format; sending them raw text is a different test, and each harness has a different default:

  • lm-eval sends raw text unless asked. --apply_chat_template wraps prompts in the tokenizer's template, --fewshot_as_multiturn (on by default with it) turns the shots into alternating turns, and --system_instruction adds a system prompt (interface.md). The results file records a hash of the chat template and of the system instruction.
  • Inspect sends messages; its Hugging Face provider applies the tokenizer's chat template unless use_chat_template=False.
  • simple-evals and the app-level tools always send chat messages; HELM builds a text prompt and the model client decides how to send it.

Size of the effect: the largest on this page. The same 0-shot MMLU prompt, raw then wrapped in Qwen2.5's chat template and parsed strictly: 41.5% to 8.0% (-33.5 points); 168 of 200 answers had no letter where the parser looked, because the model explains instead of answering. Adding "Answer with only the letter." brought it back to 38.5%. Qwen2.5's template also inserts a default system line ("You are Qwen ... a helpful assistant") when none is given: a knob nobody set.

A default worth knowing: Inspect's local Hugging Face provider samples
Inspect's hf provider sets do_sample=True unless the model argument do_sample=False is passed (hf.py line 118), so a local run uses the model's own sampling settings (Qwen2.5-0.5B-Instruct's generation config: temperature 0.7, top-p 0.8, top-k 20, repetition penalty 1.1). Passing --temperature 0 instead raises an error in transformers 5.18, which this page hit. lm-eval's GSM8K task sets do_sample: false, temperature: 0.0 in the YAML. Greedy against sampled is a knob in its own right.
Fig. 3 · One MMLU item, read three ways: the same weights give a right, a wrong and an invalid answer
Predict: on the chat-template mode, will the strict parser find a letter? Then step through each mode.
What the harness sends
Next-token probabilities after "Answer:"
Model output

Read the answer: log-likelihood or generation

lm-eval-harness has four request types (lm_eval/api/instance.py) and a backend implements three methods to run them all (model guide):

  • loglikelihood(context, continuation): the log-probability of a given continuation and whether it is the greedy one. A multiple_choice task asks it once per option and picks the largest. Deterministic, cheap, works on base models, can never produce an invalid answer; it measures how the model ranks given options, never whether it can produce one, and it needs prompt log-probabilities, which most chat APIs do not return.
  • loglikelihood_rolling(text): the log-probability of a whole text, for perplexity and bits-per-byte.
  • generate_until(context, until=[...]): generate until a stop string, then filter. What chat and reasoning models need; every extraction rule becomes part of the score.

The other harnesses lean generative: HELM has both adapters; Inspect, simple-evals, promptfoo and Braintrust score generated text. Inspect added perplexity() and target_perplexity() in 0.3.212 (24 April 2026; changelog), described by its docs as the counterpart of lm-eval's loglikelihood pattern; it needs prompt log-probabilities, which only its vLLM and SageMaker providers supply (Inspect: Perplexity).

Fig. 3, step by step (the list follows the mode chosen above the figure)

  1. One prompt, one forward pass. The instruction line, five solved dev examples in order (none with the 0-shot toggle), this question, then "Answer:".
  2. Every token gets a probability. The model returns one for each of Qwen2.5's 151,665 tokens; the five most likely are shown.
  3. Keep the four letters. Only " A" to " D" count, renormalised to the four, so an invalid answer is impossible and the rest of the vocabulary is ignored.
  4. The largest wins. The letter with the highest probability is the answer, compared with the gold letter.

Size of the effect. On the raw prompt this model behaves: the four letters hold 99.9% of the next-token probability, greedy decoding's first token is the log-likelihood pick on 200 of 200 items, and log-likelihood to generative moved the score by +2.0 points. The gap opens only through the chat template and the parser. Hugging Face's Open LLM Leaderboard v2, run on lm-eval, mixed both: four of its six tasks (BBH, GPQA, MMLU-Pro, MuSR) are multiple_choice and two (IFEval, MATH Level 5) generate_until (tasks/leaderboard). Scores under the two formats are different measurements even when the benchmark has the same name: never compare across them.

Length normalisation, exactly
For multiple_choice tasks lm-eval reports acc (argmax of the summed log-probabilities), acc_norm (argmax of the sum divided by the option's length in characters) and, when asked, acc_bytes (divided by its UTF-8 byte length) and acc_mutual_info (task.py lines 1494 to 1560). Correction: the old version of this page called acc_norm byte-length normalised; it is character-length, the same for ASCII options and different for most other scripts. On the 200 items, acc to acc_norm moved +0.5 points; scoring the answer text instead of the letter moved this model +0.5 and LLaMA-65B -14.8.

Extraction: the code that finds the answer

A generative score is only as good as the code that finds the answer in the text. On GSM8K each harness uses a different rule (the files themselves: tab GSM8K in every harness):

HarnessRule for the GSM8K answer
lm-eval gsm8kTwo filters side by side: strict-match needs #### <number> (the format the 5 shots teach); flexible-extract takes the last number-like string. Then exact_match after removing commas, $ and a trailing period
inspect_evals gsm8kThe prompt asks for ANSWER: $ANSWER, but match(numeric=True) ignores that line: it takes the last number in the output and compares numerically at 5 significant digits (.5g): for the 18 of 1,319 test answers above 99,999, a prediction of 114,201 matches a gold of 114,200
lighteval gsm8kParses expressions and LaTeX (a boxed answer first) from output and gold, then compares the parsed values
HELM gsmfinal_number_exact_match: the last match of -?[\d,]+(?:.\d+)?. The dot is unescaped, so it matches any character: "3 4" is read as one number
simple-evals MGSM (English)Text after the last "Answer", then the last number in it (the code comment says "the first number"; the code returns the last). The match is case-sensitive, so an "ANSWER:" line, the format inspect_evals asks for, is never found
OpenAI evals MatchThe output must start with the ideal answer, which a chain-of-thought answer never does

Seven rules, identical text, verdicts from 0 to 2 correct out of 10. Fig. 4: Twenty real outputs (this page's two GSM8K runs), each scored by every harness's rule: the harness's own code where it installs (lm-eval, Inspect, lighteval), a verbatim copy where it does not (HELM, simple-evals, openai/evals), src/compute_extract.py. lm-eval's logged result on its own outputs: strict-match 0 of 10, flexible-extract 1 of 10. Not a ranking: the point is that the same text gets different verdicts.

  1. Twenty real outputs. This page's two GSM8K runs: ten lm-eval outputs (5-shot raw text) in front, ten Inspect outputs (chat, 10 shots) behind; slab height is the output's length.
  2. lm-eval strict-match. It needs "#### N": it finds one in 7 of the lm-eval outputs, none of them right, and in none of the Inspect outputs, which were asked for "ANSWER:". 0 correct.
  3. Last number in the text. lm-eval flexible-extract, Inspect's match(numeric=True) and HELM's final number read almost every output and agree on the verdicts: 1 correct of the lm-eval outputs and 2 of Inspect's.
  4. lighteval's parser. It parses expressions from output and gold, then compares values: the same 1 and 2.
  5. simple-evals and openai/evals. The MGSM rule needs a case-sensitive "Answer": it finds one in 2 Inspect outputs, both wrong. Match needs the output to start with the answer: 0 of 20.
  6. One output, seven readings. lm-eval's output for problem 7 (gold 260), the first on which the rules disagree: strict-match finds no "#### N" and reads [invalid], four rules read 260, simple-evals finds no "Answer", Match reads the opening words. 4 of the 7 rules mark it correct.
  7. Same text, different scores. Totals per run from 0 to 2 correct out of 10. Not a ranking of harnesses: the rule that reads the answer is part of the score.

Size of the effect. On MMLU through the chat template, strict to lenient extraction moved the score from 8.0% to 25.5% (+17.5); on Qwen2.5-72B-Instruct's saved MATH Level 5 answers, swapping the parser moved the Open LLM Leaderboard score from 1.21 to 59.82. Extraction failures score as wrong answers, silently. They are the usual cause of "model X dropped 20 points": a new model writes **72** or \boxed{72} or "The answer is: 72 dollars" and the old regex misses it. When a score moves, read ten failures before believing it.

Every rule on one output, or on your own text
Output
RuleReadsVerdict

Type a model answer and a gold number; six of the seven rules run live (lighteval's parser uses sympy and runs only offline). The JavaScript copies are checked against the harnesses' own code on all twenty outputs by src/recompute.py.

RuleReadsVerdict

Normalisation and averaging

The last link: one number from many. Llama 3 8B's MMLU on the Open LLM Leaderboard is 66.70 as the mean of the 57 subject accuracies (macro) and 65.46 weighted by questions (micro), same run. Leaderboard v2 rescales so that chance is 0: Llama 3.1 8B Instruct's MMLU-Pro is 37.98 raw and 31.09 displayed. Name the averaging and any rescaling next to the number.

3. Why the same model scores differently: measured

To separate the links, this page ran one small open model through ten harness settings on the same items, each setting differing from a neighbour in one knob only. Computed by this page, not a published figure: Qwen2.5-0.5B-Instruct (fp32 on CPU, greedy), the first 8 test questions of each of the first 25 of the 57 MMLU subjects in alphabetical order (abstract algebra to high school macroeconomics; n = 200), run on 4 October 2026 with src/spread/repro_mmlu_knobs.py. A 0.5B model is far from a frontier model, so read the gaps, not the levels.

Knob changed aloneFrom, toPaired changeItems fixed / broken
Chat template (off to on), 0-shot, strict41.5% to 8.0%-33.5 ±6.82 / 69
Instruction "Answer with only the letter."8.0% to 38.5%+30.5 ±6.763 / 2
Answer extraction (strict to lenient)8.0% to 25.5%+17.5 ±5.335 / 0
Scoring: log-likelihood to generative43.0% to 45.0%+2.0 ±6.222 / 18
Few-shot count (5 to 0)43.0% to 42.5%-0.5 ±6.119 / 20
Prompt template (original to HELM-style)43.0% to 43.0%0.0 ±5.415 / 15
Scoring target (letter to answer text)43.0% to 43.5%+0.5 ±6.925 / 24
Length normalisation (acc to acc_norm)43.5% to 44.0%+0.5 ±5.114 / 13

Gold letters in this sample: A 51, B 55, C 52, D 42. Letters picked by log-likelihood at 5 shots: A 50, B 54, C 55, D 41; at 0 shots: A 75, B 53, C 46, D 26: without examples the model leans towards "A", and the score barely moves only because the leaning happens to cost little here. Paired intervals and item counts: Eval statistics owns the method.

Two links move this model by tens of points; the rest do nothing detectable. Bars: accuracy with a 95% binomial interval; dashed line: chance (25%). Arrows: the paired change when only that knob moves, on the same 200 items, with its paired 95% interval. Five of eight knobs have a paired interval that includes zero at n = 200: no detectable effect on this model, which does not mean none on others.

A published case: LLaMA-65B, 48.8 or 63.6

Five readings of one checkpoint on MMLU's 14,042 test questions: the LLaMA paper's Table 9 (63.4), the original MMLU code run by Hugging Face (63.6), HELM at commit cab5d89 (63.7), the Open LLM Leaderboard v1 after its fix (63.93; macro, micro 63.74) and lm-eval-harness as of January 2023 (48.8), which scored each answer's text instead of its letter, with a different prompt and five randomly drawn shots (Hugging Face, 23 June 2023). The leaderboard showed 48.8 until it re-ran MMLU with the fixed harness in July 2023. The same three implementations also reorder eight models:

A harness change is not a constant offset: it reorders models. MMLU accuracy per implementation from the table in the Hugging Face post; ranks recomputed by src/spread/recompute.py.

Rule
Two scores are comparable only when every link matches, or when the gap is measured on the same items with only that link changed. Agreement is possible: Llama 3 8B scored 66.7 (Meta), 66.70 (Open LLM Leaderboard) and 66.76 (HELM) because all three used 5 shots and a letter answer.
Six published cases, every reading with its harness, prompt, shots, scoring, extraction and source

LLaMA-65B on MMLU; Llama 3 8B (agreement); Llama 3.1 8B Instruct on MMLU (Meta 69.4 at 5 shots, 73.0 with 0-shot chain of thought, HELM 56.06 through Together's FP8 endpoint) and MMLU-Pro (Meta 48.3 against the leaderboard's 37.98, displayed 31.09); Qwen2.5 Instruct on MATH Level 5 (the parser: 72B 1.21 to 59.82, 7B 0.0 to 50.0 on the same generations; Hugging Face reports 4.66 points gained on average over 3,751 models); inspect_evals MMLU on three API models (GPT-5.1 84.0 both ways, Claude Sonnet 4.5 36.0 and 54.5, Gemini 3 Pro 0.0 by format and timeout); DROP on the Open LLM Leaderboard (generation stopped at the first ".", removed on 1 Dec 2023). Every number is copied from a dated source or recomputed from the run files, never read off a chart.

Model developerHarness or leaderboard maintainerIndependent reimplementation

The Hugging Face post's figure shows the January 2023 harness scoring "A. It damaged support...", letter plus text; the code at commit e47e01b scores " " + choice, the text alone (hendrycks_test.py). Spreads from reasoning effort, tools, sampling, splits and benchmark versions are not harness mechanics: Topic: benchmarks, tab "Same model, many numbers".

4. Reproducibility: pin every link, report what you ran

A score is reproducible only if every input to it is pinned and every output is kept. Each link of the chain above becomes a line of the report; the harnesses differ in how much of it they write down for you.

What to pinlm-evalInspect / inspect_evalsHELM
Harness codegit_hash and package version in the results file (git_hash is null when installed from PyPI)Package versions and the task file's git revision in the log's eval headerPackage version; per-run spec JSON
Task definitionmetadata.version in the YAML (GSM8K: 3.0), plus the full rendered configEval version metadata from each eval's eval.yaml; task arguments recordedRun spec name and arguments
DatasetA Hub path; no revision unless the YAML adds dataset_kwargsGSM8K pins dataset revision cc7b047 in codeGSM8K downloads train.jsonl and test.jsonl from the GitHub repository's master branch, unpinned
ShotsCount, sampler and seed (1234)Count, seed, shuffle (on by default)Count (five sampled train instances)
Prompt as sentprompt_hash, doc_hash, target_hash per sample; chat template and system instruction hashesEvery message of every model call, in fullEvery request and response per instance
Output and score--log_samples: raw response, filtered response per filter, metricOutput, score, answer read, explanation, timing and token usage per samplePer-instance stats and metrics

The report line, one per number: harness and commit, task and task version, dataset revision, shots (count, sampler, seed), chat template on or off and its hash, system prompt, scoring method (acc or acc_norm by name, or generative), decoding (greedy or sampled with seed and epochs), max tokens and stop strings, extraction rule and the share of answers with nothing extracted, averaging (macro or micro, any rescaling), serving (precision, provider). When a number moves, the first three suspects are a real capability change, a broken extraction filter and a truncated completion; only per-sample logs separate them (tab Inside a run log walks both formats from the real runs).

Logs can misreport: token counts from Inspect's local provider
Inspect's local Hugging Face provider records each sample's usage as the padded batch shape: in this page's run every one of the ten samples logged 2,269 input and 494 output tokens, while the real prompts were 2,184 to 2,269 tokens and the outputs 146 to 493 (hf.py lines 651 to 652; counts in src/data/runs.json), and the stop reason was "unknown". API providers report real usage; for a local model, count tokens yourself before using the log to spot truncation.
  • Seeds and sampling. Greedy is not the default everywhere (Inspect's local provider samples, section 2). With sampling, run several epochs and report the spread; Inspect's Epochs reruns each sample and reduces with mean, median, mode, max, at_least_k or pass_at_k.
  • Serving. The same weights behind different providers or precisions are different instruments: Llama 3.1 8B Instruct through Together's FP8 endpoint scored 56.06 on HELM's MMLU against Meta's 69.4 (confounded with the prompt and token budget); lighteval's own example compares one model across three Inference Providers for this reason.

5. Running evals at scale: tokens, batching, caching

Cost and time are driven by tokens, and the harness decides most of them before the model runs. The page's own two runs, per GSM8K problem:

Derived for the full test set (1,319 problems, mean per problem times 1,319): lm-eval's prompt about 1.27 million input and 0.15 million output tokens; inspect_evals' about 2.93 million input and 0.42 million output, per epoch. Cost is items x (input tokens x input price + output tokens x output price) x epochs; prices are volatile and belong to the provider pages. Measured wall time for the ten problems on 2 CPU threads: 132 s (lm-eval, 256-token cap) against 763 s (Inspect, 512-token cap), confounded by prompt length, output length and batching, so not a speed comparison of the harnesses.

  • Shots dominate input cost. Ten shots made 87% to 92% of every Inspect prompt here. Fewer shots, or shots the model does not need, are the cheapest saving; check the effect on the score first (section 2).
  • A fixed prefix is cacheable. Inspect's identical system message is exactly what provider prompt caching and a serving engine's prefix cache reuse; lm-eval's per-problem shots defeat it. Whether a cache hit is billed less is the provider's rule.
  • Batching, lm-eval. --batch_size takes an integer, auto or auto:N (default 1), with --max_batch_size as the ceiling (interface.md). The Hugging Face backend sorts requests longest first, so "any OOMs will happen right away rather than near the end" and the first batch sets the padded length; on out-of-memory it halves the batch and retries. For multiple choice it groups requests that share a context and reuses one forward pass for one-token continuations, which "speeds up some multiple-choice tasks proportionally to the number of choices" (huggingface.py). Serving engines (vLLM, SGLang backends) batch for you.
  • Concurrency, Inspect. Inspect is built around API calls in flight rather than local batches: adaptive concurrency by default "with a maximum of 100 concurrent connections per model", starting at 20, cutting the limit by a factor of 0.8 on a rate-limit error, and retrying recoverable errors indefinitely with exponential backoff unless --max-retries or --timeout caps it (model concurrency). max_samples follows the connection limit; one task runs at a time unless --max-tasks is raised (parallelism).
  • Caching responses. lm-eval's --use_cache keeps model responses in SQLite under a path prefix and --cache_requests caches the built prompts. Inspect's --cache (or cache=True) keys on the model and base URL, the message history, the epoch, the generate config and the active tools, and "will expire in 1 week" unless a CachePolicy says otherwise (caching). A cache makes reruns cheap and can replay a stale answer after a provider silently updates a model: a cached run measures the old one.
  • Subsets. --limit (both harnesses) runs the first n items for a smoke test; a number from it is not the benchmark's number, and how many items a difference needs is Eval statistics's question.

Inspect's prompt is 2.3 times lm-eval's, and 87% to 92% of it is the same system message every time. Real token counts with the model's tokenizer (src/data/runs.json); share of prompt characters in the identical 10-shot system message, measured on all ten prompts. lm-eval draws a different five shots per problem, so no two of its prompts share a prefix.

6. Sandboxes for agentic evals

An agent eval lets model-written code and commands run. Inspect makes the environment part of the task: tools such as bash(), python() and text_editor() require a sandbox, each sample can get its own, and the environment is declared next to the task as a Dockerfile or compose.yaml (Sandboxing). Nothing else here compares: lm-eval runs code tasks such as HumanEval on the host, gated by unsafe_code: true in the task and --confirm_run_unsafe_code; HELM, simple-evals and openai/evals have no sandbox layer; Braintrust connects agent code through "remote evals or sandboxes" (docs); promptfoo grades agent trajectories but does not isolate them. Inspect's local sandbox and lm-eval's flag both run model code as you on your machine.

Inspect's sandbox environments, 4 October 2026
TypePackageAccepts a DockerfileWhat it is
dockerbuilt inyesLocal Docker installation
k8sinspect-k8s-sandboxyesKubernetes cluster
daytona, modalinspect-sandboxesyesCloud sandboxes
ec2inspect_ec2_sandboxnoAWS EC2 virtual machine
proxmoxinspect_proxmox_sandboxnoProxmox virtual machines
vagrantinspect_vagrant_sandboxnoVagrant virtual machines
openshellinspect-openshell-sandboxyesNVIDIA OpenShell, with filesystem and network policies
localbuilt innoLocal file system: no sandbox, runs as the current user

Source: docs/sandboxing.qmd lines 94 to 110. The old version of this page named Docker, Kubernetes and Proxmox only.

How to grade what an agent did, rather than its last message, is Agent and trajectory evaluation; public agentic benchmarks (pass^k, METR horizons, Terminal-Bench exploits) are Agentic benchmarks; sandboxes as a security defence are Agent security.

The opposite trade: a harness inside an enclave
Google DeepMind's August 2026 double-blind pilot ran a proprietary model and private items inside a confidential-computing enclave so neither side saw the other's secret; its cost is the thing Inspect's log viewer exists for: no one can read the transcripts, so a bad score cannot be attributed to capability, a broken extraction filter or a truncated completion. Details and caveats: Topic: benchmarks (Reading, "What a number leaves out").

7. Which harness for which question

Try: answer the questions; the path stays visible, and each answer says why and what to pin.

Status and versions, checked 4 October 2026

Volatile: PyPI, npm and each repository's main branch on that date (src/inputs/versions.json, sources.json).

HarnessStatusLatest
lm-eval-harnessactivelm-eval 0.4.13, 31 Aug 2026
Inspect, inspect_evalsactiveinspect-ai 0.3.276 and inspect-evals 0.23.0, 2 Oct 2026
lightevalactive repolast release 0.13.0, 24 Nov 2025; main updated 30 Sep 2026
HELMmaintenance since 1 Jun 2026crfm-helm 0.5.16, 30 Apr 2026; last commit 5 Jun 2026
simple-evalsdeprecated July 2025 for new modelsstill hosts HealthBench, BrowseComp, SimpleQA
OpenAI evalsquiet3.0.1.post1, 1 May 2024; no custom-code evals accepted
Evalchemyquietlast commit 23 Dec 2025
Unitxtactive repounitxt 1.26.10, 27 May 2026; main updated 4 Oct 2026
promptfooactive, part of OpenAI since the 9 Mar 2026 deal, still MIT0.123.1, 18 Sep 2026
BraintrustcommercialPython SDK 0.44.0, 1 Oct 2026
Open LLM Leaderboardarchived 13 Mar 2025v2 launched June 2024 (harder tasks, chat templates, scores rescaled to chance); per-model result files remain on the Hub
The same advice as a table
SituationTool
Standard academic benchmark numbers for a model or checkpointlm-evaluation-harness
Agentic, tool-use, sandboxed or safety evals; rich transcriptsInspect (inspect_evals, or the Register for evals outside it)
Evals inside a Hugging Face training loop; multilingual leaderboard-style suiteslighteval (its Inspect backend where the task supports it)
Prompt-template sensitivity across many formatsUnitxt
Prompt or configuration regression tests for an app, in CIpromptfoo (open source) or Braintrust (platform)
Production tracing, online scores and gatesBraintrust, Langfuse or Phoenix
Methodology inspiration, multi-metric reportingHELM: read it, do not adopt it (maintenance mode)
Reproducing a published numberThe harness and commit that produced it (OpenAI's 2024 to 2025 launch numbers: simple-evals)
Evaluating a proprietary model when neither side may see the other's secretA confidential-computing enclave: a pilot, not yet something to build on

8. Each harness, in depth

Optional: architecture, gotchas and contribution paths, one block per harness.

lm-evaluation-harness (EleutherAI): task YAML, model registry, gotchas

The reproducibility standard for base-model benchmarking and the default behind "numbers in a model card". It was the backend of Hugging Face's Open LLM Leaderboard v1 and v2, and its README still describes it as the leaderboard's backend; the leaderboard Space was archived on 13 March 2025 (README).

  • Architecture. A TaskManager discovers task YAML files and builds ConfigurableTask objects; a registry maps model names to LM subclasses. The registry holds 37 model names, aliases included (hf, vllm, sglang, openai-completions, anthropic, litellm, mamba, gguf, nemo, neuron, IPEX, ONNX, TensorRT-LLM, watsonx and more; lm_eval/models). Implement the three request methods and any backend runs every task.
  • Task YAML. Declares the dataset (a Hub path), doc_to_text and doc_to_target (Jinja templates, or Python through !function), output_type, metrics, generation settings and filter chains (regex extraction, take-first, majority voting for self-consistency). Variants (shot counts, chain-of-thought versions, translations) are YAML overrides through include:; groups and tags aggregate tasks (mmlu is a group of 57 subtasks). The tasks folder has 221 benchmark directories and about 14,000 YAML files at commit d6de816; the README says "over 60 standard academic benchmarks, with hundreds of subtasks and variants".
  • Gotchas. trust_remote_code runs dataset code; YAML quoting bites (until: ['\n'] in single quotes is a backslash and an n, not a newline: the project's footguns.md). Always log the task's version: GSM8K is at version 3.0.
  • Contributing: still genuinely open. Port or add a task in YAML (new task guide; its checklist asks whether you checked against the paper's reference implementation and documented how), fix answer-extraction filters for reasoning models, or add a backend. Maintainers keep "good first issue" and "help wanted" items (CONTRIBUTING).
Inspect (UK AI Security Institute): solvers, scorers, models, and the 2026 change to inspect_evals

The frontier-safety and agentic standard: used by AI security institutes, METR, Apollo Research and labs for pre-deployment testing.

  • Abstractions. Solvers compose into chains: system_message(), prompt_template(), generate(), chain_of_thought(), self_critique(), multiple_choice(), use_tools(), or a whole agent such as react() (the older basic_agent() still ships). Scorers: exact(), match(), includes(), pattern(), choice(), answer(), math(), model_graded_qa(), model_graded_fact(), the perplexity scorers, or custom Python, including batteries of judges. Metrics: accuracy, stderr, bootstrap_stderr, ci_wilson, even krippendorff_alpha (scorer exports).
  • Tooling. inspect view and the VS Code extension render every model call, tool call, state change and score from the log: the best debugging experience of any harness, and the .eval format is stable enough for other tools to consume.
  • Models. All major APIs and local engines (vLLM, SGLang, Hugging Face transformers, Ollama, llama-cpp-python, even TransformerLens and nnterp for interpretability work; providers); --model switches provider without touching the task.
  • inspect_evals is the community collection: "120+ evaluation implementations and 200+ Inspect AI tasks" by its own count.
Correction: inspect_evals no longer takes new eval code
The old version of this page called inspect_evals "the designed on-ramp": pick a published benchmark, propose it in an issue, ship it with an end-to-end test and a parity check, start with question-answering before agentic tasks. Since 8 May 2026 "new evaluations must be hosted in an upstream repo and registered to Inspect Evals via a simple .yaml file" (EVAL_REGISTER.md); the Register lists each eval at a pinned commit of its author's repository, which must be installable, depend on inspect_ai and define tasks with @task (register guide). Pull requests to the collection now come only from pre-approved contributors; anyone else raises an issue and uploads .eval logs that show the problem (tightened on 2 October 2026). The priority flipped too: the guide now prefers "agentic or task-based over simple Q&A", credibly sourced, with a frontier-model baseline to validate against (CONTRIBUTING).

The practical path today: implement the eval in your own repository from the Generality Labs template, test it against a published baseline to the bar in its docs/methodology.md and BEST_PRACTICES.md, register it, and report bugs in existing evals with logs. Model-graded scorers and judge-reliability tooling fit Khalid's judge-battery background, now as a registered upstream eval or a scorer contribution. inspect_ai itself, the framework, has a high bar.

lighteval (Hugging Face): now on Inspect

Harness-inspired and Hugging Face-native: 1000+ tasks by its README, backends for transformers and accelerate, vLLM, SGLang, TGI, Inference Endpoints, Inference Providers, LiteLLM and nanotron (evaluation during pretraining), results and per-sample details pushed to the Hub, quick custom tasks in Python, wide multilingual coverage; it powers Hugging Face's leaderboards. Its README lists lighteval eval, "using inspect-ai as a backend", as the preferred entry point (README); its GSM8K task carries an Inspect sample converter, solver chain and scorer next to the classic prompt function, with the same prompt text as inspect_evals' GSM8K (gsm8k.py). Its docs warn that "not all tasks are compatible with inspect-ai's API as of yet". The last PyPI release (0.13.0, 24 November 2025) lags main: install from source and pin the commit.

Choose it when you live in the Hugging Face stack or need evaluation inside a nanotron or FSDP training loop; it is weaker than lm-eval on community-verified task parity and, outside its Inspect path, weaker than Inspect on agents. Contributing: custom tasks and metrics in Python (adding a custom task), multilingual tasks, converting tasks to its Inspect path.

HELM (Stanford CRFM): the multi-metric reference, in maintenance mode

Each scenario scored on accuracy, calibration, robustness, fairness, bias, toxicity and efficiency (Liang et al. 2022), with every prompt and response dumped per instance and browsable in a web UI. It spawned domain leaderboards: VHELM, HEIM, MedHELM, audio, enterprise and more (README). A run is a RunSpec: a scenario, an adapter spec (instructions, input and output nouns, shots, max tokens, stop sequences) and metric specs. HELM's GSM8K is "Q: ... A:" with 5 training examples, 400 tokens, stop at a blank line (run spec).

Maintenance mode since 1 June 2026 (verified). The README says "HELM entered maintenance mode on June 1, 2026", and the Maintenance Mode Policy says volunteers maintain it on a best-effort basis, "no new features will be added to HELM, and no new evaluations will be added to the HELM leaderboards", and scenarios may break as provider APIs change. Read it for methodology (its "coverage beats a headline score" stance predated the field by two years); do not build new pipelines on it. The policy names Evalchemy, Inspect Evals, lighteval, lm-eval-harness and Unitxt as alternatives. Contributions: notable models, notable scenarios, API-client fixes and significant bug fixes only; open an issue first, because pull requests without one are closed.

OpenAI's evals and simple-evals; Evalchemy; Unitxt
  • openai/evals (2023) is a registry: a YAML names an eval template (Match, Includes, FuzzyMatch, model-graded) and points at JSONL samples kept in Git LFS. Match passes when the output starts with the ideal answer (evals/api.py). The README now points to Evals in the OpenAI dashboard and says "we are currently not accepting evals with custom code"; it accepts only template-based or model-graded YAML evals.
  • openai/simple-evals (2024) published how OpenAI produced its launch numbers: zero-shot chain-of-thought with simple instructions. Its July 2025 notice says it "will no longer be updated for new models or benchmark results" (README); it accepts only bug fixes, model adapters and new result rows.
  • Evalchemy (DataComp and Bespoke Labs) "builds on the LM-Eval-Harness" for post-trained models: one install for reasoning, code and chat benchmarks (AIME, MATH500, LiveCodeBench, GPQA Diamond, MT-Bench, AlpacaEval, WildBench and others), API models through Curator. A benchmark is a Python class with generate_responses and evaluate_responses. Its MATH500 sets "do_sample": False and "temperature": 0.7 in the same request (eval_instruct.py): which wins depends on the backend, so log what was actually sent.
  • Unitxt (IBM) treats prompt variation as first-class: a card (loader, preprocessing steps, task) is combined at run time with a template, a format (for example chat API) and a number of demos, and a card can list many templates (MMLU card). Its catalog badge counts 68 tasks, 3,254 datasets, 357 prompts and 584 metrics. It plugs into others: lm-eval ships tasks/unitxt and HELM a unitxt_scenario.
App-level tools: promptfoo and Braintrust
  • promptfoo: open source (MIT), command line and YAML first, local first. A promptfooconfig.yaml declares a matrix: prompts x providers x test cases, each with assertions (getting-started example). At commit 5fde786 its docs list 44 deterministic assertion types (from equals, contains and regex to is-json, latency, cost, tool-call F1 and trajectory checks such as trajectory:tool-sequence) and 17 model-assisted ones (llm-rubric, g-eval, factuality, context-faithfulness, trajectory:goal-success and others) (assertions). A diff view, CI integration and a red-teaming and vulnerability-scanning mode. On 9 March 2026 Promptfoo announced it "has agreed to be acquired by OpenAI" and "will remain open source" (announcement). Choose it for repository-local prompt regression tests and multi-model comparisons with the fastest setup. Contributing: an ordinary open-source project (providers, assertions, red-team plugins), now with OpenAI as owner.
  • Braintrust: a commercial platform. Every evaluation has three parts, data, task and scorers: Eval("My project", data=init_dataset(...), task=..., scores=[Factuality]), run with bt eval (run in code). Playground runs overwrite themselves; experiments are immutable snapshots for comparison and CI gates; datasets are versioned so experiments can pin a version; scorers come from its open-source autoevals library, code or LLM judges; online scoring rules grade production traces asynchronously, which, with no ground truth on live traffic, means judge scorers (online scoring). Human review is built in. Choose it when you want the loop from offline evaluation to production observability in one place and are willing to pay for it.
  • Same niche, named without a review: Langfuse, Arize Phoenix and W&B Weave. Tracing itself is LLM observability; judges used as scorers are LLM-as-judge.
Mistakes that cost real numbers
  • Comparing two harnesses' scores because the benchmark has the same name. On GSM8K alone the six rules above disagree on what counts as an answer; compare within one harness, one version, one config.
  • Trusting the default decoding. Inspect's local provider samples unless told not to; Evalchemy's MATH500 sends both do_sample: False and temperature: 0.7. Set decoding explicitly and check what reached the model in the log.
  • Believing a sudden drop before reading the failures. In this page's own lm-eval run, strict-match scored 0 of 10 and flexible-extract 1 of 10 on identical outputs.
  • Running model-written code without a sandbox. Use Docker or a VM-backed sandbox for anything agentic.
  • Building a new pipeline on HELM or simple-evals. Both are frozen for new work; read them for method.
  • Using a model-level harness to decide whether to ship an application change. A checkpoint's GSM8K score says little about your prompt, retrieval and tools.

Built from the old written page (fetched 22 September 2026, kept in src/live.md), each harness's repository at the commits in src/inputs/sources.json, and the parent topic's "Same model, many harnesses" reproduction and cases (moved here on 24 October 2026, src/spread/). The GSM8K runs are this page's own (CPU, 4 October 2026); scripts in src/.