evaluating-llms-harness

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

Updated Aug 28, 2026
One-click install
npx skills add https://github.com/Its-Atharva-Gupta/forge-researcher --skill evaluating-llms-harness-its-atharva-gupta
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evaluating-llms-harness
Source: https://github.com/Its-Atharva-Gupta/forge-researcher/tree/main/skills/lm_evaluation_harness
Command: npx skills add https://github.com/Its-Atharva-Gupta/forge-researcher --skill evaluating-llms-harness-its-atharva-gupta

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 every team uses different prompts, few-shot settings, and metrics, making results impossible to compare. This Skill standardizes LLM evaluation across 60+ academic benchmarks so results are reproducible and comparable to published baselines. ## Core Features & Use Cases - Standardized Benchmarking: Run MMLU, GSM8K, HumanEval, TruthfulQA, HellaSwag, ARC, and 60+ other tasks with one command against HuggingFace, vLLM, or API models. - Training Progress Tracking: Evaluate checkpoints periodically during training and plot learning curves to detect regressions early. - Model Comparison: Batch-evaluate multiple models and generate comparison tables for papers or release decisions. - Use Case: Before releasing a fine-tuned 7B model, run the standard suite (mmlu,gsm8k,hellaswag,truthfulqa,arc_challenge) with 5-shot prompting and compare scores against Llama-2 and Mistral baselines. ## Quick Start Ask the agent to evaluate a HuggingFace model on MMLU, GSM8K, and HellaSwag with 5-shot prompting and save the JSON results.

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 and GSM8K?

Run lm_eval with the hf model backend, passing the HuggingFace model path and a comma-separated task list such as mmlu,gsm8k,hellaswag. Use --num_fewshot 5 for the standard setting and --output_path to save JSON results with accuracy and standard error.

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, while HELM from Stanford covers broader dimensions such as fairness, efficiency, and calibration. Use lm-eval for comparable benchmark scores and HELM for holistic model assessment.

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 as an environment variable. Chat APIs lack logprobs, so they only support generation tasks like MMLU and GSM8K, not perplexity or loglikelihood tasks.

Why is my MMLU evaluation so slow?

Full MMLU covers 57 subjects and takes about 2 hours for a 7B model on one GPU. Switch to the vLLM backend for 5-10x speedup, reduce few-shot examples to zero, or evaluate only a subset like mmlu_stem.

How do I fix CUDA out of memory errors during evaluation?

Reduce batch size to 1 or use --batch_size auto, enable 8-bit quantization with load_in_8bit=True, or shard the model across GPUs with parallelize=True. A 7B model needs roughly 16GB VRAM in bfloat16 or 8GB in 8-bit.

When should I not use lm-evaluation-harness?

Avoid it for conversational multi-turn evaluation, where MT-Bench fits better, and for instruction-following judged by LLMs, where AlpacaEval is standard. Domain-specific needs are better served by custom tasks or bespoke evaluation scripts.