Curriculum
Learning tracks
A connected path from first principles to modern language-model systems.
foundations · 8 available lessons
Orientation & Foundations
Build an accurate mental model of language models and the mathematics needed for everything that follows.
foundations · 7 available lessons
From Text to Tensors
See how text becomes tokens, vectors, and numerical structures a neural network can process.
foundations · 9 available lessons
Neural Network Fundamentals
Learn how neural networks represent functions, measure error, propagate gradients, and improve through optimization.
- The perceptron
- Multilayer perceptrons and non-linearity
- Activation functions: ReLU, GELU, and SwiGLU
- Loss functions and cross-entropy
- Backpropagation, visualized
- Gradient descent and the loss landscape
- Optimizers: SGD to Momentum to Adam to AdamW
- Initialization, normalization, and residuals
- Overfitting, regularization, and the bitter lesson
core · 5 available lessons
Sequence Models
Follow the path from recurrent state to encoder-decoder models and attention, the immediate ancestors of the Transformer.
core · 14 available lessons
The Transformer
Assemble the architecture behind modern LLMs, beginning with self-attention and its query, key, and value operations.
- "Attention Is All You Need" in context
- Self-attention from first principles: Q, K, V
- Scaled dot-product attention & the √d_k
- Causal masking & why order matters
- Multi-head attention
- Positional encoding I: sinusoidal & learned
- Positional encoding II: RoPE
- Positional encoding III: ALiBi & relative bias
- The feed-forward block & where knowledge lives
- Residuals, pre-norm vs post-norm
- The full block, assembled
- Encoder-only, decoder-only, encoder–decoder
- Build a GPT from scratch, annotated
- Reading real weights: what a trained model looks like
advanced · 13 available lessons
Pretraining at Scale
Design the objectives, data, optimization, parallelism, and cost model behind a serious language-model pretraining run.
- Objectives: causal LM, MLM, span corruption, FIM
- Data: sourcing, filtering, dedup, decontamination
- Training your own tokenizer
- Scaling laws I: Kaplan
- Scaling laws II: Chinchilla & compute-optimality
- Scaling laws III: inference-aware & over-training
- Data parallelism, ZeRO & FSDP
- Tensor, pipeline & sequence parallelism
- Mixed precision: fp16, bf16, fp8
- Gradient checkpointing & memory maths
- Learning-rate schedules & warmup
- When training goes wrong: spikes, divergence, NaNs
- What a real pretraining run costs
advanced · 11 available lessons
Post-training & Alignment
Turn pretrained predictors into useful assistants through instruction tuning, preference learning, reinforcement learning, and distillation.
- Why base models aren't assistants
- Supervised fine-tuning & instruction data
- LoRA, QLoRA & PEFT
- Reward models & human preference data
- RLHF with PPO
- DPO: skipping the reward model
- ORPO, KTO, SimPO & the alignment zoo
- GRPO & RL on verifiable rewards
- Reasoning models: test-time compute & long CoT
- Constitutional AI & RLAIF
- Distillation: making small models punch up
advanced · 12 available lessons
Inference & Efficiency
Understand how trained models generate text and how decoding choices trade off diversity, coherence, latency, and cost.
- What actually happens when you hit send
- The KV cache
- Prefill vs decode: two different machines
- Sampling: temperature, top-k, top-p, and min-p
- Beam search, speculative decoding & Medusa
- MQA, GQA & MLA
- FlashAttention & IO-awareness
- PagedAttention & continuous batching
- Quantization I: int8, int4, the basics
- Quantization II: GPTQ, AWQ, GGUF, QAT
- Serving stacks: vLLM, SGLang, TensorRT-LLM
- Running models locally