softmax -- logits → probabilities
A model's raw output is a list of scores with no natural meaning: one word scored 8.3, another 2.1. Softmax turns that list into percentages adding up to 100, by growing each score exponentially and then dividing by the total, so a modest lead in score becomes a large lead in probability. Every classifier and every next-word prediction ends in one of these. A single dial called temperature stretches or squeezes the scores beforehand: turned low it makes the leader nearly certain, turned high it flattens everything toward an even chance.
Interactive page: how a vector of logits becomes a probability distribution, step by step, with temperature and the numerical-stability max-subtract shown. Anchor: A9/A10 (lm_head logits + vocab → sampling; Family A4 foundational).
What it shows
softmax(z)ᵢ = exp(zᵢ/T) / Σⱼ exp(zⱼ/T), over three bar rows — logits, exp(zᵢ/T − max), probabilities. Scrub the transport through the pipeline phases: find the max (highlighted; subtracted so exp never overflows), build each exp term, sum them, then normalize each into a probability (the prob bars fill and sum to 1). The temperature slider shows the effect directly: T→large flattens toward uniform, T→small sharpens toward a one-hot argmax.
Render tier
T1 (Canvas2D). Bar charts; no GPU needed.
Wiring
layout.mount + controls (k, seed, temperature) + the step Transport walking tensor.softmaxSteps (max → exp → sum → norm phases), drawn with ctx bars + render.label. ?step=N/?play=1 headless hooks as on the other pages. Source: page.js.