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)

  1. 01Tokenizers: BPE, WordPiece, SentencePiece
  2. 02Building a Tokenizer from Scratch
  3. 03Data Pipelines for Pre-Training
  4. 04Pre-Training a Mini GPT (124M Parameters)
  5. 05Scaling: Distributed Training, FSDP, DeepSpeed
  6. 06Instruction Tuning (SFT)
  7. 07RLHF: Reward Model + PPO
  8. 08DPO: Direct Preference Optimization
  9. 09Constitutional AI and Self-Improvement
  10. 10Evaluation: Benchmarks, Evals, LM Harness
  11. 11Quantization: Making Models Fit
  12. 12Inference Optimization
  13. 13Building a Complete LLM Pipeline
  14. 14Open Models: Architecture Walkthroughs
  15. 15Speculative Decoding and EAGLE-3
  16. 16Differential Attention (V2)
  17. 17Native Sparse Attention (DeepSeek NSA)
  18. 18Multi-Token Prediction (MTP)
  19. 19DualPipe Parallelism
  20. 20DeepSeek-V3 Architecture Walkthrough
  21. 21Jamba — Hybrid SSM-Transformer
  22. 22Async and Hogwild! Inference
  23. 25Speculative Decoding and EAGLE
  24. 34Gradient Checkpointing and Activation Recomputation

Learning paths covering this phase