evaluating-llms-harness

Benchmarks LLMs across 60+ academic tasks using standardized prompts and metrics.

2|Updated Jan 10, 2026
One-click install
npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill evaluating-llms-harness-shubh2310-developer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: evaluating-llms-harness
Source: https://github.com/Shubh2310-developer/ENGUNITYCORE/tree/main/.claude/skills/evaluation-lm-evaluation-harness
Command: npx skills add https://github.com/Shubh2310-developer/ENGUNITYCORE --skill evaluating-llms-harness-shubh2310-developer

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 workflows for running the EleutherAI lm-evaluation-harness so you can benchmark models on MMLU, GSM8K, HumanEval, HellaSwag, TruthfulQA, and 60+ other tasks without building evaluation infrastructure yourself. ## Core Features & Use Cases - Standard Benchmark Suites: Run core reasoning, math, code, and truthfulness benchmarks with a single command against HuggingFace, vLLM, or API-based models. - Training Progress Tracking: Evaluate checkpoints periodically during training and plot learning curves from saved JSON results. - Model Comparison: Batch-evaluate multiple models and generate comparison tables of accuracy and exact-match scores. - Use Case: You are preparing a model release and need academic-standard numbers. Run the standard suite (mmlu, gsm8k, hellaswag, truthfulqa, arc_challenge) with 5-shot prompting, then compare results against published baselines like Llama 2 and Mistral. ## Quick Start Ask the AI to evaluate a HuggingFace model on MMLU, GSM8K, and HellaSwag 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 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 standard academic settings and --output_path to save JSON results.

How to evaluate LLMs faster with vLLM?

Switch the model backend from hf to vllm and pass tensor_parallel_size and gpu_memory_utilization in model_args. vLLM typically runs MMLU on a 7B model in 15-20 minutes versus about 2 hours with the standard HuggingFace backend.

Can lm-evaluation-harness evaluate OpenAI and Anthropic models?

Yes, it supports openai-chat-completions and anthropic-chat model types using API keys. Chat APIs lack logprobs, so they only work with generation tasks like MMLU and GSM8K, not perplexity or loglikelihood tasks.

Why is my evaluation running out of GPU memory?

Reduce batch size, enable 8-bit or 4-bit quantization via load_in_8bit in model_args, or use device_map=auto with CPU offloading. For large models, apply tensor parallelism with vLLM or parallelize=True with HuggingFace.

When should I use HELM or AlpacaEval instead of lm-eval?

Use HELM for broader evaluations covering fairness, efficiency, and calibration, and AlpacaEval or MT-Bench for instruction-following and conversational quality judged by LLMs. lm-evaluation-harness is best for standardized academic benchmark scores.