lm-evaluation-harness

Evaluate large language models against 60+ academic benchmarks.

Updated Jul 3, 2026
One-click install
npx skills add https://github.com/Toqsick/MaxClaw --skill lm-evaluation-harness-toqsick
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lm-evaluation-harness
Source: https://github.com/Toqsick/MaxClaw/tree/main/.claude/skills/lm-evaluation-harness
Command: npx skills add https://github.com/Toqsick/MaxClaw --skill lm-evaluation-harness-toqsick

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill provides a comprehensive benchmarking tool for evaluating the performance of large language models (LLMs) across a wide range of academic benchmarks.

Core Features & Use Cases

  • Benchmarking: Evaluate LLMs against 60+ academic benchmarks like MMLU, GSM8K, HumanEval, and more.
  • Model Comparison: Compare the performance of different LLMs side-by-side.
  • Training Progress Tracking: Monitor the training progress of LLMs by evaluating checkpoints during training.
  • Custom Tasks: Create and evaluate custom tasks for domain-specific evaluation.
  • API Evaluation: Evaluate API-based models like OpenAI, Anthropic, and custom API endpoints.

Quick Start

Evaluate the performance of the 'llama2-7b-hf' model on the MMLU benchmark:

lm-evaluation-harness --model hf \
  --model_args pretrained=llama2-7b-hf \
  --tasks mmlu

Frequently Asked Questions about lm-evaluation-harness

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I evaluate large language models on academic benchmarks like MMLU?

To evaluate large language models on academic benchmarks, you can run the lm-evaluation-harness command with specified model arguments and tasks. It supports over 60 benchmarks including MMLU, GSM8K, and HumanEval for comprehensive performance assessment.

Can I use vLLM and HuggingFace transformers for LLM benchmarking?

Yes, LLM benchmarking supports HuggingFace, vLLM, and local OpenAI-compatible APIs. This allows you to evaluate models using your preferred inference framework without changing your existing evaluation pipeline.

What is the best way to compare the performance of different large language models?

The best way to compare the performance of different large language models is using a benchmarking harness. This tool evaluates multiple models side-by-side against standardized academic benchmarks to produce directly comparable performance metrics.

Do I need Python libraries to run LLM evaluation tasks?

Yes, you need Python libraries including lm-eval, transformers, and vllm to run LLM evaluation tasks. These dependencies provide the necessary backend support for loading models and executing the benchmark evaluations.

Can I evaluate API-based models like OpenAI and Anthropic?

Yes, you can evaluate API-based models like OpenAI and Anthropic. The evaluation harness supports evaluating API-based models alongside local models, allowing you to benchmark proprietary endpoints and custom API integrations.

How do I create custom tasks for domain-specific LLM evaluation?

You can create custom tasks for domain-specific LLM evaluation by configuring the evaluation harness. This allows you to define tailored benchmarks that assess model performance on specialized datasets and track training progress through checkpoint evaluation.