Session 5: Model Evaluations & LLM Benchmarks (Part 1)
1. Recap of Previous Sessions
Before starting Model Evaluations, let's quickly revise what has been covered.
Session 1
Why do we need LLM Evaluations?
LLMs are probabilistic systems.
Unlike traditional software, they don't always produce deterministic outputs.
Therefore we require evaluation systems to measure
- correctness
- quality
- reliability
- safety
- consistency
Without evaluation, improvement is impossible.
Golden Rule
If you can't measure it, you can't improve it.
Session 2
Types of LLM Evaluations
LLM evaluations are broadly divided into two categories.
1. Model Evaluations
Evaluate the capabilities of the LLM itself.
Examples
- GPT-5
- Claude
- Gemini
- DeepSeek
- Qwen
Questions asked include
- Which model reasons better?
- Which model writes better code?
- Which model is safer?
- Which model follows instructions better?
2. Application Evaluations
Evaluate an application built using LLMs.
Examples
- RAG systems
- AI Agents
- Customer support chatbot
- Medical assistant
- Coding assistant
Here we evaluate
- Retriever
- Generator
- Agent workflow
- Entire pipeline
Session 3
LLM Evaluation Pipeline
Typical evaluation pipeline:
Application
↓
Dataset
↓
Evaluator
↓
Metrics
↓
Decision
Session 4
Offline vs Online Evaluations
Offline
- Before deployment
- Golden dataset
- Release gating
- Regression testing
- Version comparison
Online
- After deployment
- Live users
- Monitoring
- Drift detection
- Hallucination monitoring
- Latency monitoring
Today's Goal
Today we shift focus from
Evaluating Applications
to
Evaluating Models
What are Model Evaluations?
Model Evaluation is the systematic process of measuring the capabilities of an LLM under controlled conditions.
Instead of asking
"Does my chatbot work?"
We ask
"How capable is the model itself?"
Why AI Engineers Need Model Evaluations
Many people think model evaluations are only useful for OpenAI, Anthropic, Google, or Meta.
That is incorrect.
Even AI Engineers building applications use model evaluations every day.
Reason 1 — Choosing the Right LLM
Imagine your company wants to build a RAG chatbot.
The first question becomes
Which LLM should we use?
Possible choices
- GPT
- Claude
- Gemini
- DeepSeek
- Qwen
- Llama
You cannot answer
"Any model is fine."
That is not an engineering decision.
Instead, you must justify your choice using measurable evidence.
Example:
Coding Ability
Claude : 94
GPT : 90
DeepSeek : 88
If coding quality is critical,
choose Claude.
Model evaluations provide this evidence.
Reason 2 — Comparing New Models
Suppose your application currently uses
Claude Opus.
Tomorrow Anthropic releases
Claude Fable.
Your manager asks
Should we migrate?
How do you answer?
Not by guessing.
You compare benchmark scores.
Example
Claude Opus
Reasoning : 92
Coding : 89
Math : 86
Claude Fable
Reasoning : 95
Coding : 92
Math : 90
Now you have objective data.
Reason 3 — Safety
Before deploying an LLM,
you must know
- hallucination rate
- jailbreak resistance
- prompt injection robustness
- harmful output probability
- truthfulness
These are measured through model evaluations.
Reason 4 — Open Source vs Proprietary Models
Suppose your options are
Option A
Claude API
Pros
- Excellent quality
- Easy to use
Cons
- Expensive
Option B
DeepSeek
Pros
- Cheap
- Self-hostable
Cons
- Lower benchmark scores
How do you decide?
You compare
- quality
- latency
- cost
- benchmark scores
- application performance
Model evaluations enable this comparison.
Final Conclusion
Without model evaluations,
you are essentially blind.
You cannot answer
- Which model is better?
- Which model is safer?
- Which model is cheaper?
- Which model should be deployed?
Formal Definition
Model Evaluation is
A systematic process of measuring an LLM's capabilities, behaviour, reliability, and operational characteristics under controlled conditions.
Four Steps of Every Model Evaluation
Every evaluation follows the same workflow.
Step 1
Choose the capability to evaluate.
Examples
- Reasoning
- Coding
- Mathematics
- Vision
- Safety
- Long Context
- Tool Use
Step 2
Choose a test.
Examples
- MMLU
- SWE-Bench
- HumanEval
- GSM8K
or
Create your own evaluation dataset.
Step 3
Run the model
Run every model under identical conditions.
Keep fixed
- Prompt
- Temperature
- Max Tokens
- Environment
This ensures fair comparison.
Step 4
Score and Interpret
Collect metrics
Example
Claude
92%
GPT
89%
DeepSeek
86%
Then decide which model performs better.
Two Types of Model Evaluations
There are only two major categories.
1. Benchmarks
Standardized public tests.
Everyone evaluates on the same dataset.
Examples
- MMLU
- SWE-Bench
- HumanEval
- GSM8K
Advantages
- Fair comparison
- Public leaderboard
- Standardized
2. Custom Evaluations
Instead of public datasets,
companies evaluate using their own tasks.
Example
A company builds an Email Router.
Labels
Billing
Refund
Technical
Collect
200–500 real emails.
Now evaluate multiple models on these emails.
This tells you which model performs best for your business, not just on public benchmarks.
Why Benchmarks Alone Are Not Enough
Suppose two models exist.
Model A
Top benchmark scores
Cost
$15 / million tokens
Latency
4.1 seconds
Accuracy
94%
Model B
Average benchmark scores
Cost
$0.50 / million tokens
Latency
0.9 seconds
Accuracy
91%
Public Benchmark Winner
Model A
Business Winner
Model B
Why?
Because
- 3% lower accuracy
- 30× cheaper
- Much faster
For a simple email classification system,
Model B provides much better value.
Lesson
Public Benchmarks answer
Which model is generally better?
Custom Evaluations answer
Which model is better for MY application?
This distinction is one of the most important concepts in model evaluation.
This covers the first major portion of the lecture. The remaining sections (LLM Benchmarks, the 8 Core LLM Capabilities, famous benchmarks like MMLU, SWE-Bench, HumanEval, GSM8K, benchmark interpretation, and benchmark limitations) are large enough that they should be covered in the next part to maintain the same detailed quality. Excellent. We'll start with Part 1.1. These notes are written as AI Engineering Handbook notes—not just lecture notes.