evaluating-llms-harness

Evaluates LLMs across 60+ academic benchmarks using standardized prompts and metrics.

5|2|Updated Aug 10, 2026
One-click install
npx skills add https://github.com/MedTiLab/Auto-meta-analysis --skill evaluating-llms-harness-medtilab
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: evaluating-llms-harness
Source: https://github.com/MedTiLab/Auto-meta-analysis/tree/main/skills/evaluation/lm-evaluation-harness
Command: npx skills add https://github.com/MedTiLab/Auto-meta-analysis --skill evaluating-llms-harness-medtilab

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Benchmarking language models consistently is difficult because results vary with prompts, few-shot settings, and evaluation code. This Skill standardizes LLM evaluation across 60+ academic benchmarks so results are reproducible and comparable across models, checkpoints, and labs. ## Core Features & Use Cases - Standardized Benchmark Suites: Run MMLU, GSM8K, HumanEval, TruthfulQA, HellaSwag, ARC, and 60+ other tasks with uniform prompts and metrics. - Multiple Model Backends: Evaluate HuggingFace models, vLLM-served models, quantized checkpoints, and API models from OpenAI and Anthropic. - Training Progress Tracking: Automate periodic checkpoint evaluation and plot learning curves during model training. - Use Case: Compare Llama-2-7B, Mistral-7B, and Phi-2 on MMLU, GSM8K, HellaSwag, and TruthfulQA, then generate a markdown comparison table for a model release report. ## 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 a HuggingFace model on MMLU?▼

Run lm_eval with the hf model backend, passing pretrained model args, the mmlu task, and a few-shot count. For example: lm_eval --model hf --model_args pretrained=meta-llama/Llama-2-7b-hf --tasks mmlu --num_fewshot 5 --batch_size 8.

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

lm-evaluation-harness focuses on standardized academic benchmarks with reproducible prompts, making it the industry standard for reporting results. HELM from Stanford covers broader dimensions like fairness, efficiency, and calibration.

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

Yes, use the openai-chat-completions or anthropic-chat model types with your API key exported. Note that chat APIs without logprobs only support generation tasks like MMLU and GSM8K, not perplexity or loglikelihood tasks.

How do I speed up slow LLM benchmark evaluation?▼

Switch to the vLLM backend for 5-10x faster inference, reduce few-shot examples with --num_fewshot 0, or evaluate a subset like mmlu_stem instead of full MMLU. Multi-GPU data parallelism with accelerate also provides near-linear speedup.

Why do my benchmark results differ from published numbers?▼

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 task scores.

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

A 70B model in bfloat16 needs roughly 168GB, so it requires tensor parallelism across 4-8 GPUs or quantization. With vLLM tensor_parallel_size=4, each GPU needs about 35GB.