Hardware selection for inference is usually done once, for a mixed workload, and then inherited by every workload after. Disaggregation makes the choice explicit: prefill and decode have different bottlenecks, and the right accelerator for each is not the same. Getting this right is most of the value of a heterogeneous fleet.
Prefill: a compute problem
Prefill runs the full prompt through the model in a single forward pass. The work scales with prompt tokens and is dominated by large matrix multiplications. The properties that matter:
- Raw compute throughput at the model’s precision.
- Memory capacity for weights, but not for long-lived caches.
- Fast interconnect to move KV output to decode workers.
- Large batch tolerance to amortize weight reads across many prompts.
A prefill pool can run at high batch and high utilization. Its efficiency metric is prompt tokens per second per dollar.
Decode: a memory problem
Decode generates one token per step, reading the KV cache and weights repeatedly. Compute is underused; memory bandwidth and capacity bind. The properties that matter:
- Memory bandwidth per generated token.
- Memory capacity for KV caches at your batch and context lengths.
- Low-latency interconnect between decode workers for tensor parallelism at long context.
A decode pool runs at modest batch for interactive latency. Its efficiency metric is tokens per second per dollar at your p99 latency target.
| Phase | Bottleneck | Efficiency metric |
|---|---|---|
| Prefill | Compute | Prompt tokens / s / $ |
| Decode | Memory bandwidth | Output tokens / s / $ at p99 |
Key takeaway Size the pools independently against their own metrics. A single blended benchmark hides exactly the imbalance you are trying to fix.
Classic sizing mistakes
- Sizing decode for average batch. Interactive latency requires headroom; average batch produces a p99 disaster.
- Sizing prefill for peak prompt length. A small fraction of very long prompts can dominate capacity. Cap or queue them explicitly.
- Ignoring cache residency. Decode capacity is a function of context length × concurrency. Doubling context halves the concurrency a pool can hold.
- Undersizing transfer. A fast prefill pool feeding a slow link is just a queue with extra steps.
- Forgetting failure domains. Two pools mean two sets of failure modes; the router must handle partial loss.
How to validate a configuration
Run three traces against the candidate fleet: short interactive prompts at your arrival rate, long-context requests at p95 length, and a mixed trace with both. Measure TTFT, inter-token latency and cost per accepted token for each. The mixed trace is the one that predicts production; the others explain it.
The evaluation discipline is the same as for any serving change — see benchmarking P/D disaggregation for the full method.
The operational shape
Once phases are separate, the fleet becomes a small portfolio: a prefill pool, a decode pool, a router, and a transfer fabric. Each scales on its own signal — prefill on prompt-token backlog, decode on cache occupancy and inter-token latency. That is more moving parts than a single pool, and it is the price of matching hardware to work.
FAQ
Can one GPU model serve both pools?
Yes. Disaggregation still helps because batching and scheduling can be phase-specific. Heterogeneity adds the hardware-fit gain on top.
Is decode ever compute-bound?
At very large batch sizes, yes. That is why decode pools are sized for latency headroom rather than maximum throughput.
Where does quantization fit?
Both phases, with different tolerances. Cache quantization affects decode capacity and long-context recall; see the quantization guide.