Exact Makespan Bounds and the GPipe Homogeneity Bias for Heterogeneous LLM Inference Pipelines
Zhu Wenbo
Abstract
We give an exact critical-path characterization of the makespan of micro-batch pipelines serving LLMs on heterogeneous GPU clusters, quantifying how the classic homogeneous GPipe formula errs. In the pure-forward, communication-free, infinite-buffer setting, T(M) = (M-1)taumax + Sumj tauj, where tauj is stage j's per-micro-batch service time and M the micro-batch count (Theorem 1). Under asynchronous communication -- modern NCCL-based serving -- it extends to T(M) = Sumj tauj + Sumj dj + (M-1)taumax, with Sumj dj a purely additive constant (Theorem 2); under blocking communication, T(M) = (M-1)sigmamax + Sums sigmas with sigmas = taus + ds, so communication enters the steady-state slope iff some ds > taumax - taus (Theorem 3). These results quantify the GPipe overestimate, decompose the bias into a homogeneity term Sumj (taumax - tauj) and a communication-ignoring term Sumj dj, and imply that balancing per-stage compute dominates communication reduction for steady-state throughput. A real system with partial overlap is sandwiched between Theorems 2 and 3, with a closed-form bound on the overlap throughput gain. All claims are validated pointwise (error < 10-9) on eleven configurations and a 1.6x105-point fuzz, including a mixed RTX 5090/3090/GTX 1070 partition. We situate the results in flow-shop scheduling and list open extensions: bandwidth-limited communication, bounded buffers, prefill-decode interleaving.
Create a lesson
Related papers
Reducing Batch Makespan for LLM Agent Workloads through Inference-Environment Coordination
Shared title terminology · Wei Feng, Meiling Chen, Boxiao Chen et al.
SubGPU Pipelining: Intra-GPU Fine-Grained Spatial Parallelism for LLM Inference
Shared title terminology · Muralidhar Andoorveedu, Marius Juston, Tingkai Liu et al.
PDScope: Breaking the Prefill-Decode Seesaw for Memory-Bound MoE Inference
Shared title terminology · Enda Yu, Dezun Dong, Zhaoning Zhang et al.
Koi: Evidence-Guided, Self-Calibrating Planning for Multi-Cloud, Heterogeneous LLM Inference Fleets
Shared title terminology · Mankeerat Sidhu, Gangmuk Lim, Hetarth Chopra et al.
ETH: Data-Balanced Heterogeneous Pipeline Parallelism for Training Large Models
Shared title terminology · Mianjie Yu, Zhongmin Zhao, Zizhao Mo et al.
Revisiting Cauchy-Schwarz Norm Bounds for SDC Detection in LLM Inference
Shared title terminology · Anton Altenbernd, Dylan Everingham, Philipp Wiesner et al.