Measuring a model honestly
A bad measurement is worse than none, because it makes you confident and wrong. Here is how to do it properly.
You have learnt in the other lessons that the feeling of knowing is a poor guide. The same is true of numbers about AI. A measurement taken carelessly makes you confident and wrong.
The two numbers that matter
- Time to first token. How long you wait before anything appears. This is what makes a tool feel quick or slow.
- Tokens per second. How fast the text streams once it starts.
They move for different reasons. A long prompt makes the first number worse. A larger model makes both worse.
Four ways to fool yourself
1. Measuring a cold start. The first request after a model loads is always slow. Send a few requests first and throw those results away.
2. Using toy prompts. “Say hello” tells you nothing. Use prompts and answer lengths like the ones in your real work.
3. Ignoring context length. As you saw earlier, speed falls as the context grows. Measure at the length you will really use.
4. Trusting one run. Results vary from run to run. Run it five to ten times. Report the average and how much the runs varied. A single number hides an unstable system.
Read other people’s numbers with care
Published figures are usually taken under ideal conditions: short prompts, the best settings and well-chosen examples. Expect to see noticeably less in real use. That does not mean your setup is broken.
So when somebody quotes a speed, ask:
- How long was the prompt?
- What settings and what hardware?
- How many runs, and how much did they vary?
Speed is half the picture
A fast wrong answer is still a wrong answer.
Measure quality as well. Use your own examples, and have a person judge the output. If a faster setup makes the answers worse, it is not faster in any way that helps you.
The habit
Before you believe any number about an AI system, ask how it was measured. That includes your own numbers. This is the same discipline as testing yourself before you trust that you know something. The honest measurement is less comfortable, and it is the only one worth having.
Close the page in your mind, then answer
Do not scroll up. Pulling the answer out of your own head is the step that makes it stay.