Chapter 05
Heterogeneous pools
Different hardware for prefill and decode: H100 and A100 pools, each phase on the part that suits it. Below, the mechanism as the simulator ran it, step by step; then what it measured, why it behaves that way, and the papers.
Check yourself ↓ three questions and what to remember, at the end
Loading the pool animation…
What the simulator recorded
The sweep does not vary pool hardware; these are the simulator's recorded runs (results.md section 10), in the matrix's colours against the all-H100 pools.
| Pools | TTFT p99 | TPOT p99 | Goodput (req/s) | J / token | tok/s per $1000 |
|---|---|---|---|---|---|
| H100 prefill + H100 decode (--device h100) | 353.6 ms | 8.8 ms | 7.69 | 0.326 | 2,850 |
| H100 prefill + A100 decode | 353.6 ms | 16.8 ms | 7.69 | 0.299 | 2,714 |
| A100 prefill + H100 decode | 47.1 s | 7.7 ms | 0.00 | 0.448 | 1,952 |
| A100 prefill + A100 decode | 47.1 s | 13.8 ms | 0.00 | 0.401 | 1,894 |
| 2x A100 prefill + H100 decode | 1,079.7 ms | 8.8 ms | 7.58 | 0.412 | 1,861 |
Put each phase on the device that suits it
Once prefill and decode run on separate pools, they need not run on the same hardware (Splitwise). Decode is memory-bound, so an older or cheaper part with good bandwidth may do; prefill is compute-bound, so it wants FLOPs. In the animation an A100 decode pool behind an H100 prefill pool raises TPOT p99 from 6.8 ms to 10.8 ms, still inside the TPOT SLO, while an A100 prefill pool cannot keep up with the prompts: TTFT p99 goes from 204.6 ms to 1,044 ms.
The remedy for a slow prefill device is more of it: two A100 prefill instances in front of the same H100 decode bring TTFT p99 back to 417.8 ms. The prefill pool has to match the prompt rate in FLOPs, whatever part supplies them.
Why each pool wants a different part
Prefill is bound by compute and decode by memory bandwidth, so a part that is short of FLOPs but not of bandwidth costs little in the decode pool and a great deal in the prefill pool. At the recorded load the A100 decode pool still meets every SLO, at 0.299 joules per token against 0.326 for all-H100 pools, while the single A100 prefill pool serves 0.00 requests per second inside the SLOs. Two A100 prefill instances recover the goodput (7.58 req/s) but buy it with more silicon and energy: per $1000 of illustrative silicon they serve 1,861 tokens per second, against 2,850 for the H100 pair. Whether a mixed fleet pays depends on what the older parts cost, which the simulator does not price.
Hardware choice inside one pool is chapter 12; where the FLOPs and bytes of each device come from, the roofline and other ways to build a matrix engine.
Check yourself
Commit to an answer before you reveal it: a wrong guess you can explain teaches more than a right one you skimmed. Every number in the answers comes from the same tested model as the chapter’s.
Reveal the answer
Answer: It rises but stays inside the TPOT SLO
Pick one, then reveal.
Reveal the answer
Answer: It cannot keep up with the prompts: TTFT p99 grows far beyond the SLO
Pick one, then reveal.
Reveal the answer
Answer: A second A100 prefill instance: the pool must match the prompt rate in FLOPs
Pick one, then reveal.
Papers and sources
- Patel, Choukse, Zhang et al., Splitwise: Efficient generative LLM inference using phase splitting (arXiv:2311.18677): different hardware for the prompt and token phases
- Zhong, Liu, Chen et al., DistServe: Disaggregating Prefill and Decoding for Goodput-optimized Large Language Model Serving (arXiv:2401.09670): goodput under TTFT and TPOT SLOs, the metric this site measures capacity by