Course 06 of 10
Transformers
The architecture behind modern generative models: how attention becomes a full block, scales, and specializes.
01Tokenization4 lessons
Before a transformer sees a single vector, raw text has to become a sequence of discrete symbols it can look up in a fixed vocabulary. Chapter overview
02Embeddings and Masking3 lessons
03The Transformer Block6 lessons
Attention on its own is only half of a transformer layer. Chapter overview
04Positional Information Beyond Sinusoids3 lessons
The fixed sinusoidal encoding from Deep Learning was the original transformer's answer to "where is this token in the sequence?" — but it was never the only answer, and modern models mostly use… Chapter overview
05Architectural Families4 lessons
The same transformer block supports three very different overall shapes, depending on which direction information is allowed to flow. Chapter overview
06Efficient and Scaled Attention5 lessons
Plain multi-head attention gets expensive fast: its cost grows with the square of sequence length, and its memory traffic during inference grows with every token generated. Chapter overview
07Scaling the Block3 lessons
Making a transformer bigger raises three separate questions: whether every parameter has to run on every input, how big "bigger" actually is in concrete numbers, and how a single block's… Chapter overview
08Transformers Beyond Text3 lessons
Nothing about the transformer block is specific to language — it only needs a sequence of vectors to attend over. Chapter overview
09Transformers in Practice2 lessons
This last section is about running a trained transformer well, and a capstone that walks the whole subject in one place. Chapter overview