evaluating-llms-harness

Benchmark LLMs across 60+ academic tasks using the lm-evaluation-harness framework.

Updated May 13, 2026
One-click install
npx skills add https://github.com/superfhp/lumi-agent-body --skill evaluating-llms-harness-superfhp
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: evaluating-llms-harness
Source: https://github.com/superfhp/lumi-agent-body/tree/main/skills/mlops/evaluation/lm-evaluation-harness
Command: npx skills add https://github.com/superfhp/lumi-agent-body --skill evaluating-llms-harness-superfhp

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires lm-eval, transformers, vllm, and includes references (resource) components.

What problem does it solve? Evaluating and comparing large language models requires standardized prompts, metrics, and reproducible setups. This Skill provides structured workflows for running industry-standard benchmarks (MMLU, GSM8K, HumanEval, TruthfulQA, HellaSwag) so results are comparable across models, checkpoints, and published baselines. ## Core Features & Use Cases - Standardized Benchmarking: Run 60+ academic benchmarks on HuggingFace, vLLM, or API-based models with consistent few-shot settings and metrics. - Training Progress Tracking: Evaluate checkpoints periodically during training and plot learning curves from saved JSON results. - Model Comparison: Batch-evaluate multiple models and generate comparison tables for release decisions or papers. - Use Case: A team fine-tuning a 7B model runs MMLU, GSM8K, and HellaSwag on every checkpoint with vLLM for speed, then compares scores against Llama-2 and Mistral baselines to decide which checkpoint to ship. ## Quick Start Ask the AI to evaluate a HuggingFace model on MMLU, GSM8K, and HellaSwag with 5-shot prompting and save the results to a JSON file.

Frequently Asked Questions about evaluating-llms-harness

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I evaluate an LLM on MMLU with lm-evaluation-harness?▼

Run lm_eval with --model hf, --model_args pretrained=your-model, --tasks mmlu, and --num_fewshot 5 for the standard 5-shot setting. Results with accuracy and standard error are saved to a JSON output file.

How can I speed up LLM benchmark evaluation?▼

Use the vLLM backend with --model vllm and tensor_parallel_size set to your GPU count, which is 5-10x faster than the HuggingFace backend. You can also reduce few-shot examples or evaluate MMLU subsets like mmlu_stem.

Can lm-evaluation-harness evaluate OpenAI or Anthropic API models?▼

Yes, it supports openai-chat-completions and anthropic-chat model types via API keys. Chat APIs lack logprobs, so they only work with generation tasks like MMLU and GSM8K, not perplexity tasks.

Why do my benchmark results differ from published scores?▼

Check that your few-shot count matches the paper (usually 5-shot), verify the exact task name, and confirm the model and tokenizer match. Sampling temperature and seed settings also affect generation-based tasks.

What should I do when evaluation runs out of GPU memory?▼

Reduce batch size or use --batch_size auto, enable 8-bit or 4-bit quantization via load_in_8bit in model_args, or shard large models across GPUs with parallelize=True or vLLM tensor parallelism.

When should I use HELM or MT-Bench instead of lm-evaluation-harness?▼

Use HELM for broader evaluation covering fairness, efficiency, and calibration, or MT-Bench for multi-turn conversational assessment. lm-evaluation-harness is best for standardized academic benchmarks with reproducible prompts.