What problem do DistServe and Splitwise solve by separating prefill and decode onto different GPUs?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Describe the problem with co-locating prefill and decode on the same GPU pool, and how disaggregated inference (DistServe, Splitwise) fixes it. What is the cost?
Disaggregation puts prefill and decode on separate GPU pools so a long compute-bound prefill can no longer stall every concurrent user's decode, at the cost of one KV-transfer hop per request.
Picture a restaurant where one chef both cooks big banquet orders and plates the steady stream of small dishes. A giant banquet order ties up the kitchen, and every small dish waits behind it. Customers expecting quick service get annoyed. The fix: hire two teams. One team only handles the big bursty prep work, the other only plates the steady stream of small dishes. Now a huge order cannot freeze the quick service. The only new chore is carrying the prepped ingredients from the first team to the second. As long as that handoff is fast, every customer gets smooth, predictable service. That handoff is exactly the KV cache moving from the prefill machines to the decode machines.
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: prefill vs decode bottlenecks + the interference pathology on a shared pool + the two-pool fix + KV transfer over NVLink and RDMA + when it pays off versus the hop cost.
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.
Claiming disaggregation is always faster. It only pays off under high traffic with mixed prompt lengths and tight latency targets; at low load the extra KV hop just adds latency.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.