evaluating-llms-harness

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

Updated Sep 9, 2026
One-click install
npx skills add https://github.com/luckybbjason1/trading --skill evaluating-llms-harness-luckybbjason1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evaluating-llms-harness
Source: https://github.com/luckybbjason1/trading/tree/main/.hermes/skills/mlops/evaluation/lm-evaluation-harness
Command: npx skills add https://github.com/luckybbjason1/trading --skill evaluating-llms-harness-luckybbjason1

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 Model Backends: Run evaluations against HuggingFace models, vLLM for 5-10x faster inference, quantized checkpoints, and API 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, HellaSwag, and TruthfulQA, then generate a markdown comparison table of scores for a model selection report. ## Quick Start Ask the AI to evaluate a HuggingFace model like meta-llama/Llama-2-7b-hf on the MMLU and GSM8K benchmarks using lm_eval with 5-shot prompting.

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 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 JSON results with accuracy scores and standard errors.

How can I speed up LLM benchmark evaluation?

Use the vLLM backend instead of HuggingFace for 5-10x faster inference by passing --model vllm with tensor_parallel_size. You can also reduce num_fewshot to 0, use batch_size auto, 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 using your API keys. Chat APIs lack logprobs, so they only work with generation tasks like MMLU and GSM8K, not perplexity or loglikelihood tasks.

Why do my benchmark results differ from published scores?

Mismatches usually come from wrong fewshot counts (most papers use 5-shot), incorrect task names, or a tokenizer that does not match the model. Verify num_fewshot, the exact task identifier, and that pretrained and tokenizer arguments point to the same model.

How do I evaluate a model too large for one GPU?

Use tensor parallelism with vLLM by setting tensor_parallel_size to split weights across GPUs, or HuggingFace's parallelize=True option. A 70B model in bfloat16 needs roughly 168GB, so 4-8 GPUs are typically required.

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 and reproducible model comparisons.