Transformers, the tech behind LLMs (3Blue1Brown, Deep Learning chapter 5)
transformersembeddingsteachinggpt
Abstraction: 3Blue1Brown visual lesson: how a GPT turns tokens into next-token predictions
Key points:
- Text form of the video lesson: a GPT predicts a distribution over the next token, and generation is repeated predict-and-sample.
- Input is split into tokens, each mapped to an embedding vector; directions in embedding space carry meaning.
- Attention blocks let vectors exchange information; MLP blocks act on each vector separately; the pattern repeats many times.
- The final vector is unembedded and passed through softmax (with temperature) to get probabilities.
Connections: Transformers · Tokenization · Word Embeddings · 3blue1brown