Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Output length times per token decode time, where each step is bottlenecked by streaming the entire KV cache from HBM. Network, tokenization, and embedding lookups are negligible.
Imagine the model writing a long letter, one word at a time. Before each word, it has to read back every word it has already written from a giant wall of sticky notes. The reading speed is set by how fast you can pull notes off the wall, not by how fast you can think of the next word. Long letters are slow because the wall keeps growing; the cost of writing each new word is mostly the reading. The other things people worry about (sending the request, splitting it into pieces) take milliseconds and do not move the clock much.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 min: TTFT vs inter-token + memory-bandwidth-bound decode math + GQA, MQA, MLA cache reductions + fp8 KV + speculative decoding + 2026 production stacks.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Blaming network round trip or tokenization for LLM latency. Those add a few milliseconds. The dominant cost is per token decode, which is bound by memory bandwidth on the KV cache.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.