Learning track
The Transformer
Assemble the architecture behind modern LLMs, beginning with self-attention and its query, key, and value operations.
The Transformer
Assemble the architecture behind modern LLMs, beginning with self-attention and its query, key, and value operations.
- 05.01"Attention Is All You Need" in context→
- 05.02Self-attention from first principles: Q, K, V→
- 05.03Scaled dot-product attention & the √d_k→
- 05.04Causal masking & why order matters→
- 05.05Multi-head attention→
- 05.06Positional encoding I: sinusoidal & learned→
- 05.07Positional encoding II: RoPE→
- 05.08Positional encoding III: ALiBi & relative bias→
- 05.09The feed-forward block & where knowledge lives→
- 05.10Residuals, pre-norm vs post-norm→
- 05.11The full block, assembled→
- 05.12Encoder-only, decoder-only, encoder–decoder→
- 05.13Build a GPT from scratch, annotated→
- 05.14Reading real weights: what a trained model looks like→