PipeSwift: Revisiting Pipeline Parallelism for Large-Scale Completion-Oriented Agentic LLM Serving
Shiju Wang, Fei Ren, Fangcheng Fu, Zhanhong Tan, Kairui Li, Jingwei Cai, Kaisheng Ma
Abstract
LLM agents execute long-horizon workflows where each model response determines the progress of subsequent tool interactions and environment transitions. Unlike chatbot serving, where TTFT and TPOT SLO constraints are critical, agentic workloads are completion-oriented and increasingly governed by job completion time (JCT). This shift challenges existing LLM serving designs optimized around token SLOs. Through a systematic exploration of scheduling and parallelism, we uncover a previously overlooked principle for agent serving: JCT is governed by the balance between prefill and decode efficiency. A prefill-prioritized scheduling policy achieves the best TTFT and the highest decode throughput, yet fails to attain the lowest JCT. This principle further reshapes the parallelism landscape: we show that pipeline parallelism (PP), long overlooked because it offers little decode-latency advantage, can reduce JCT by providing a more favorable balance between prefill and decode efficiency. Based on these insights, we build PipeSwift, an optimized open-source pipeline-parallel runtime integrated with a tailored micro-batch partitioning strategy co-designed with schedule considering the above trade-off, and pipeline-integrated multi-token prediction. Evaluated on real coding and web-search agent trajectories with two 360B+ MoE models on 64 H800 GPUs, PipeSwift reduces overall JCT by up to 1.45 over SGLang wide-EP, 2.33 over vLLM PP2, and 1.54 over today's state-of-the-art open-source PD-disaggregated deployment. PipeSwift is open-sourced at https://github.com/wsjdsg/PipeSwift.
Create a lesson
Related papers
ExaServe: Large-Scale LLM Serving on Exascale HPC Systems
Shared title terminologycs.DCWenyi Wang, Shu Shi, Yadu Babuji et al.
UltraSim: Simulating Large-Scale AI Clusters at Packet Level on GPUs
Shared title terminologycs.DCMan-Kit Sit, Matej Sandor, Yi-Chieh Wang et al.
Clock-Variable Discrete Simulated Bifurcation: A GPU Algorithm for Large-Scale Discrete-Phase Optimization
Shared title terminologycs.DCYaocheng Chen, Jiapei Zhuang
Mind the Gap: Minimizing Bubbles in Pipeline-Parallel LLM Serving
Shared title terminologycs.DCYouhe Jiang, Yi Xu, Haoran Wu et al.
PipeAxes: Decoupling Compute and Communication Granularities for Pipeline-Parallel LLM Serving
Shared title terminologycs.DCXiaoqiang Guo, Yifan Lin, Yang Liu et al.
PackServe: SLO-Aware Request Scheduling for Agentic LLM Serving at Scale
Shared title terminologycs.DCZhiyuan Tan, Dejiang Zhu, Jingzhe Jiang et al.