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.
Detailed answer & concept explanation~6 min readEverything 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. 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.
- vLLM (UC Berkeley) hits 15 to 30 ms per token on Llama 4 70B with GQA and paged attention on H100, the production reference.
- SGLang ships continuous batching plus prefix caching for high throughput serving with sub second TTFT on long prompts.
- TensorRT-LLM on NVIDIA B200 takes per token decode below 10 ms for 70B-class models using fp8 KV cache and speculative decoding.
- Anthropic's Claude serving stack achieves first-token latency under 500 ms for typical chat workloads via aggressive cache aware routing.
- Together.ai exposes per token decode latency as a first class SLO in their serving dashboard for fine-tuned Llama 4 deployments.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow does prefill latency differ from decode latency?
QWhat's the practical effect of GQA on per token latency?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
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.
Same topic, related formats. Practice these next.