MyClaw
HomeProductsUse CasesPricingSkillsResourcesCompany
HomeUse CasesPricingSkills
Sign In
Home
ProductsOpenClaw HostingHermes Agent Hosting
Use CasesPricingSkills
ResourcesCompareTutorialLearnBlogUpdatesResourcesCommunity
CompanyAboutSupport
Sign In
MyClaw.ai

Your AI agent, already running.

Product

OpenClaw HostingHermes Agent HostingUse CasesPricingCompareAlibaba Cloud

Resources

BlogUpdatesSkillsModelsSupportCommunityCapybara

Legal

TermsPrivacyCookieGDPRContact

© 2023 Cubo World Inc. All rights reserved.

← Back to Skills
AI & LLMs
🏁

LM Evaluation Harness

Benchmark LLMs across 60+ academic tasks (MMLU, GSM8K, HumanEval, HellaSwag) using the industry-standard EleutherAI evaluation harness.

by NousResearchv1.0.0
Connecting to VM...
Connecting to VM...
npx clawhub@latest install lm-evaluation-harness
2Current Installs
📦
v1.0.0Version
View Source

LM Evaluation Harness Skill Overview

LM Evaluation Harness is the industry-standard framework for benchmarking LLMs across 60+ academic tasks, including MMLU, GSM8K, HumanEval, TruthfulQA, and HellaSwag. It is used by EleutherAI, HuggingFace, and major research labs — including as the engine behind the Open LLM Leaderboard. Install it when you need reproducible, comparable quality metrics for any HuggingFace or vLLM-compatible model.

How to Use It

Step 1: Run in your terminal or install this skill on MyClaw

npx clawhub@latest install lm-evaluation-harness
or

Click the Install button at the top of this page for one-click setup

When to Use LM Evaluation Harness

Best Fit

  • You are writing an academic paper and need standardized benchmark scores with consistent few-shot prompts.
  • You want to compare multiple models (e.g., Llama-2-7b vs. Mistral-7B) on the same task suite and produce a side-by-side table.
  • You are training a model and want to track benchmark scores across checkpoints to catch regressions early.
  • You need to validate a fine-tuned model against public leaderboard numbers before a release.

When Not to Use

  • You need instruction-following or chat quality evaluation — consider AlpacaEval or MT-Bench instead.
  • You need broader coverage of fairness, calibration, or efficiency metrics — consider HELM.
  • You are evaluating a highly domain-specific task with no existing harness task definition and lack the time to write a custom task.

Key Features

60+ Academic Benchmarks

Covers MMLU (57 subjects), GSM8K, HumanEval, TruthfulQA, HellaSwag, ARC, MBPP, WinoGrande, and many more. All tasks use standardized prompts so results are directly comparable across runs and teams.

vLLM Backend for Fast Inference

Switching from the HuggingFace backend to vLLM cuts evaluation time by 5-10×. A full MMLU run on a 7B model drops from ~2 hours to ~15-20 minutes with tensor-parallel vLLM.

Multi-Model Comparison Workflow

Provide a list of model IDs, run evaluations in batch, and generate a markdown comparison table with per-task scores. Supports any mix of HuggingFace hub models and local checkpoints.

Training Progress Tracking

Evaluate checkpoints at regular training steps using fast benchmarks (HellaSwag, GSM8K), save per-step JSON results, and plot learning curves to monitor model improvement over time.

Quantization Support

Run 4-bit and 8-bit quantized models via load_in_4bit and load_in_8bit model args, reducing VRAM requirements from ~16 GB to ~8 GB for 7B models without changing the evaluation pipeline.

Flexible Device and Batch Configuration

Supports --batch_size auto for optimal throughput detection, --device selection, CPU offloading via device_map=auto, and multi-GPU tensor parallelism through the vLLM backend.

Use Cases

Academic Paper Benchmarking

Run 5-shot MMLU, GSM8K, and HellaSwag evaluations on your model using the same prompts as published papers and the Open LLM Leaderboard, producing directly comparable numbers.

Model Release Validation

Before releasing a fine-tuned checkpoint, run the standard benchmark suite to confirm quality thresholds are met and generate a results JSON suitable for model card reporting.

Training Checkpoint Monitoring

Integrate lm_eval calls into your training loop to evaluate lightweight benchmarks every N steps, catch regressions early, and plot accuracy curves across the training run.

Multi-Model Shootout

Evaluate a list of candidate models (e.g., Llama-2-7b, Mistral-7B, Phi-2) on the same task suite in batch and output a markdown comparison table for team review.

Requirements

  • Python packages: lm-eval, transformers; vllm optional for fast inference; human-eval required for HumanEval code execution
  • GPU: NVIDIA GPU with CUDA 11.8+ strongly recommended; CPU fallback supported but very slow
  • VRAM: ~16 GB (bf16) or ~8 GB (8-bit) for 7B models; 70B models require multi-GPU or quantization
  • HuggingFace Token: Required for gated models such as Llama-2; set via HF_TOKEN environment variable
  • Platforms: Linux, macOS
Connecting to VM...
npx clawhub@latest install lm-evaluation-harness
2Current Installs
📦
v1.0.0Version
View Source

Reviews

0 reviews

Log in to write a review

No reviews yet. Be the first to share your experience!