evaluating-llms-harness

Benchmark LLMs on 60+ academic tasks using lm-evaluation-harness.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Evaluating and comparing language models requires standardized prompts, metrics, and reproducible setups. This Skill provides complete workflows for benchmarking LLMs with the industry-standard lm-evaluation-harness, covering everything from single-model evaluation to multi-model comparison and training progress tracking. ## Core Features & Use Cases - Standard Benchmark Evaluation: Run MMLU, GSM8K, HumanEval, TruthfulQA, HellaSwag, ARC, and 60+ other tasks against HuggingFace, vLLM, or API-based models. - Training Progress Tracking: Automate periodic checkpoint evaluation and plot learning curves during model training. - Model Comparison: Batch-evaluate multiple models and generate comparison tables for release decisions. - Use Case: You fine-tuned a 7B model and need to report MMLU and GSM8K scores for a model card. Use this Skill to run 5-shot evaluation with vLLM for fast inference, then compare results against published baselines like Llama 2 and Mistral. ## Quick Start Ask the agent to evaluate a HuggingFace model on MMLU and GSM8K using lm_eval 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?▼

Run lm_eval with the hf model backend, specifying the pretrained model, the mmlu task, and num_fewshot 5 for the standard setting. Add batch_size auto and an output_path to save results as JSON with accuracy and standard error.

lm-evaluation-harness vs HELM for LLM benchmarking?▼

lm-evaluation-harness focuses on standardized academic benchmarks like MMLU, GSM8K, and HumanEval with reproducible prompts. HELM from Stanford covers broader dimensions including fairness, efficiency, and calibration, while AlpacaEval and MT-Bench target instruction-following and conversation.

Can lm_eval evaluate OpenAI or Anthropic API models?▼

Yes, use the openai-chat-completions or anthropic-chat model types with your API key exported. Chat APIs lack logprobs, so they only support generation tasks like MMLU and GSM8K, not perplexity or loglikelihood evaluations.

Why is my MMLU evaluation so slow and how do I speed it up?▼

Full MMLU takes about 2 hours on a 7B model with the HuggingFace backend. Switch to the vLLM backend for 5-10x faster inference, reduce num_fewshot to 0, or evaluate a subset like mmlu_stem instead of all 57 subjects.

Why does HumanEval fail to run in lm-evaluation-harness?▼

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

How do I evaluate a 70B model that does not fit on one GPU?▼

Use tensor parallelism to shard weights across GPUs: pass parallelize=True with the hf backend or tensor_parallel_size=4 with vLLM. A 70B model in bfloat16 needs about 168GB total, so 4-8 GPUs are typically required.