Skip to content
ai-supply.store
DiscoverCategoriesLeaderboardsCommunityAgent APIFAQ
Sign inSign up free
catalog / Research / LM Evaluation Harness
△EvalResearchFree

LM Evaluation Harness

EleutherAI's MIT-licensed unified benchmark suite — the de-facto standard for evaluating language models across 200+ tasks.

@ai-supply
Installs126k
⟳ upstream v0.4.12 · updated 2mo ago
↗ Source repository
← More ResearchResearch leaderboard →How we grade security →Source ↗
✓ Grade A · 100/100 · SafeSecurity assessment
✓No compromise signals12capabilities surfaced9of 20 OWASP controls clear
External endpoints declaredExternal endpoints declaredExternal endpoints declaredExternal endpoints declared
scanned 16d ago·osv · gitleaks · opengrep · picklescan + heuristics·full breakdown in the Security tab ↓

LM Evaluation Harness

LM Evaluation Harness is the canonical open-source framework for evaluating language models, developed by EleutherAI. It provides a unified interface to run 200+ benchmark tasks (MMLU, HellaSwag, ARC, TruthfulQA, GSM8K, and more) against any HuggingFace model, OpenAI API, or custom endpoint — making reproducible, comparable LLM evaluation easy.

Key features

  • 200+ built-in tasks — MMLU, ARC, HellaSwag, TruthfulQA, GSM8K, HumanEval, WinoGrande, and more
  • Plug-in architecture: evaluate local HF models, OpenAI API, vLLM, Anthropic, or custom backends
  • Powers the Open LLM Leaderboard on HuggingFace
  • Supports few-shot, zero-shot, and chain-of-thought modes
  • MIT license — use in CI/CD pipelines, commercial workflows

Quick start

pip install lm-eval

# Evaluate Mistral-7B on MMLU (5-shot)
lm_eval --model hf \
  --model_args pretrained=mistralai/Mistral-7B-v0.1 \
  --tasks mmlu \
  --num_fewshot 5 \
  --device cuda:0

Python API

import lm_eval

results = lm_eval.simple_evaluate(
    model="hf",
    model_args="pretrained=microsoft/Phi-3-mini-4k-instruct",
    tasks=["arc_easy", "hellaswag"],
    num_fewshot=0,
)
print(results["results"])

Install via ai-supply

npx ai-supply add lm-evaluation-harness

Curated mirror of the open-source LM Evaluation Harness (MIT). Get it from the source.

Rating rank
#1
of 17 in Research
Install rank
#1
of 17 in Research
Security score
100/100 · A
safe
Security rank
#1
of 17 in Research
Installs
126k
cat avg 51k
This listing vs category average
Installs
this
cat avg
Security (of 100)
this
cat avg
Adoption trend
See the Research leaderboard →
✓ Security: Safe · 100100/100 · grade Ascanned 16d ago
✓ no compromise signals12 risk-surface · 6/20 OWASP controls flagged

Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.

Control card · high confidence (static)
framework: lm-eval-harnessframework: pytestcovers: biascovers: secrets-leak
evaluate_lm_evalevalcheck_argument_typesValidatetest_docseval_docsEvaluatorConfigtest_cpptest_janitor_generalevaluateEvalAcceval_loggerEvaluationTrackerassertion

Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).

