Lighteval runs benchmarks on language models through many inference backends, in memory or via remote APIs. It offers hundreds of tasks, custom metrics, and detailed per-sample results.
Overview
Lighteval from Hugging Face's leaderboard and evals team measures large language model performance across backends whether weights are loaded locally or served remotely. Results can be stored and inspected sample by sample for debugging and comparison.
The task catalog spans knowledge, math, code, chat, multilingual, and core NLP benchmarks, with tooling to browse tasks or define custom tasks and metrics. CLI entry points cover Accelerate, Nanotron, vLLM, local Text Generation Inference, inference endpoints, provider APIs, and fully custom model hooks; documentation also describes an eval backend via inspect-ai.
Install via pip with optional extras. Mac and Linux are supported; Windows is explicitly untested and unsupported at present. Runs can push bundles to the Hugging Face Hub, S3, or local storage.
The project acknowledges inspiration from Eleuther's evaluation harness and Stanford HELM, and welcomes community tasks, metrics, and fixes.
Key features
- Many inference backends
- Thousands of built-in tasks
- Custom tasks and metrics
- Per-sample result exports
- Hub, S3, or local output
- Accelerate and vLLM runners
- Remote API evaluation
- Python and CLI interfaces
Use cases
- Benchmarking open LLMs
- Leaderboard-style evaluations
- Comparing hosted model APIs
- Debugging model failure cases
- Adding domain-specific eval suites