- Learn LLM Serving
- Setting Up the Environment
- 1. Week 1: From Matmul to Text
- 1.1. Attention and Multi-Head Attention
- 1.2. Positional Encodings and RoPE
- 1.3. Grouped-Query and Multi-Query Attention
- 1.4. RMSNorm and MLP
- 1.5. The Qwen3 Model
- 1.6. Generating the Response
- 1.7. Sampling and Preparing for Week 2
- 2. 🚧 Week 2: A Faster Single Request
- 2.1. 🚧 Day 1: Cache and Measure
- 2.2. 🚧 Find the Next Bottleneck
- 2.3. 🚧 Day 2: Keep W4 Packed — Decode Waits on Weights
- 2.4. 🚧 Day 3: SIMD Matrix Prefill — Stop Re-reading Weights per Row
- 2.5. 🚧 Day 4: Fused Model Primitives — Fewer Small Passes
- 2.6. 🚧 Day 5: Tiled Dense Prefill Attention — No Full Score Matrix
- 2.7. Historical Week 2 lesson addresses
- 2.7.1. Earlier quantization lesson
- 2.7.2. Earlier SIMD-prefill lesson
- 2.7.3. Earlier bounded-decode lab
- 2.7.4. Earlier Split-K lab
- 2.7.5. Earlier optional macOS capture lab
- 3. 🚧 Week 3: Build a Mini vLLM
- 3.1. 🚧 Continuous Batching
- 3.2. 🚧 Chunked Prefill
- 3.3. 🚧 Paged KV Cache
- 3.4. 🚧 Direct Paged Attention
- 3.5. 🚧 Paged FlashAttention
- 3.6. 🚧 Day 6 (Optional): Mixture of Experts
- 3.7. 🚧 Day 7 (Optional): Speculative Decoding
- 4. 🚧 Week 4: Build a Coding Agent
- 4.1. 🚧 Day 1: Validated Agent Loop
- 4.2. 🚧 Day 2: Inspect a Workspace
- 4.3. 🚧 Day 3: Edit, Validate, and Record
- 4.4. 🚧 Day 4: Checkpoint and Resume
- 4.5. 🚧 Day 5: Compact Completed Work
- 4.6. 🚧 Day 6: Inspect and Steer a Paused Agent
- 4.7. 🚧 Day 7: Evaluate Observable Outcomes
- 4.8. 🚧 Day 8: Fork, Steer, and Select
- 4.9. 🚧 Day 9: Bound Tool Evidence
- 5. 🚧 Appendix: Performance Evidence Ledger
- 6. Sponsored by Raft.build
- Glossary Index