An engineer says 'FP8 KV cache just halves memory, no other benefit.' Which response is most correct?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
FP8 KV cache halves memory AND halves the per-step KV read, so decode latency drops and batch size roughly doubles. It is not a memory-only win.
Imagine a librarian who must reread an entire shelf of notes before writing each new line of a story. The notes are the KV cache, and rereading them is what slows each line down. Now suppose you rewrite every note in half-size shorthand. The shelf takes half the space, which is the obvious win. But there is a second, bigger win: rereading the whole shelf now takes half the time, because there is half as much ink to scan. So every new line comes out faster too, not just stored smaller. And because each story now uses half a shelf, the same room fits twice as many stories at once. People who only mention the space savings miss the speed and capacity gains hiding in the same change.
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: why decode is bandwidth-bound + KV as dominant byte source + dtype halving cuts read and footprint + batch and throughput compounding + KV vs weight quant + FP8 vs INT4 accuracy.
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.
Treating FP8 KV as a memory-only optimization. Decode is bandwidth-bound, so halving the KV dtype also halves the per-step read and speeds up decode latency.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.