When does splitting prefill and decode onto separate replica pools actually pay off in production?
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Identify the three conditions under which disaggregated prefill and decode (DistServe-style architectures) deliver a real win over a co-located continuous-batching deployment. For each condition, explain what fails when it is absent.
Disaggregating prefill and decode pays off only when prompts are long, traffic is high enough to saturate both pools, and the KV-transfer link between them is fast. Miss any one and co-located continuous batching wins.
Imagine a kitchen with one chef who chops vegetables and cooks dishes on the same stove. When orders pour in for elaborate dishes that need lots of prep, the chopping starts blocking the cooking and meals come out late. So you split the kitchen into a prep station and a cooking station with a conveyor belt between them. That helps only if three things are true: the prep work is genuinely heavy, there are enough orders to keep both stations busy, and the conveyor moves prepped ingredients fast enough that the cook is not standing around waiting. If any one of those is off, the original single-station setup with smart scheduling beats the split kitchen on cost and capacity. Disaggregating prefill and decode is the same tradeoff at the GPU level: useful at scale, wasteful below it.
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.
5 min: phase imbalance + three gating conditions + KV transfer cost + chunked prefill alternative + when disaggregation actually wins.
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 disaggregation as a default architecture for serving large models. It is a scale-driven optimization with three preconditions; below those thresholds a co-located continuous-batching stack with chunked prefill is simpler and cheaper.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.