Evaluate a Tiny Language Model
About 24 min
Goal
By the end of this lesson, you can compare checkpoints using held-out loss, fixed generation prompts, simple failure indicators, and provenance, then state the limits of the evidence.
One generated sample has high variance: it can look unusually good or bad because of the prompt and random draw. One average loss answers a narrower next-token question and can hide behavioral failures. A useful tiny-model evaluation combines both kinds of evidence under fixed conditions.
Example scorecard:
checkpoint val_loss repetition fixed-prompt notes
step-40 2.91 low varied but rough
step-60 2.70 low best balance
step-80 2.86 high starts looping
Loss and behavior answer different questions
Imagine checkpoint A has validation loss 2.70 and checkpoint B has 2.75. That small loss difference tells you something about average next-token prediction on the held-out set. It does not tell you, by itself, whether either checkpoint loops on a specific prompt or follows a simple requested format.
Conversely, one attractive generated paragraph is weak evidence because sampling has variance. A checkpoint can get lucky once.
That is why a useful evaluation bundle contains:
- held-out likelihood evidence for average prediction quality;
- fixed behavioral cases for observable generation properties;
- failure indicators such as repetition or prompt drift;
- provenance so the exact checkpoint and decoding configuration are known;
- limitations stating what the small test set cannot establish.
The goal is not to combine every metric into one magic score. It is to keep distinct questions visible so a decision can be explained later.