Fine-Tuning, and When Not ToLesson 54 of 84

Module 6 · The mechanics of a run

What to log, and how to read it

In this lesson

  • 8 min read
  • 5 reading sections
  • Knowledge check
  • Lesson 7 of 10 in this chapter

This chapter’s goalConfigure and launch a fine-tuning job with the correct chat template, masking and tokenizer handling, and diagnose from the logs alone whether a run is not learning, diverging, or memorising.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Six things to log, and what each says that loss does notGradient normA run heading for divergence climbs here hundreds ofsteps before the loss moves. Near zero from thestart means nothing is learning.Tokens per optimiser stepThe true unit of batch size, and not logged bydefault. Under a few thousand, your gradients arenoisy whatever the example count says.Token accuracy on unmasked positionsFree, interpretable without exponentiating anything,and less swayed by a handful of very surprisingtokens.Learning rateA schedule set for the wrong number of steps isinvisible in every other number and obvious on aplot.Mean generated lengthThe cheapest detector of the length drift thatpreference methods cause and that model judgesreward.Three fixed generationsNot a metric, and more informative than all of them.Stylistic collapse appears here and nowhere else.Pick the three prompts deliberately: one typical input, one edge case, and one that should bedeclined. Keep the whole log directory beside the checkpoint, because it is a few megabytes and it isthe only answer to “why is version two better than version three”.
Pick the three prompts deliberately: one typical input, one edge case, and one that should be declined. Keep the whole log directory beside the checkpoint, because it is a few megabytes and it is the only answer to "why is version two better than version three".

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 6Free · no account needed
Lesson steps

Loss is one of six numbers

Most people watch the loss and nothing else. Here is the full set worth having, and what each one tells you that loss does not.

Gradient norm. The most under-used signal in fine-tuning. It is the magnitude of the whole gradient vector before clipping, and the shape of its curve is diagnostic:

  • A healthy run: moderate at the start, settling to a stable band.
  • Isolated tall spikes: individual pathological examples. Harmless if max_grad_norm is clipping them, and worth finding anyway: log the batch index.
  • Steadily climbing: instability. The learning rate is too high and the run is heading for divergence, and you can see it several hundred steps before the loss does.
  • Near zero from the start: nothing is learning. Check trainable parameters before anything else.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Running Models Yourself exam.

Stuck on something?Ask Rafael, your AI tutor

How to cite: Addaly (2026) ‘What to log, and how to read it’, in Fine-Tuning, and When Not To. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/fine-tuning/logging-and-watching (Accessed: 29 November 2026).