cost. Benchmark runs can take hours of GPU time per model.
Who it is forAn engineer who needs a number to compare two checkpoints.
The problemEveryone's homemade eval script measures something slightly different.
The outcomeBenchmark scores for the tasks you named, on your own hardware.
What you need first
- 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
Steps
- 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
Prompt for your agent
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.
Caveat. Set --batch_size to auto if you are unsure what fits, as the README describes.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for EleutherAI/lm-evaluation-harness and "Score a model on standard benchmarks in one command"
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 freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer