Track 02: Transformer Architecture
Every model in this curriculum — GPT, BERT, Llama, Claude, whichever chat product you use daily — is a transformer. This track builds the architecture up from the linear algebra you actually need (dot products, nothing heavier), computes self-attention by hand on a tiny example, and ends with you implementing a working mini-transformer in PyTorch. No research-paper notation assumed.
Modules
- The Problem Transformers Solve
- The Math You Actually Need: Vectors, Matrices, Dot Products
- Embeddings as Lookup Tables
- What Attention Actually Computes
- Queries, Keys and Values
- Self-Attention Step by Step, By Hand
- Scaled Dot-Product Attention
- Attention Masks and Causal Masking
- Multi-Head Attention
- Why Positional Information Is Needed
- Sinusoidal Positional Encoding
- Rotary Position Embeddings (RoPE)
- The Feed-Forward Network
- Residual Connections and Layer Normalization
- The Complete Transformer Block
- Stacking Blocks Into a Model
- Encoder-Only vs. Decoder-Only vs. Encoder-Decoder
- Implementing a Mini Transformer in PyTorch
- Capstone Project