What problem does it solve?
This Skill solves the problem of evaluating and comparing LLM quality in a standardized, reproducible way across well-known benchmarks such as MMLU, GSM8K, HumanEval, and TruthfulQA.
Core Features & Use Cases
- Run standardized LLM benchmarks: Execute 60+ academic and code-generation tasks (e.g., MMLU, GSM8K, HellaSwag, ARC, HumanEval) to produce comparable metrics across models.
- Support multiple inference backends: Evaluate HuggingFace models and vLLM backends (including faster inference paths) while keeping the task interface consistent.
- Workflow for analysis and iteration: Track results for model comparison, automate checkpoint evaluation during training, and troubleshoot common evaluation issues like OOM and mismatched task settings.
Use Case: You’re releasing a new model checkpoint and need to report consistent benchmark scores (accuracy/exact match/F1-style metrics depending on the task) before deciding whether it’s ready for deployment.
Quick Start
Run lm-evaluation-harness to benchmark a HuggingFace model on MMLU, GSM8K, and HellaSwag with: lm_eval --model hf --model_args pretrained=meta-llama/Llama-2-7b-hf --tasks mmlu,gsm8k,hellaswag --device cuda:0 --batch_size 8