⚡
Learn — LLM Inference InternalsTopu's personal learning library
Interactive · Visual-first · One topic at a time

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.

Your progress0 of 7 topics completed
Pending — not started yet In progress — page built, awaiting your approval Completed — approved & saved

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.

Tap a topic above to see its connections.

How we learn each topic

The same loop every time, so you always know where we are.

1

You start it

Say “Start Topic 1” (or “Implement Flash Attention”). Nothing starts automatically.

2

I build the page

A dedicated interactive page: fundamentals first, then internals, diagrams, flows, comparisons, trade-offs and a quiz.

3

You poke at it

Ask questions, request clarifications. I explain and update the same page — we don't move on while it's unclear.

4

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.