Inside the model

Open up a real language model running in your browser. Read its predictions layer by layer, switch off attention heads to see what they do, watch an induction circuit form during training, and steer the model's output. Then see why understanding and aligning models is hard.

Level
Advanced
Length
6 lessons, 2 hr 45 min
Assumes
The transformers track.
Builds on
Transformers and LLMs
  1. 1Reading a model layer by layerWatch a real language model build its answer across 30 layers. Read its guess at every depth with the logit lens, and see where each attention head looks.25 min
  2. 2How circuits form: induction headsTrain a tiny transformer in your browser and watch it suddenly learn to copy, as two attention heads in two layers lock together into an induction circuit.25 min
  3. 3Superposition: more features than neuronsTrain a tiny model that squeezes five features into two dimensions, and see why packing features this way makes neurons hard to read.25 min
  4. 4Switching parts off and steeringChange a real model while it runs. Switch attention heads off, copy activations from one prompt into another to see where a fact travels, and add a direction that changes what the model writes.30 min
  5. 5Alignment: getting the goal rightA model can learn the wrong goal even from a correct reward. Watch an agent ace training and then walk past the coin, and see how evaluations and red teaming look for such failures.25 min
  6. 6How alignment is attemptedThe methods developers use to make models do what people intend, the evidence that each one works, the limits their own authors report, and where experts disagree about long-term risk.35 min

Labs in this track

Try "embedding", "softmax", "overfitting", or "backpropagation".