Module 27
Finish the Transformer
Advanced module (after graduating): multi-head, position, LayerNorm, residual connection, block
When you finish this module you can say:
I can build a Transformer block piece by piece with numpy and check its shapes; I can show what pre-training and fine-tuning do in a small model.
By the end of this module you'll be able to show every piece inside a Transformer block in code and follow the shapes through a GPT's forward pass.
StartLessons
6 lessons · ≈ 65 min
- Multi-head attention11 min
- Order information: position embeddings10 min
- LayerNorm and the residual connection10 min
- A block11 min
- Pre-training and fine-tuning11 min
- Project: a mini GPT and the Colab bridge12 min · project
Practice exercises
Short writing exercises, independent of the lessons: Go to the exercises