Sarathi-Serve raises LLM serving capacity under strict tail-latency targets by up to 2.6x on Mistral-7B (single A100), 3.7x on Yi-34B (two A100s), and 5.6x on pipeline-parallel Falcon-180B (eight A100s) without disaggregating prefill and decode onto separate machines. Published by Amey Agrawal, Nitin Kedia, Ashish Panwar, Jayashree Mohan, Nipun Kwatra, Bhargav S. Gulavani, Alexey Tumanov, and Ramachandran Ramjee (Microsoft Research India and Georgia Tech), the scheduler eliminates generation stalls by slicing long prompts into bounded chunks and packing them into ongoing decode batches.

Earlier inference schedulers forced an ugly compromise: request-level engines like FasterTransformer drain all active decodes before admitting new prompts (low tail latency, terrible batch size), while prefill-prioritizing engines like Orca and vLLM run full prompts eagerly, pausing active streams for seconds at a time whenever a long prompt arrives.

  • 2.6x to 4.3x single-node and pipeline gains vs. vLLM: Under strict P99 time-between-tokens (TBT) SLOs (0.1s Mistral-7B, 0.2s Yi-34B, 1.0s LLaMA2-70B and Falcon-180B), Sarathi-Serve sustains 2.6x capacity on Mistral-7B, 3.7x on Yi-34B, 4.3x on LLaMA2-70B, and 4.3x / 3.6x on Falcon-180B vs. vLLM TP8 / TP4-PP2 (5.6x end-to-end gain on Falcon-180B).
  • Why decodes absorb free prefill work: Linear projections account for over 80% of runtime even at long contexts; on Mistral-7B, reading weights for 1 decode token takes nearly the same linear-layer time as computing 128 prefill tokens.
  • 28.3x latency spike avoided: Coalescing unchunked prefills with decodes (Orca-style hybrid batching) inflates TBT by up to 28.3x over decode-only steps; chunking bounds every iteration under a token budget.
  • Pipeline bubbles cut down: On Falcon-180B, a single 4k-token prefill takes ~1,150 ms vs. ~200 ms for a 32-request decode batch, leaving ~950 ms pipeline bubbles that uniform chunked batches eliminate.
Stall-free batch packing inside a fixed token budget (Algorithm 3)
1. Pack ongoing decodes first
1 token per active request; never paused.

Every running decode keeps advancing in every iteration, bounding P99 TBT below the SLO target.

2. Continue active chunked prefill
Slice remaining budget up to tau.

Any prompt mid-prefill receives up to tau - nt tokens (for example tau = 512 strict or 2048 relaxed), keeping iteration compute flat.

3. Admit new prompts if slack remains
Fills memory-bound compute slack.

Piggybacks new prompt chunks into underutilized decode steps, raising arithmetic intensity into the balanced sweet spot (~500 to 600+ tokens on TP4 LLaMA2-70B).

Source: Agrawal et al. (2024), Section 4 and Algorithm 3.

How It Works

Sarathi-Serve builds on vLLM using FlashAttention-2 paged chunked-prefill kernels and pairs two mechanisms: chunked-prefills and stall-free batching.

Because decode iterations touch only one token per request, GPU linear layers spend nearly all their time loading weights from HBM and sit far below the hardware compute-to-bandwidth ridge point. On LLaMA2-70B with 4-way tensor parallelism, iteration runtime stays nearly flat between 128 and 500 to 600 tokens. That slack lets the scheduler piggyback prefill work almost for free, provided total tokens per batch stay capped.

At every scheduling step, Sarathi-Serve enforces a fixed token budget (512 tokens under strict SLOs, 2,048 under relaxed SLOs, calibrated offline with the Vidur profiler): first admit all active decode tokens, next schedule the next chunk of any partially prefilled prompt, and finally admit chunks from queued requests until the budget fills. Because every micro-batch carries roughly equal compute, cross-node pipeline-parallel (TP4-PP2 over 100 Gbps Ethernet) stages finish in lockstep, avoiding both cross-node tensor-parallel all-reduce slowdowns (~2x higher median TBT for TP8 on Falcon-180B) and variable-length pipeline bubbles.

Picking the token budget also has to respect GPU tile-quantization: a chunk of 257 tokens can increase prefill time by 32% compared to 256 tokens when matrix dimensions spill over tensor-core tile boundaries.

Key Findings

Evaluated across openchat_sharegpt4 (median 1,730 prompt tokens, 415 output tokens) and arxiv_summarization (median 7,059 prompt tokens, 208 output tokens), Sarathi-Serve outperforms both Orca and vLLM in every configuration. Simply tuning vLLM’s max batch size (32, 64, or 128) fails to lift strict-SLO capacity at all because eager prefills trigger tail stalls regardless of batch limit.

Ablation on Yi-34B (2x A100, token budget 1,024, 128 requests): both techniques are required
SchedulerShareGPT4 P50 TTFTShareGPT4 P99 TBTarXiv P50 TTFTarXiv P99 TBT
Hybrid-batching-only0.53s0.68s3.78s1.38s
Chunked-prefills-only1.04s0.17s5.38s0.20s
Sarathi-Serve (combined)0.76s0.14s3.90s0.17s

Lower latency is better. Source: Agrawal et al. (2024), Table 4.

The Yi-34B ablation proves neither trick suffices alone: hybrid batching without chunking blows up P99 TBT (0.68s and 1.38s), while chunking without decode piggybacking inflates P50 TTFT (1.04s and 5.38s). Combining both yields the lowest P99 TBT (0.14s and 0.17s) while keeping TTFT competitive. Meanwhile, chunked-prefill overhead on Yi-34B stays at most ~25% at a 512-token chunk size and becomes negligible at 2,048 tokens.

Caveats and Builder Takeaway

  • Extra KV reads and slight TTFT tax: Splitting a prompt into N chunks forces attention layers to reload prior chunks’ KV cache repeatedly (O(N^2) reads vs. O(N) unchunked), adding up to ~25% prefill overhead at small budgets (512) and stretching TTFT relative to unchunked prefill pools in DistServe or Splitwise.
  • Static token budget: Production traffic shifts dynamically, yet Sarathi-Serve fixes one token budget per deployment (512, 1,536, or 2,048) rather than adapting it online; benchmarks also used Poisson arrivals capped at 8,192 and 16,384 tokens.
  • No direct disaggregation benchmark: The authors note disaggregated serving avoids chunked prefill slowdown at the cost of KV-cache network transfers and underutilized prefill VRAM, but leave a quantitative comparison to future work.

For single-replica deployments or multi-node clusters without high-bandwidth RDMA interconnects, Sarathi-Serve’s chunked-prefill scheduler (now standard across modern vLLM and SGLang deployments) is the simplest way to keep token streaming smooth without sacrificing batch utilization.