Transformer architecture, positions, families and MoE
17 lessons in 4 modules, from “The LM head, logits and the next-token distribution” to “Modern decoder recipes compared”.
Course charge
—
Log in to track your progress as you finish lessons.
04
Modules
17
Lessons
04
Capstones
17
Built today
01
Ref cards
SyllabusDoneOpenProOn the bench
M01
Position schemes past the training length
Pro9 lessonsM01 is a Pro module. 9 lessons and the capstone unlock with Pro. Every Pro lesson has a stage 1 preview.
Start freeSee Pro- 10.01The LM head, logits and the next-token distributionPro
- 10.02The transformer block and the residual streamPro
- 10.03Autoregressive generationPro
- 10.04Sinusoidal positional encodingPro
- 10.05Learned and relative position embeddingsPro
- 10.06RoPEPro
- 10.07ALiBiPro
- 10.08RoPE scaling and position interpolationPro
- 10.C1Position schemes past the training length · capstonePro
M02
A MoE layer end to end
Pro6 lessonsM02 is a Pro module. 6 lessons and the capstone unlock with Pro. Every Pro lesson has a stage 1 preview.
Start freeSee Pro- 10.09Encoder-only, decoder-only and encoder–decoderPro
- 10.10Dense vs Mixture-of-Experts layersPro
- 10.11Routers and top-k routingPro
- 10.12Expert capacity and token droppingPro
- 10.13Load balancing and auxiliary lossesPro
- 10.C2A MoE layer end to end · capstonePro
M03
The full transformer forward pass
Pro1 lessonsM03 is a Pro module. 1 lessons and the capstone unlock with Pro. Every Pro lesson has a stage 1 preview.
Start freeSee Pro- 10.C3The full transformer forward pass · capstonePro
M04
Modern decoder recipes compared
Pro1 lessonsM04 is a Pro module. 1 lessons and the capstone unlock with Pro. Every Pro lesson has a stage 1 preview.
Start freeSee Pro- 10.C4Modern decoder recipes compared · capstonePro