异构LLM推理流水线的精确完工时间边界与GPipe同质性偏差
Exact Makespan Bounds and the GPipe Homogeneity Bias for Heterogeneous LLM Inference Pipelines
AI总结:
该研究针对异构GPU集群的LLM微批推理流水线,精确推导了不同通信模式下的完工时间公式,量化了GPipe的同质性偏差,验证了结论并提出了扩展方向。
摘要:
我们对异构GPU集群上服务LLM的微批流水线的完工时间进行了精确的关键路径表征,量化了经典同质性GPipe公式的误差。在纯前向、无通信、无限缓冲区的设定下,T(M) = (M-1)τ_max + Σ_j τ_j,其中τ_j是第j阶段每微批的服务时间,M是微批数量(定理1)。在异步通信(现代基于NCCL的服务)下,该式扩展为T(M) = Σ_j τ_j + Σ_j d_j + (M-1)τ_max,其中Σ_j d_j是纯加性常数(定理2);在阻塞通信下,T(M) = (M-1)σ_max + Σ_s σ_s,其中σ_s = τ_s + d_s,因此仅当某些d_s > τ_max - τ_s时通信才会进入稳态斜率(定理3)。这些结果量化了GPipe的高估,将偏差分解为同质性项Σ_j (τ_max - τ_j)和忽略通信的项Σ_j d_j,并表明平衡各阶段计算对稳态吞吐量的影响大于减少通信。具有部分重叠的真实系统介于定理2和3之间,对重叠吞吐量增益有闭式边界。所有结论在11种配置及1.6×10^5点模糊测试(包括混合RTX 5090/3090/GTX 1070分区)上逐点验证(误差<10^-9)。我们将结果置于流水车间调度框架中,并列出了开放扩展方向:带宽受限通信、有界缓冲区、预填-解码交错。
英文摘要:
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)tau_max + Sum_j tau_j, where tau_j 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) = Sum_j tau_j + Sum_j d_j + (M-1)tau_max, with Sum_j d_j a purely additive constant (Theorem 2); under blocking communication, T(M) = (M-1)sigma_max + Sum_s sigma_s with sigma_s = tau_s + d_s, so communication enters the steady-state slope iff some d_s > tau_max - tau_s (Theorem 3). These results quantify the GPipe overestimate, decompose the bias into a homogeneity term Sum_j (tau_max - tau_j) and a communication-ignoring term Sum_j d_j, 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.6x10^5-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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。