This demo is a complete transformer: embeddings, one attention head, unembedding, 1,152 parameters in all. It predicts the next word in a small made-up language, and it is simple enough to train entirely in this browser: real forward pass, real backpropagation, real gradient descent.
Multiply this story by 1,152 weights per step (124 million for GPT-2, ~10¹¹ for a frontier model) and by millions of steps. Every weight in every LLM is written this way.
Everything you just watched scales without changing its nature. GPT-2 small is this exact loop with d=768, 12 heads × 12 layers, LayerNorm and MLPs in the stack, AdamW instead of Adam, trained on ~8 billion tokens instead of 48 sentences. Frontier models add orders of magnitude and keep the same ideas: the loss is still −log p(next token), the update is still θ ← θ − η·∂L/∂θ.
The embeddings and attention lenses we studied in session 2 are just rows and columns of θ that this loop wrote. What scale adds is what those simple parts compose into: induction heads and in-context learning, which is where we go next.