π 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
β‘ 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:
- Introduction β what the eval measures, who created it, primary metric
- Formula & Intuition β the math behind the metric, explained clearly
- Dataset Details β quantitative stats, splits, variants, qualitative characteristics
- Tensor Shapes β shapes at every stage of the evaluation pipeline
- Evaluation Procedure β step-by-step pseudocode
- Reference Implementation β production code from established sources
- Caveats & Pitfalls β what can go wrong and how to avoid it
- Leaderboard Reference β scores for small (<7B), medium (<30B), and large models
- Configurability β knobs you can turn and how they affect results
- 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