AI & transformers · Course 6 of 8
Transformers: implementation and training
Real PyTorch CPU tensor operations, independent checks and three composed projects. Run in Pythilo; no external weights, GPU or service required.
- 9 lessons
- App required
0 of 9 lessons passed
Lessons
Progress and your code are kept in this browser only.
- Mask attention with finite empty-row gradients
- Apply rotary positions without losing relative geometry
- Decode chunks with an owned, offset-aware KV cache
- Isolate packed documents in causal attention
- Share KV heads without breaking query-head mapping
- Normalize RMS with stable accumulation and autograd
- Project: build a pre-norm decoder block and audit its gradients
- Project: train and reload a tiny causal language model
- Project: train a padding-safe transformer classifier