OWASP Top 10 for LLM Applications
⚠LLM05Improper Output Handlingmedium
Code that pipes model/user output into shell, eval, SQL or paths unsafely.
•Suspicious code patterns — dynamic code execution · EleutherAI-lm-evaluation-harness-97a5e2c/examples/lm-eval-overview.ipynb (CWE-95)risk surface
•Suspicious code patterns — OS command execution · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/decontamination/archiver.py (CWE-78)risk surface
•Suspicious code patterns — pickle deserialization · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/decontamination/decontaminate.py (CWE-502)risk surface
•Suspicious code patterns — unsafe yaml.load · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/tasks/_yaml_loader.py (CWE-502)risk surface
⚠LLM06Excessive Agencymedium
Over-broad tool/permission surface or unrestricted egress.
•External endpoints declared — 1 distinct host(s) · EleutherAI-lm-evaluation-harness-97a5e2c/.github/workflows/new_tasks.ymlrisk surface
•External endpoints declared — 2 distinct host(s) · EleutherAI-lm-evaluation-harness-97a5e2c/.github/workflows/publish.ymlrisk surface
•External endpoints declared — 28 distinct host(s) · EleutherAI-lm-evaluation-harness-97a5e2c/README.mdrisk surface
•External endpoints declared — 3 distinct host(s) · EleutherAI-lm-evaluation-harness-97a5e2c/docs/API_guide.mdrisk surface
•External endpoints declared — 4 distinct host(s) · EleutherAI-lm-evaluation-harness-97a5e2c/docs/CONTRIBUTING.mdrisk surface
•External endpoints declared — 8 distinct host(s) · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/api/metrics.pyrisk surface
⚠LLM10Unbounded Consumptionmedium
Unbounded loops/recursion causing DoS or runaway cost.
Enforced at runtime by the gateway (rate limits + spend caps + size caps); static check flags unbounded loops.
•Potentially unbounded loop — an infinite loop (while True / while(1) / for(;;)) may cause runaway consumption · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/decontamination/archiver.py (CWE-835)risk surface
⚠LLM02Sensitive Information Disclosurelow
Secrets, credentials or PII shipped inside the artifact.
•Low-confidence secret match — 1 possible: generic-api-key · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/models/megatron_lm.py (CWE-798)risk surface
⚠LLM07System Prompt Leakagelow
Secrets, internal hosts or proprietary logic exposed in shipped prompts.
•Low-confidence secret match — 1 possible: generic-api-key · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/models/megatron_lm.py (CWE-798)risk surface
§LLM09MisinformationGovernance
Artifacts designed to produce false/deceptive output.
Detectable only by runtime behavioral evaluation; addressed via responsible-use attestation.
✓LLM01Prompt InjectionPassed
✓LLM03Supply ChainPassed
✓LLM04Data and Model PoisoningPassed
Backdoors/poisoning in training data or serialized models.
Behavioral poisoning needs model execution; static check covers unsafe serialization + dataset skew only.
✓LLM08Vector and Embedding WeaknessesPassed
PII or plaintext source leakage in embedding/vector exports.
Embedding inversion/poisoning is largely runtime; static check covers PII in vector exports.
OWASP Machine Learning Security Top 10
⚠ML09Output Integritymedium
Middleware tampering with model outputs in transit.
Gateway enforces TLS + response integrity; static check flags output-rewriting code.
•Suspicious code patterns — dynamic code execution · EleutherAI-lm-evaluation-harness-97a5e2c/examples/lm-eval-overview.ipynb (CWE-95)risk surface
•Suspicious code patterns — OS command execution · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/decontamination/archiver.py (CWE-78)risk surface
•Suspicious code patterns — pickle deserialization · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/decontamination/decontaminate.py (CWE-502)risk surface
•Suspicious code patterns — unsafe yaml.load · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/tasks/_yaml_loader.py (CWE-502)risk surface
§ML01Input Manipulation (Adversarial)Governance
Models vulnerable to adversarial perturbations.
Requires runtime robustness evaluation; addressed via publisher robustness attestation.
§ML03Model InversionGovernance
Training data reconstructable from a model's outputs.
Runtime/evaluation property; addressed via model-card data-provenance + DP attestation.
§ML04Membership InferenceGovernance
Determining whether a record was in the training set.
Runtime/evaluation property; addressed via overfitting disclosure + DP attestation.
§ML08Model SkewingGovernance
Models trained on skewed data producing biased output.
Requires fairness evaluation; addressed via model-card bias/limitations disclosure.
✓ML02Data PoisoningPassed
Poisoned training datasets with triggers or anomalous distributions.
Static check covers trigger phrasing, PII and label skew; full poisoning detection is runtime.
✓ML05Model TheftPassed
Unlicensed re-distribution / license-incompatible derivatives.
Static check verifies license declaration; extraction throttling is runtime.
✓ML06AI Supply ChainPassed
✓ML07Transfer Learning AttackPassed
Backdoored base models / LoRA adapters propagating to derivatives.
Backdoor detection needs behavioral probing; static check covers unsafe serialization + provenance.
✓ML10Model Poisoning (Weights)Passed
Tampered model weight files; integrity must be verifiable.
Static check enforces safe formats + records a content hash for downstream verification.
Other findings (5) · hygiene / uncategorized
•Unrecognized file type — '.gitignore' is not on the allowlist · EleutherAI-lm-evaluation-harness-97a5e2c/.gitignorerisk surface
•Unrecognized file type — '.bib' is not on the allowlist · EleutherAI-lm-evaluation-harness-97a5e2c/CITATION.bibrisk surface
•Unrecognized file type — '.?' is not on the allowlist · EleutherAI-lm-evaluation-harness-97a5e2c/CODEOWNERSrisk surface
•Unrecognized file type — '.in' is not on the allowlist · EleutherAI-lm-evaluation-harness-97a5e2c/MANIFEST.inrisk surface
•Unrecognized file type — '.lark' is not on the allowlist · EleutherAI-lm-evaluation-harness-97a5e2c/lm_eval/tasks/acpbench/gen_2shot/acp_grammar.larkrisk surface
✔ verified source · pinned EleutherAI-lm-evaluation-harness-97a5e2c
Check against a policy

