What problem does it solve?
This Skill helps you evaluate and compare large language models using a standardized, widely adopted benchmark harness.
Core Features & Use Cases
- Standardized academic benchmarks: Runs 60+ tasks such as MMLU, HumanEval, GSM8K, TruthfulQA, and HellaSwag with consistent prompts and metrics.
- Multi-backend support: Benchmarks both open models (HuggingFace) and high-throughput inference setups (vLLM), plus API-backed evaluation via supported backends.
- Reproducible research workflows: Produces comparable results for model releases and supports tracking evaluation across training checkpoints.
Use case: You want to release a new model version and report academic-style metrics across reasoning, code, and truthfulness benchmarks in a single repeatable run.
Quick Start
Run a 5-shot evaluation on MMLU, GSM8K, and HellaSwag for a HuggingFace model by executing the lm_eval command:
lm_eval --model hf --model_args pretrained=meta-llama/Llama-2-7b-hf --tasks mmlu,gsm8k,hellaswag --device cuda:0 --batch_size 8