evaluating-llms-harness

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

1|Updated Aug 11, 2026
One-click install
npx skills add https://github.com/Chia1104/agent-air --skill evaluating-llms-harness-chia1104
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: evaluating-llms-harness
Source: https://github.com/Chia1104/agent-air/tree/main/skills/hermes/mlops/evaluation/evaluating-llms-harness
Command: npx skills add https://github.com/Chia1104/agent-air --skill evaluating-llms-harness-chia1104

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 benchmarks; running ad-hoc tests produces inconsistent, non-reproducible results that cannot be compared across models or papers. ## Core Features & Use Cases - Standardized Benchmarking: Evaluate models on 60+ academic benchmarks including MMLU, GSM8K, HumanEval, TruthfulQA, HellaSwag, and ARC with consistent prompts and metrics. - Multiple Backends: Run evaluations against HuggingFace models, vLLM for 5-10x faster inference, or API-based models like OpenAI GPT-4 and Anthropic Claude. - Training Progress Tracking: Automate periodic checkpoint evaluation during training and plot learning curves to monitor model quality over time. - Use Case: Compare Llama-2-7B, Mistral-7B, and Phi-2 on MMLU, GSM8K, and HellaSwag, then generate a markdown comparison table of scores for a model selection report. ## Quick Start Ask the agent to evaluate a HuggingFace model on MMLU and GSM8K 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 benchmark an LLM on MMLU with lm-evaluation-harness?▼

Install lm-eval via pip, then run lm_eval with --model hf, --model_args pretrained=your-model, --tasks mmlu, and --num_fewshot 5 for the standard 5-shot setting. Results are saved as JSON with accuracy scores and standard errors.

What is the difference between lm-evaluation-harness and HELM?▼

lm-evaluation-harness focuses on standardized academic benchmarks like MMLU and GSM8K with reproducible prompts, making it the industry standard used by EleutherAI and HuggingFace. HELM from Stanford offers broader evaluation covering fairness, efficiency, and calibration.

Can I evaluate OpenAI or Anthropic API models with lm-eval?▼

Yes, use --model openai-chat-completions or --model anthropic-chat with your API key exported as an environment variable. Note that chat models lack logprobs, so they only support generation tasks, not perplexity or loglikelihood tasks.

Why is my LLM evaluation running too slowly?▼

Switch to the vLLM backend with --model vllm for 5-10x faster inference, reduce few-shot examples with --num_fewshot 0, or evaluate a subset like mmlu_stem instead of the full 57-subject MMLU. Full MMLU on a 7B model takes about 2 hours on one A100.

Why does HumanEval refuse to run in lm-eval?▼

Code-executing tasks like HumanEval and MBPP are gated behind an explicit safety flag. You must pass --confirm_run_unsafe_code on the command line, otherwise lm-eval refuses to run the task rather than silently skipping code execution.

How much GPU memory do I need to evaluate a 70B model?▼

A 70B model in bfloat16 requires roughly 168GB of VRAM, so it will not fit on a single GPU. Use tensor parallelism with vLLM (tensor_parallel_size=4 or 8) or HuggingFace parallelize=True to shard the model across multiple GPUs.