{
 "schema_version": 1,
 "generated": "2026-11-09",
 "id": "lightning-ai-litgpt--benchmark-a-model-on-mmlu-and-truthfulqa-with-litgpt",
 "repo": "Lightning-AI/litgpt",
 "repo_url": "https://github.com/Lightning-AI/litgpt",
 "repo_slug": "lightning-ai-litgpt",
 "title": "Benchmark a model on MMLU and TruthfulQA",
 "page_title": "How to benchmark a model on MMLU and TruthfulQA with Litgpt",
 "summary": "Run Litgpt evaluate with the truthfulqa_mc2 and mmlu tasks to score a base or finetuned model.",
 "who": "An ML engineer comparing a finetuned model with its base model.",
 "problem": "Without a standard benchmark it is hard to tell if finetuning helped or hurt.",
 "outcome": "Benchmark scores for the tasks you chose, ready to compare across checkpoints.",
 "steps": [
  "Install with `pip install 'litgpt[extra]'`",
  "Run `litgpt evaluate microsoft/phi-2 --tasks 'truthfulqa_mc2,mmlu'` for the base model",
  "Run the same evaluate command on your finetuned checkpoint folder",
  "Compare the scores per task"
 ],
 "agent_prompt": "Using Lightning-AI/litgpt, run `litgpt evaluate microsoft/phi-2 --tasks 'truthfulqa_mc2,mmlu'` and the same command on <my checkpoint folder>, then put both sets of scores in one table.",
 "agents": [
  "claude-code",
  "codex",
  "cursor",
  "gemini-cli"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Full MMLU runs take a long time on small GPUs.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python with pip",
  "A GPU for finetuning and pretraining",
  "Disk space for model weights"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": false,
 "score": 0.8,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/lightning-ai-litgpt/benchmark-a-model-on-mmlu-and-truthfulqa-with-litgpt/",
 "md": "https://dedupedai.com/use-cases/lightning-ai-litgpt/benchmark-a-model-on-mmlu-and-truthfulqa-with-litgpt/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/lightning-ai-litgpt--benchmark-a-model-on-mmlu-and-truthfulqa-with-litgpt.json",
 "api_version": "v1"
}
