The maths — softmax and temperature.
How a single dial sharpens or flattens a set of scores into odds — the formula under all of Lesson 5.
None of this is required to use temperature — but it is the single formula sitting under all of Lesson 5, gathered in one place. And it is an unusually clean one: softmax, with one extra symbol dropped in (÷ T).
Softmax turns the model's raw scores into probabilities. Temperature divides those scores first, which stretches or squeezes the gaps between them. That is the whole mechanism — everything on Page 1 was this, and everything on Page 2 was a trim applied afterwards.
Drag the temperature and watch the three odds move — then read the formula that is doing it.
The formulas, in one place.
Each is written the way you would meet it in a textbook, with a plain-language line above and where it turned up in this lesson below.
pi / pj = ezi − zj — only the gap matters
gap zi−zj → (zi−zj) / T — every gap scaled by 1/T
T → ∞ : pi → 1/n for every option (uniform)
Where to take it next.
Each idea here is a doorway. If you want to keep going, these are the next words to search — each is the natural step up from what you just saw:
None of it is needed to finish the course — but each deepens the picture of what the temperature dial is really doing. And the same maths, borrowed straight from physics, turns up far beyond language models.