LM Evaluation Harness
The standard framework for benchmarking language models.
- Star 数
- 14.6K
- Fork 数
- 3.9K
- 未关闭 Issue
- 1.4K
- 最近提交
- 2026-11-04
数据来自 GitHub API · 更新于 2026-11-30
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.
主要功能
- 60+ benchmarks with hundreds of subtasks
- Hugging Face, vLLM and API backends
- Custom tasks via YAML
- Reproducible few-shot settings
系统要求
- 平台
- Windows · macOS · Linux
- Python
- 3.9+
如何安装 LM Evaluation Harness
根据项目 README 整理。开源项目更新很快,请以 GitHub 页面上的最新说明为准。
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
优势
- Industry-standard results
- Huge task library
不足
- Benchmarks can be slow on large models
LM Evaluation Harness 替代品对比
| 软件 | Star 数 | 许可证 | 平台 | 显存 |
|---|---|---|---|---|
| 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+ |
常见问题
LM Evaluation Harness 免费吗?
是的——LM Evaluation Harness 是开源软件,采用 MIT 许可证。商用前请确认软件及模型权重的许可条款。
LM Evaluation Harness 支持 Windows、Mac 和 Linux 吗?
LM Evaluation Harness 支持:Windows, macOS, Linux。
如何安装 LM Evaluation Harness?
1. Install and evaluate a model.
LM Evaluation Harness 有哪些好的替代品?
常见替代品包括 TRL, LLaMA-Factory, Axolotl, Kohya’s GUI,详见本页对比表。