lm-eval
A framework for evaluating language models
Decision gist · record as of 2026-08-14
Yes. lm-eval is the de facto standard for language model evaluation, actively maintained, permissively licensed, and designed with low friction—base install is lightweight and model backends are optional. If you need to benchmark models against academic tasks or reproduce published results, this is the right tool. Install only if you have a model backend in mind and Python >=3.10.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >=3.10.
- Model backends must be installed separately via optional extras.
- Evaluation performance depends on available compute resources.
License · maintenance · safety
MIT (permissive) — MIT license (permissive) allows commercial and private use without restriction. No copyleft obligations; you can modify and redistribute under your own terms.
last release 2026-05-11 (95 days) · last repo commit 2026-08-14 · 13,633 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,572,996 downloads/mo, #3,748 on PyPI
Alternatives
Verify before relying
pip install lm_eval[hf]
lm-eval ls tasks
lm-eval run --model hf --model_args pretrained=EleutherAI/gpt-j-6B --tasks hellaswag --device cuda:0 --batch_size 8- Exact count of 'over 60' benchmarks and 'hundreds' of subtasks—documentation may have more precise numbers.
- Performance characteristics (throughput, memory usage) for different model backends and batch sizes.
- Compatibility matrix for specific model quantization methods and their installation requirements.
- Whether multimodal evaluation (hf-multimodal, vllm-vlm) is production-ready or remains experimental.
What it is and what it does
lm-eval is a standardized evaluation framework that runs language models against a collection of academic benchmarks and custom tasks. It abstracts away the boilerplate of loading models, preparing datasets, running inference, and computing metrics, letting researchers and practitioners focus on comparing model performance across consistent evaluation protocols.
The package supports multiple inference backends, each installed as an optional extra to keep the base installation lean. Tasks are defined via YAML configuration files with Jinja2 templating for prompt design, and the CLI provides subcommands to list available tasks, validate configurations, and run evaluations. It powers the Open LLM Leaderboard and has been cited in hundreds of research papers.
Use it for
- Benchmark a new model against standard tasks to compare performance with published results.
- Evaluate fine-tuned or quantized variants of a base model to measure the impact of training changes.
- Run custom evaluation tasks defined in YAML with domain-specific prompts and metrics.
- Batch-evaluate multiple models across different inference backends to find speed/accuracy tradeoffs.
- Reproduce leaderboard-style evaluations locally for internal model development.
- Integrate evaluation into CI/CD pipelines to track model quality metrics across checkpoints.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
lm-eval is the de facto standard for language model evaluation, actively maintained, permissively licensed, and designed with low friction—base install is lightweight and model backends are optional. If you need to benchmark models against academic tasks or reproduce published results, this is the right tool. Install only if you have a model backend in mind and Python >=3.10.
Install
lm-eval on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with recent releases; last commit 2026-08-14. Base package is intentionally lightweight—model backends are installed separately via optional extras, reducing bloat for users who need only the evaluation framework.
Requires Python >=3.10. Model backends must be installed separately via optional extras. Evaluation performance depends on available compute resources.
License in practice
MIT license (permissive) allows commercial and private use without restriction. No copyleft obligations; you can modify and redistribute under your own terms.
Quickstart
pip install lm_eval[hf]
lm-eval ls tasks
lm-eval run --model hf --model_args pretrained=EleutherAI/gpt-j-6B --tasks hellaswag --device cuda:0 --batch_size 8
Verify before relying
- Exact count of 'over 60' benchmarks and 'hundreds' of subtasks—documentation may have more precise numbers.
- Performance characteristics (throughput, memory usage) for different model backends and batch sizes.
- Compatibility matrix for specific model quantization methods and their installation requirements.
- Whether multimodal evaluation (hf-multimodal, vllm-vlm) is production-ready or remains experimental.
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 14 packagesdatasetsnumpyevaluatejinja2pytablewriterrouge-scoresacrebleuscikit-learnsqlitedictdillword2numbermore_itertoolstyping_extensionstqdm |
| Maintenance | Actively maintained 95 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 1,572,996 / month, #3,748 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaOperating System :: OS IndependentProgramming Language :: Python :: 3 |
Evidence: lm_eval-0.4.12-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “language model evaluation framework”
- lm-evalUnified framework for evaluating generative language models against…
- inspect-aiInspect is a framework for evaluating large language models,…
- nvidia-lm-evalEvaluates language models against standardized benchmarks (MMLU,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also bfcl-eval · evalplus · nvidia-lm-eval · unitxt · garak · terminal-bench · clip-benchmark · ell-ai · lm-format-enforcer · ipex-llm