What do you want to do?
3 use cases
-
Score a model on standard benchmarks in one command
Install the harness with the Hugging Face backend and evaluate a hub model on named tasks.
- REPO
EleutherAI/lm-evaluation-harness - Claude Code
- Codex
- Cursor
- Gemini CLI
- Software and DevOps
- Intermediate
View prompt
Using EleutherAI/lm-evaluation-harness, install it with the hf extra and score <my model> on hellaswag and lambada_openai, then report the numbers in a small table.
- REPO
-
Evaluate a model you serve behind an API
Point the harness at any OpenAI compatible endpoint, local or hosted, instead of loading weights.
- REPO
EleutherAI/lm-evaluation-harness - Claude Code
- Codex
- Cursor
- Gemini CLI
- Software and DevOps
- Intermediate
View prompt
With EleutherAI/lm-evaluation-harness, evaluate the model behind <my vLLM endpoint> on gsm8k using the local-completions backend, starting with a 10 sample sanity run.
- REPO
What people are building with LM Evaluation Harness
-
Benchmarkthe web
Quantized a 3B reasoning model to 4-bit and scored it with lm-eval
To fit VibeThinker-3B on a 6 GB laptop GPU he quantized it to 4-bit GPTQ, shrinking the weights from 5.8 GB to 2.0 GB, then served it in vLLM. He checked the reasoning survived with the harness on a 50 sample subset, reporting 84 percent on GSM8K against 70 percent for a comparable quantized Qwen2.5-3B, and flags the small sample himself.
LM Evaluation Harness on GitHub
By syedazeez on the web
Real builds shared on X, Hacker News, Reddit, DEV and GitHub, summed up by Deduped from each post and its links; each card links to the original post. See what people are building with other repos
Quick start with LM Evaluation Harness
- Check you have what it needs: Python with pip; the base package no longer includes transformers or torch; A model backend extra such as `pip install "lm_eval[hf]"`, `pip install "lm_eval[vllm]"` or `pip install "lm_eval[api]"`; A CUDA GPU for the local model examples, which pass --device cuda:0.
- Open EleutherAI/lm-evaluation-harness on GitHub and read the README and license.
- Install the package with
git clone --depth 1 https://github.com/EleutherAI/lm-evaluation-harness,cd lm-evaluation-harnessandpip install -e . - Add the backend with
pip install "lm_eval[hf]" - List what you can run with
lm-eval ls tasks - Evaluate with
lm_eval --model hfplus--model_args pretrained=EleutherAI/gpt-j-6B,--tasks hellaswag,--device cuda:0and--batch_size 8
These steps come from our top use case, Score a model on standard benchmarks in one command, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for EleutherAI/lm-evaluation-harness
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forML engineers who need comparable benchmark numbers for the models they train, quantize or serve.
- Why it is hot14k stars, picked up by one AI source we track
- Sourcegithub.com/EleutherAI/lm-evaluation-harness ยท Back to Hot repos
Requirements
- Python with pip; the base package no longer includes transformers or torch
- A model backend extra such as `pip install "lm_eval[hf]"`, `pip install "lm_eval[vllm]"` or `pip install "lm_eval[api]"`
- A CUDA GPU for the local model examples, which pass --device cuda:0
- An API key in the environment for hosted models
Add this badge to your README
Maintain LM Evaluation Harness? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/eleutherai-lm-evaluation-harness/?utm_source=github&utm_medium=badge&utm_campaign=EleutherAI-lm-evaluation-harness)
HTML
<a href="https://dedupedai.com/use-cases/eleutherai-lm-evaluation-harness/?utm_source=github&utm_medium=badge&utm_campaign=EleutherAI-lm-evaluation-harness"><img src="https://dedupedai.com/badge/EleutherAI/lm-evaluation-harness.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about LM Evaluation Harness
What is LM Evaluation Harness?
The LM Evaluation Harness is EleutherAI's framework for few-shot evaluation of language models. One lm_eval command scores a model on named tasks, with backends for Hugging Face transformers, vLLM, SGLang, llama.cpp servers, ONNX Runtime, NeMo, Megatron and any OpenAI compatible API. It supports multi GPU evaluation, result saving, response logging and pushing results to the Hugging Face Hub. It is an open-source project on GitHub: https://github.com/EleutherAI/lm-evaluation-harness.
How do I use LM Evaluation Harness?
Install the package with git clone --depth 1 https://github.com/EleutherAI/lm-evaluation-harness, cd lm-evaluation-harness and pip install -e; then add the backend with pip install "lm_eval[hf]"; List what you can run with lm-eval ls tasks. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is LM Evaluation Harness for?
ML engineers who need comparable benchmark numbers for the models they train, quantize or serve.
What can I do with LM Evaluation Harness?
3 use cases so far, for example: Score a model on standard benchmarks in one command; Evaluate a model you serve behind an API; Keep every eval run reproducible and shareable. Each has steps and a copy-paste agent prompt.
What do I need to run LM Evaluation Harness?
Python with pip; the base package no longer includes transformers or torch; A model backend extra such as `pip install "lm_eval[hf]"`, `pip install "lm_eval[vllm]"` or `pip install "lm_eval[api]"`; A CUDA GPU for the local model examples, which pass --device cuda:0; An API key in the environment for hosted models.
What are alternatives to LM Evaluation Harness?
Other hot AI repos in Software and DevOps: ECC, Thinkrail, Superpowers, Deep Infer, Instructor.
Is LM Evaluation Harness safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.