Back to News
AI Infrastructure

AI Responses Have Two Latency Targets. Do They Need Two GPU Pools?

LLM Rumors··7 min read·...
AI InfrastructureLLM ServingInferencePrefillDecodingKV CacheLatencyGoodput
Engraving of a press and typewriter connected across a workbench by a crimson strip of punched tape.
AI-generated editorial illustration. A press represents prompt processing, the crimson tape represents the transfer of cached state, and a typewriter represents token generation. The sequence is schematic.

TL;DR: DistServe, first posted on January 18, 2024, sized prefill and decode GPU pools against a joint 90% latency attainment target.[1] In the worked example below, two systems each complete 100 requests per second, but the one with more on-time starts delivers only 84 requests per second that meet both latency limits, versus 90 for the alternative. Splitting the work makes sense when the reduction in interference is worth the KV-cache transfer and the cost of maintaining two pools.

A customer asks a chatbot to read a long report. On a shared inference worker, that new prompt can interrupt the token stream of someone already reading an answer. Assign the prompt and the stream to different workers and the interruption can disappear. The service then has to carry the first worker's attention state to the second one. That trade is the point of splitting prefill and decode.[1][2]

This analysis revisits research from 2023 through 2025. The earlier KV-cache guide asks whether the live state fits and how many sessions it leaves room for. Here the question is where that state has to go, how long it takes to get there, and what the user gets for the extra infrastructure.

NOTE

Why This Matters Now

Sending longer prompts to an assistant can change the service experienced by users who send short ones. Compare deployment designs against the same mix of requests and the same latency targets before buying additional GPUs.

The Queue: One Scheduler, Two Clocks

Prefill processes the input prompt and builds the key-value cache, the attention state required for subsequent generation. A conventional implementation computes across many input positions together and can produce the first output token on the prefill worker. Decode then generates the remaining tokens in sequence. Batching lets one decode iteration advance many requests, with each active request consuming state that grows as output accumulates. Splitwise characterized the two phases on NVIDIA A100 and H100 machines and explored provisioning machines separately for them.[2]

Time to first token (TTFT) is the interval from the chosen request start to the first output token. At the service boundary it includes waiting in queues. Time per output token (TPOT) is a per-request average across the intervals after the first token, typically calculated by dividing the time from first to last token by the number of remaining tokens. Report the tail of individual token gaps too. A stream with one long pause can still have an acceptable average.[1][6]

On shared workers, a long prefill scheduled between decode iterations can lengthen those gaps. Separate workers remove that particular contention, and their pool sizes can track different demand. Reports that are long to read and short to summarize load the prompt pool. A conversational service that generates lengthy responses can load the decode pool. The right ratio changes with the mix.[1][2]

The Metric: Count Requests That Meet Both Targets

Give the product two explicit limits. For example, measure a text service against TTFT of at most 500 ms and average TPOT of at most 40 ms for multi-token responses. These are illustrative targets. When the product also promises no distracting pauses, check individual token gaps separately. Define the clock at the same boundary in every test. Keep original requests in the denominator even when they time out or are rejected, and record retry attempts separately.

At a fixed offered load, the useful completion rate counts requests that satisfy both targets per second. DistServe calls the maximum offered load that maintains a specified attainment fraction, normalized by provisioned GPUs, per-GPU goodput. The two measures answer different questions. The observed passing rate tells you what you delivered at one load. A load sweep tells you how much traffic the service can admit under its SLO.[1]

Worked example

An earlier start can still mean fewer requests meet both targets

Two hypothetical schedules, each offered and completing 100 multi-token requests per second. Limits are TTFT ≤ 500 ms and average TPOT ≤ 40 ms.

In schedule A, 96 requests per second meet the start deadline, 93 meet the pace limit, and one misses both. That is 100 − (4 + 7 − 1) = 90 joint passes. In schedule B, the corresponding counts are 99, 84, and one, giving 100 − (1 + 16 − 1) = 84. Multiplying the two passing fractions would assume independent failures. The service can measure the intersection directly for every request.

The Handoff: Saved Work Becomes Network Traffic

