arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.06608cs.DCcs.LG
收藏

Nexus:LLM 服务中预填充与解码的GPU内主动式分解

Nexus:Proactive Intra-GPU Disaggregation of Prefill and Decode in LLM Serving

Independent Researcher(独立研究者);Nanyang Technological University(南洋理工大学);Carnegie Mellon University(卡内基梅隆大学)

Xiaoxiang Shi, Colin Cai, Junjia Du, Zhihao Jia

AI总结:

针对LLM服务中预填充与解码的冲突资源需求,提出GPU内主动式分解系统Nexus,动态分配资源并考虑带宽争用,显著提升吞吐量并降低延迟。

摘要:

单片式服务通过分块预填充将预填充和解码批处理在一起,提高了GPU利用率,但存在细粒度的阶段间干扰。引擎级预填充-解码(PD)分解避免了干扰,但引入了更高的硬件和协调开销。先前的GPU内分解方法在单个GPU内复用预填充和解码,使用基于SLO的调优,该调优由离线剖析的启发式方法或反应式反馈循环指导。然而,这些方法对性能问题做出反应而非预测,限制了在动态工作负载下的适应性。我们提出疑问:能否实现主动式GPU内分解,以有效适应动态工作负载?关键挑战在于管理预填充和解码在变化条件下对资源的冲突需求。我们首先表明GPU资源呈现收益递减——超过饱和点后,更多分配带来的延迟收益极小。其次,我们观察到内存带宽争用成为关键瓶颈。这些见解促使我们设计一种动态分配GPU资源给预填充和解码阶段的方法,同时联合考虑计算能力、内存占用和带宽争用。在多种LLM和工作负载上的评估中,我们的系统Nexus相比vLLM实现了高达2.2倍的吞吐量提升、20倍的TTFT降低和2.5倍的TBT降低;相比SGLang性能提升高达2倍;并达到或超过分解式vLLM。

英文摘要:

Monolithic serving with chunked prefill improves GPU utilization by batching prefill and decode together, but suffers from fine-grained phase interference. Engine-level prefill-decode (PD) disaggregation avoids interference but incurs higher hardware and coordination overhead. Prior intra-GPU disaggregation approaches multiplex prefill and decode within a single GPU, using SLO-based tuning guided by heuristics from offline profiling or reactive feedback loops. However, these methods respond reactively to performance issues rather than anticipating them, limiting adaptability under dynamic workloads. We ask: can we achieve proactive intra-GPU disaggregation that adapts effectively to dynamic workloads? The key challenge lies in managing the conflicting resource demands of prefill and decode under varying conditions. We first show that GPU resources exhibit diminishing returns -- beyond a saturation point, more allocation yields minimal latency benefit. Second, we observe that memory bandwidth contention becomes a critical bottleneck. These insights motivate a design that dynamically partitions GPU resources across prefill and decode phases, while jointly considering compute capacity, memory footprint, and bandwidth contention. Evaluated on diverse LLMs and workloads, our system Nexus achieves up to 2.2x higher throughput, 20x lower TTFT, and 2.5x lower TBT than vLLM; outperforms SGLang by up to 2x; and matches or exceeds disaggregated vLLM.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