LM Evaluation Harness
The standard framework for benchmarking language models.
- Stars
- 14.6K
- Forks
- 3.9K
- Open issues
- 1.4K
- Last commit
- 2026-11-04
Live from the GitHub API · updated 2026-11-30
What is LM Evaluation Harness?
EleutherAI’s LM Evaluation Harness runs hundreds of benchmarks (MMLU, HellaSwag, GSM8K, ARC and more) against Hugging Face, vLLM, GGUF or API models. It powers the Hugging Face Open LLM Leaderboard and is the usual way to check a fine-tune.
Key features
- 60+ benchmarks with hundreds of subtasks
- Hugging Face, vLLM and API backends
- Custom tasks via YAML
- Reproducible few-shot settings
System requirements
- Platforms
- Windows · macOS · Linux
- Python
- 3.9+
How to install LM Evaluation Harness
Summarized from the project’s README. Projects change quickly — check the GitHub page for the latest instructions.
From source
- 1Install and evaluate a model.
git clone --depth 1 https://github.com/EleutherAI/lm-evaluation-harness cd lm-evaluation-harness pip install -e . lm_eval --model hf --model_args pretrained=EleutherAI/gpt-j-6B --tasks hellaswag --device cuda:0 --batch_size 8
Strengths
- Industry-standard results
- Huge task library
Limitations
- Benchmarks can be slow on large models
LM Evaluation Harness alternatives compared
| Software | Stars | License | Platforms | VRAM |
|---|---|---|---|---|
| LM Evaluation Harness The standard framework for benchmarking language models. | 14.6K | MIT | — | |
| TRL Hugging Face’s library for post-training LLMs: SFT, DPO, GRPO. | 19.9K | Apache-2.0 | — | |
| LLaMA-Factory Unified fine-tuning for 100+ LLMs and VLMs with a no-code web UI. | 76.3K | Apache-2.0 | — | |
| Axolotl Config-driven LLM fine-tuning for many models and techniques. | 12.8K | Apache-2.0 | — | |
| Kohya’s GUI GUI for training LoRA, DreamBooth and fine-tunes for SD, SDXL and FLUX. | 12.7K | Apache-2.0 | 8 GB+ for SD1.5 LoRA; 12–24 GB for SDXL/FLUX | |
| OneTrainer One-stop trainer for diffusion models with a desktop UI. | 3.3K | AGPL-3.0 | 8 GB+ |
FAQ
Is LM Evaluation Harness free?
Yes — LM Evaluation Harness is open-source software released under the MIT license. Check the license (and any model weight licenses) before commercial use.
Does LM Evaluation Harness run on Windows, Mac and Linux?
LM Evaluation Harness supports: Windows, macOS, Linux.
How do I install LM Evaluation Harness?
1. Install and evaluate a model.
What are the best LM Evaluation Harness alternatives?
Popular alternatives include TRL, LLaMA-Factory, Axolotl, Kohya’s GUI. See the comparison table on this page.