Use the earlier guide's hypothetical model at a 16,384-token prompt. Assume 32 full-attention layers, eight KV heads, a head dimension of 128, and two bytes per element. The cache carries two tensors, keys and values, so a full uncompressed copy is 2 GiB. At a sustained payload rate of 50 decimal GB/s, copying 2,147,483,648 bytes takes 42.95 ms, rounded to two decimals. That is the serialization time under the stated assumptions. Network queueing, setup, packing and unpacking can add time, while cache reuse and overlap can reduce the portion visible to the user.[2][8]

Where that time appears matters. Splitwise generates the first token on the prompt worker. It can begin transferring state by layer while prompt processing continues, and the remaining handoff can delay the next token if it lands on the critical path. CacheGen examines a related transfer problem in context loading. It encodes KV state and changes the compression level in response to available bandwidth. An operator evaluating compression needs to account for decoding cost and output quality as well as bytes saved.[2][5]

The Alternatives: Chunking, Sharing and Splitting

Sarathi-Serve, first posted March 4, 2024, keeps the phases on shared workers and breaks prefill into smaller chunks that can be scheduled alongside generation. This gives the scheduler a way to limit interference without introducing a mandatory cross-worker handoff. A batch that reserves too much work for decode can still leave fresh prompts waiting. The chunk size and the amount of work allowed in each iteration are operational choices.[3]

Mooncake places a shared cache and its scheduler at the center of serving for Kimi, using resources including CPU memory, SSDs and the network. A reusable prefix can change which worker is best placed to serve a request, and overload can make admission policy part of the decision. The August 4, 2025 TaiChi preprint explores a hybrid that changes the mix of prefill-heavy and decode-heavy workers as the objectives change. The vLLM documentation describes split prefill as experimental and emphasizes tuning first-token latency and the tail of token gaps separately. These approaches address different operating conditions.[4][6][7]

The Decision: Pay for Requests That Stay Within Budget

Start with measurements from the current service. Replay the same input and output length distributions, arrival bursts, and hot and cold cache states against shared batching, chunked prefill, and split pools. Fix the model, precision, hardware budget, and decoding settings. Specify any speculative decoding and its acceptance rate. Report offered and admitted load, end-to-end latency, TTFT, TPOT, token-gap tails, transfer volume and joint attainment with the same benchmark harness. Keep spending per passing request beside the capacity figures.

Choose the design that meets the targets at the lowest total cost for the tested workload. If splitting improves predictability, charge the second pool, network capacity and idle headroom to that improvement. If chunking meets the targets using the equipment you already own, the scheduler has solved the immediate problem.

WARNING

Watch the handoff when traffic spikes

The transfer result on an idle link tells you little about the delay when many long prompts finish together. Measure the queue at the transfer boundary and count missed deadlines, failed requests and rejections against the traffic the service was actually offered.

The economic test is how many users receive a timely, steady response for each dollar spent. A split is worthwhile when it raises that number under the traffic the product attracts.

Sources & References

Key sources and references used in this article

#SourceOutletDateKey Takeaway
1
Zhong et al., OSDI
2024-01-18 (first preprint)Separate pools and bandwidth-aware placement are evaluated against joint TTFT and TPOT goals.
2
Patel et al., ISCA
2024-06 (conference)Phase-specific provisioning and layer-wise transfer illustrate what a split adds to the request path.
3
Agrawal et al., OSDI
2024-03-04 (first preprint)Chunked prefill changes scheduling on shared workers.
4
Qin et al., FAST
2025-02 (conference)Kimi's serving system makes shared KV storage part of scheduling.
5
Liu et al., SIGCOMM
2023-10-11 (first preprint)Adaptive compression trades processing work and representation fidelity for fewer bytes in flight.
6
vLLM documentation
Accessed 2026-11-25Independent tuning and tail latency motivate practical split-prefill support.
7
Wang et al., arXiv
2025-08-04The TaiChi preprint explores adapting the worker mix to latency objectives.
8
Kwon et al., SOSP
2023-09-12 (first preprint)KV allocation and sharing govern how much state concurrent requests hold.
8 sourcesOpen a linked source to visit the original

Last updated: November 25, 2026