The same gate an agent runs before installing (POST /api/v1/trust/lm-evaluation-harness/check). Click a policy:

Consume LM Evaluation Harness programmatically. Authenticate with an API key or session — see Authorize an agent.

# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/lm-evaluation-harness

# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/lm-evaluation-harness/check \
  -H "Content-Type: application/json" \
  -d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'

# CLI
npx ai-supply add lm-evaluation-harness

# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/lm-evaluation-harness/install \
  -H "Authorization: Bearer $AIM_KEY"

# MCP tool
install_listing({ "slug": "lm-evaluation-harness" })
OpenAPI spec →
vlatest
✓ Security: Safe · 1001mo ago

Curated mirror — latest upstream source. See the repository for tagged releases.

Sign in and install this listing to leave a review.

More from @ai-supply

View profile →
◉Agent
MetaGPT
Multi-agent framework that assigns GPT roles (PM, engineer, QA) to solve complex software tasks end-to-end.
↓ 1.0M
⇄Connector
vLLM
High-throughput, memory-efficient LLM inference engine with PagedAttention and continuous batching.
↓ 892k
⇄Connector
Meilisearch
Lightning-fast open-source search engine with typo-tolerance, semantic hybrid search, and sub-50ms response times.
↓ 811k
△Eval
Weights & Biases (wandb)
ML experiment tracking and visualization — log metrics, hyperparameters, models, and media in real time.
↓ 784k
ai-supply.store

Free, security-vetted AI capabilities — skills, MCPs, plugins, agents, datasets and more, each graded and freshness-tracked, and built for humans and agents alike.

api · v3.1status · all green
Contact
support@ai-supply.storesecurity@ai-supply.store
Catalog
  • Discover
  • Categories
  • Leaderboards
  • Benchmarks
  • Security
  • Scan a repo
Community
  • Community
  • FAQ
For agents
  • Quickstart (60s)
  • Authorize an agent
  • Agent API
  • OpenAPI spec
For builders
  • Publish
  • Dashboard
Account
  • Create account
  • Sign in
  • Settings
Legal
  • Terms
  • Publisher Agreement
  • Acceptable Use
  • Privacy