Learn
21 short explainers of the ideas behind the releases, a few more every day
Roadmap: how a language model works
Four steps, each with an interactive page on neuron and short explainers here.
- 1
Tokens and embeddings
How text becomes numbers: it is split into tokens, each token is looked up as a vector, and its place in the sequence is added.
- 2
Attention and the MLP
Inside a transformer block: attention lets every token gather information from the ones before it, the MLP transforms it, and the residual stream carries the result to the next block.
- 3
From probabilities to text
The last layer gives a probability for every token in the vocabulary; temperature, top-k and top-p decide which one is written next.
- 4
Looking inside the model
What the numbers mean: sparse autoencoders split a layer's activity into thousands of features you can read, from simple patterns in early layers to abstract ideas in late ones.