Phase 10
LLMs from Scratch
Build, train, and understand large language models.
Block 10 of twenty — stretch 1 of five in the professional level. Ships AI at work. If that is you, everything below is on your road; if it is not, read it anyway — every block stands alone, and the levels suggest an order rather than enforce one.
Work the list top to bottom the first time — 24 readings, one page each. Everything is free to read with no account, and the reader's previous-and-next arrows follow this exact order, so an account lets you stop mid-list and pick the thread back up anywhere. Short quizzes before and after each reading keep the progress honest: they say what to skim and what to reread, and nothing here expires or locks.
Each reading follows the same shape: a two-minute warm-up that shows what you already know, the page itself — explanations with working code, not slides — and a short check afterwards that proves the point landed. Finish one and the next is one click away; the blocks that lean toward portfolio work say so in their taglines, and their final readings end with something you can show rather than a score.
When the list is done, the professional level page shows where the road goes next, and the routes named below bundle this material into career-shaped arcs if you want the structure. Not sure this is your ground at all? The two-minute placement quiz points you at the block where the challenge starts for you — and if you were right about knowing this material, the quizzes along the way will be the fastest twenty minutes you spend on it.
Lessons (24)
- 01Tokenizers: BPE, WordPiece, SentencePiece
- 02Building a Tokenizer from Scratch
- 03Data Pipelines for Pre-Training
- 04Pre-Training a Mini GPT (124M Parameters)
- 05Scaling: Distributed Training, FSDP, DeepSpeed
- 06Instruction Tuning (SFT)
- 07RLHF: Reward Model + PPO
- 08DPO: Direct Preference Optimization
- 09Constitutional AI and Self-Improvement
- 10Evaluation: Benchmarks, Evals, LM Harness
- 11Quantization: Making Models Fit
- 12Inference Optimization
- 13Building a Complete LLM Pipeline
- 14Open Models: Architecture Walkthroughs
- 15Speculative Decoding and EAGLE-3
- 16Differential Attention (V2)
- 17Native Sparse Attention (DeepSeek NSA)
- 18Multi-Token Prediction (MTP)
- 19DualPipe Parallelism
- 20DeepSeek-V3 Architecture Walkthrough
- 21Jamba — Hybrid SSM-Transformer
- 22Async and Hogwild! Inference
- 25Speculative Decoding and EAGLE
- 34Gradient Checkpointing and Activation Recomputation