Taming the Chaos: Coordinated Autoscaling for Heterogeneous and Disaggregated LLM Inference
HeteroScale通过结合拓扑感知调度和基于指标的策略,实现了对异构和分解的LLM推理的协调自动缩放,显著提高了资源利用率和性能。
更新于 2025-08-29。作者:Rongzhi Li、Ruogu Du、Zefang Chu、Sida Zhao、Chunlei Han、Zuocheng Shi、Yiwen Shao、Huanle Han、Long Huang、Zherui Liu、Shufan Liu。
中文摘要
为大型语言模型(LLMs)提供服务是一项对GPU高度依赖的任务,传统的自动扩展器在这方面显得力不从心,尤其是在现代的预填充-解码(P/D)分立架构中。这种架构转变虽然强大,但也带来了重大的运营挑战,包括异构硬件的无效使用、网络瓶颈以及预填充和解码阶段之间的关键不平衡。我们介绍了HeteroScale,这是一个协调自动扩展框架,旨在解决P/D分立服务中的核心挑战。HeteroScale结合了一个拓扑感知调度器,该调度器能够适应异构硬件和网络约束,以及从生产环境中自动扩展信号的大规模实证研究得出的新颖的指标驱动策略。通过利用单一的、稳健的指标来联合扩展预填充和解码池,HeteroScale在保持架构平衡的同时,确保了高效、自适应的资源管理。在拥有数万个GPU的巨大生产环境中部署的HeteroScale已经证明了其有效性,平均GPU利用率提高了26.6个百分点,并且每天节省了数十万GPU小时,所有这些同时都维护了严格的服务水平目标。
英文摘要
Serving Large Language Models (LLMs) is a GPU-intensive task where traditional autoscalers fall short, particularly for modern Prefill-Decode (P/D) disaggregated architectures. This architectural shift, while powerful, introduces significant operational challenges, including inefficient use of heterogeneous hardware, network bottlenecks, and critical imbalances between prefill and decode stages. We introduce HeteroScale, a coordinated autoscaling framework that addresses the core challenges of P/D disaggregated serving. HeteroScale combines a topology-aware scheduler that adapts to heterogeneous hardware and network constraints with a novel metric-driven policy derived from the first large-scale empirical study of autoscaling signals in production. By leveraging a single, robust metric to jointly scale prefill and decode pools, HeteroScale maintains architectural balance while ensuring efficient, adaptive resource management. Deployed in a massive production environment on tens of thousands of GPUs, HeteroScale has proven its effectiveness, increasing average GPU utilization by a significant 26.6 percentage points and saving hundreds of thousands of GPU-hours daily, all while upholding stringent service level objectives.
解读
一句话总结
HeteroScale通过结合拓扑感知调度和基于指标的策略,实现了对异构和分解的LLM推理的协调自动缩放,显著提高了资源利用率和性能。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:LLM推理服务对GPU资源密集,传统自动缩放器在处理现代预填充-解码(P/D)分解架构时表现不佳。
- 现有方案不足:传统自动缩放器无法适应异构硬件和网络约束,导致资源利用效率低下,网络瓶颈和架构不平衡。
- 研究目标:开发一个协调的自动缩放框架,解决P/D分解服务中的核心挑战,提高资源利用率和性能。
问题2:论文的核心创新点是什么?
- 技术创新:拓扑感知调度器和基于指标的策略,用于优化资源分配和网络性能。
- 方法改进:引入部署组和RDMA子组,以优化网络亲和性和资源优先级。
- 优势:提高了平均GPU利用率,减少了GPU小时数消耗,同时保持了严格的服务级别目标。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:在大量生产环境中部署HeteroScale,管理数千个GPU。
- 性能提升:平均GPU利用率提高了26.6个百分点,每天节省了数十万个GPU小时。
- 对比结果:与未自动缩放的服务相比,HeteroScale显著提高了资源利用率和性能。
问题4:这个研究的实际应用价值是什么?
- 应用场景:大规模LLM推理服务,如聊天机器人、搜索引擎等。
- 实施建议:在异构和分解的LLM服务中实施HeteroScale,以提高资源利用率和性能。
- 局限与展望:未来研究将探索更高级和通用的指标、动态P/D比率调整和KV缓存感知自动缩放。
来源
机器可读索引:llms.txt