A transformer, worked through one byte at a time
Interactive. The small transformer tt-2 runs in the page: pick or type a text, click a byte, and follow the real numbers from the bytes to the prediction, through heads (a toy with three positions, then the real eight), neurons, and the sum they add up to. Parts can be switched off. Section 9 draws all 115,008 learned numbers to scale, as shapes, with a guide to their names. For a reader who knows probability and linear algebra and not deep learning.