← All series11 parts · about 102 min · Free
How LLM Inference Works
Follow one request through a model: tokens, the KV cache, sampling and speculative decoding.
0 of 11 read
Start with Part 1 →- 1Part 1 · 46 min readGlossary: How LLM Inference Works, Every Term Explained From Zero
- 2Part 2 · 3 min readWhat is a token, and why it decides your AI bill
- 3Part 3 · 2 min readWhy a Long AI Chat Forgets How It Started (Context Window Explained)
- 4Part 4 · 11 min readWhy AI Models Run Out of GPU Memory as Chats Get Longer (KV Cache Explained)
- 5Part 5 · 3 min readHow an Old Computer Memory Trick Lets One GPU Serve More AI Users (PagedAttention)
- 6Part 6 · 10 min readHow a Small Model Helps a Big One Write Faster Without Changing the Answer (Speculative Decoding)
- 7Part 7 · 3 min readWhy Branching Guesses Made AI Text Less Fast Than Expected, and a Training-Free Fix (DForkTree)
- 8Part 8 · 3 min readGuessing Whole Phrases Instead of Word Pieces Makes AI Text Up to 2.4x Faster (Phrase-Level Speculative Decoding)
- 9Part 9 · 3 min readWhat is temperature, and why the same AI prompt gives different answers
- 10Part 10 · 8 min readWhy an AI Can Give Different Answers Even at Its Most Predictable Setting (Temperature 0)
- 11Part 11 · 10 min readTwo Ways an AI Can Write: Word by Word, or Sketch Then Sharpen (Autoregressive vs Diffusion Models)