异构GPU云中SLO约束的LLM推理的可扩展联合资源分配
Scalable Joint Resource Allocation for SLO-Constrained LLM Inference in Heterogeneous GPU Clouds
AI总结:
针对异构GPU云中LLM推理的SLO约束,提出可扩展框架,通过约束感知启发式算法(GH和AGH)实现联合资源分配,在秒级内生成可行解并接近最优,显著降低成本和SLO违规。
摘要:
在云环境中服务大型语言模型(LLM)推理需要在延迟、准确性、内存和预算约束下联合优化模型选择、GPU配置、并行配置和工作负载路由。虽然混合整数线性规划(MILP)可以建模此问题,但其计算成本限制了在需求变化下的频繁重新优化。现有的启发式方法通常分别优化各个组件,并且在强制执行系统范围约束时可能变得不可行。本文提出了一个用于SLO约束的LLM推理的可扩展框架。我们将问题表述为一个MILP,并采用两阶段延迟模型,该模型在张量并行和流水线并行下捕获预填充和自回归解码。为了高效求解,我们开发了两种约束感知启发式算法:贪婪启发式(GH)和自适应贪婪启发式(AGH)。AGH通过多起点构建、局部搜索和GPU整合扩展了GH。两种方法通过并行感知过滤、基于成本的排序和自适应并行缩放来保持可行性。基于Azure LLM推理轨迹的实验表明,GH在一秒内生成可行解,而AGH在三秒内实现接近最优的性能,并可扩展到精确求解器无法收敛的大规模实例。在高达1.5倍延迟和准确性膨胀的样本外压力下,AGH通过预留的余量优雅地退化,产生的成本和SLO违规远低于成本最小的MILP解决方案。在合成和真实Azure工作负载中,AGH以显著低于精确MILP解决方案的成本维持SLO合规性。这些结果表明,高质量分配在实现快速适应工作负载变化的同时,对需求变化提供了显著的鲁棒性。
英文摘要:
Serving large language model (LLM) inference in cloud environments requires jointly optimizing model selection, GPU provisioning, parallelism configuration, and workload routing under latency, accuracy, memory, and budget constraints. While mixed-integer linear programming (MILP) can model this problem, its computational cost limits frequent re-optimization under demand variability. Existing heuristics often optimize individual components separately and may become infeasible when system-wide constraints are enforced. This paper presents a scalable framework for SLO-constrained LLM inference. We formulate the problem as an MILP with a two-phase delay model capturing both prefill and autoregressive decoding under tensor and pipeline parallelism. To solve it efficiently, we develop two constraint-aware heuristics: a Greedy Heuristic (GH) and an Adaptive Greedy Heuristic (AGH). AGH extends GH through multi-start construction, local search, and GPU consolidation. Both methods maintain feasibility through parallelism-aware filtering, cost-based ranking, and adaptive parallelism scaling. Experiments based on the Azure LLM Inference Trace show that GH generates feasible solutions within one second, while AGH achieves near-optimal performance within three seconds and scales to large instances where exact solvers fail to converge. Under out-of-sample stress with up to 1.5x delay and accuracy inflation, AGH degrades gracefully through provisioned headroom, yielding substantially lower cost and SLO violations than cost-minimal MILP solutions. Across synthetic and real Azure workloads, AGH maintains SLO compliance at significantly lower cost than exact MILP solutions. These results demonstrate that high-quality allocations provide substantial robustness to demand variability while enabling rapid adaptation to workload changes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。