πŸ“Š Model Evals β€” The Complete Guide

From Perplexity to Multimodal: Understanding, running, and interpreting every major LLM and VLM evaluation benchmark. A comprehensive reference for ML practitioners.

Who This Is For

You’re building, fine-tuning, or deploying language models and vision-language models. You need to evaluate them rigorously β€” but benchmarks are fragmented, methodologies are inconsistent, and subtle implementation choices can swing results by several points. This guide gives you the complete picture: the math, the datasets, the code, the caveats, and the practical wisdom.

πŸ“‹ Table of Contents

# Eval Type Metric What It Measures
1 Wikitext Perplexity Language Modelling Perplexity (↓) How well a model predicts the next token on curated Wikipedia text
2 MMLU Knowledge & Reasoning Accuracy (↑) Broad academic knowledge across 57 subjects
3 MMMU Multimodal Reasoning Accuracy (↑) College-level multimodal understanding across 30 subjects
4 RealWorldQA Multimodal Perception Accuracy (↑) Real-world spatial and visual understanding from photos

πŸ—ΊοΈ Eval Categories

Evaluation Landscape
Text-Only Evals
Perplexity (WikiText), MMLU β€” measuring language modelling quality and knowledge
Multimodal Evals
MMMU, RealWorldQA β€” measuring vision-language understanding and reasoning

⚑ Quick Reference

What Each Eval Tells You

Eval Good For Not Good For
Wikitext PPL Comparing base model quality, measuring training progress, detecting regressions Comparing across different tokenizers, evaluating instruction-following
MMLU Broad knowledge assessment, comparing models at scale Measuring reasoning depth, evaluating chat quality
MMMU College-level multimodal reasoning, vision-language capability Simple image recognition, real-world perception
RealWorldQA Practical visual understanding, spatial reasoning Academic knowledge, complex multi-step reasoning

Metric Cheat Sheet

Metric Direction Perfect Score Typical Range (7B) Typical Range (70B+)
Perplexity Lower ↓ 1.0 5–8 (WikiText-2) 3–5 (WikiText-2)
MMLU Accuracy Higher ↑ 100% 55–70% 75–90%
MMMU Accuracy Higher ↑ 100% 30–45% 50–65%
RealWorldQA Accuracy Higher ↑ 100% 50–60% 60–75%

πŸ› οΈ Running Evals

Most evals in this guide can be run via lm-eval-harness:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Install
pip install lm-eval

# Run perplexity on WikiText
lm_eval --model hf \
    --model_args pretrained=meta-llama/Llama-3.1-8B \
    --tasks wikitext \
    --batch_size auto

# Run MMLU
lm_eval --model hf \
    --model_args pretrained=meta-llama/Llama-3.1-8B-Instruct \
    --tasks mmlu \
    --batch_size auto \
    --num_fewshot 5

For multimodal evals (MMMU, RealWorldQA), see the individual eval pages for framework-specific instructions.

πŸ“ How to Read Each Eval Page

Every eval page in this guide follows a consistent structure:

  1. Introduction β€” what the eval measures, who created it, primary metric
  2. Formula & Intuition β€” the math behind the metric, explained clearly
  3. Dataset Details β€” quantitative stats, splits, variants, qualitative characteristics
  4. Tensor Shapes β€” shapes at every stage of the evaluation pipeline
  5. Evaluation Procedure β€” step-by-step pseudocode
  6. Reference Implementation β€” production code from established sources
  7. Caveats & Pitfalls β€” what can go wrong and how to avoid it
  8. Leaderboard Reference β€” scores for small (<7B), medium (<30B), and large models
  9. Configurability β€” knobs you can turn and how they affect results
  10. Links & References β€” papers, datasets, code, and leaderboards

πŸ“ Changelog

Date Changes
April 2026 Initial release β€” 4 evals: Wikitext Perplexity, MMLU, MMMU, RealWorldQA

Last updated: April 2026