How LLM inference actually works,
one concept at a time.
Seven topics that explain why modern models run fast — from the attention kernel itself, through memory and scheduling, to splitting a model across GPUs. Each topic becomes its own interactive page: diagrams you can play with, step-by-step flows, quizzes, and a downloadable standalone file when you approve it.
The 7 topics
We go in order, one at a time. A topic only starts when you say so — and it only counts as completed after you review its page and say “Okay, this topic is clear. Save/download it.”
How these topics connect
None of these live alone. Tap a node to see what it depends on and what it unlocks — this map grows as you complete topics.
The inference stack
Attention is the compute core. The KV cache is its memory. PagedAttention manages that memory. Continuous batching schedules around it. Tensor parallelism scales it. Quantization and speculative decoding speed up everything around it.
How we learn each topic
The same loop every time, so you always know where we are.
You start it
Say “Start Topic 1” (or “Implement Flash Attention”). Nothing starts automatically.
I build the page
A dedicated interactive page: fundamentals first, then internals, diagrams, flows, comparisons, trade-offs and a quiz.
You poke at it
Ask questions, request clarifications. I explain and update the same page — we don't move on while it's unclear.
You approve & save
On your word, the page is saved as a standalone file here, you get the direct download link, and only then we prepare the next topic.