arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2502.00722cs.DC
收藏

揭示异构GPU上LLM推理服务的成本效率

Demystifying Cost-Efficiency in LLM Serving over Heterogeneous GPUs

Youhe Jiang, Fangcheng Fu, Xiaozhe Yao, Guoliang He, Xupeng Miao, Ana Klimovic, Bin Cui, Binhang Yuan, Eiko Yoneki

AI总结:

本文研究异构GPU上LLM推理服务的成本效率问题,通过基准测试发现GPU组合、部署配置与负载分配可显著优化成本,并提出基于混合整数线性规划的调度算法,在多种场景下优于同构和异构基线。

摘要:

大语言模型(LLMs)的最新进展带来了日益多样化的请求,这些请求在服务时需要不同的资源(计算和内存)需求。然而,由于常见实践主要依赖同构GPU资源,这反过来降低了LLM推理服务的成本效率。针对这一问题,本工作对在云平台上基于异构GPU资源服务LLMs进行了深入研究。其基本原理是,不同类型的GPU展现出不同的计算和内存特性,能够很好地匹配多样化请求的发散性资源需求。特别地,通过全面的基准测试,我们发现,通过精心确定GPU组合、部署配置和工作负载分配,可以显著优化LLM推理服务的成本效率。随后,我们设计了一种基于混合整数线性规划的调度算法,旨在价格预算和实时GPU可用性的约束下推导出最具成本效率的服务方案。值得注意的是,我们的方法在广泛的场景下有效优于同构和异构基线,覆盖了多样化的工作负载轨迹、变化的GPU可用性以及多模型服务。这为在异构云资源上实现更易获取且更高效的LLM推理服务提供了新的视角。

英文摘要:

Recent advancements in Large Language Models (LLMs) have led to increasingly diverse requests, accompanied with varying resource (compute and memory) demands to serve them. However, this in turn degrades the cost-efficiency of LLM serving as common practices primarily rely on homogeneous GPU resources. In response to this problem, this work conducts a thorough study about serving LLMs over heterogeneous GPU resources on cloud platforms. The rationale is that different GPU types exhibit distinct compute and memory characteristics, aligning well with the divergent resource demands of diverse requests. Particularly, through comprehensive benchmarking, we discover that the cost-efficiency of LLM serving can be substantially optimized by meticulously determining GPU composition, deployment configurations, and workload assignments. Subsequently, we design a scheduling algorithm via mixed-integer linear programming, aiming at deducing the most cost-efficient serving plan under the constraints of price budget and real-time GPU availability. Remarkably, our approach effectively outperforms homogeneous and heterogeneous baselines under a wide array of scenarios, covering diverse workload traces, varying GPU availablilities, and multi-model serving. This casts new light on more accessible and efficient LLM serving over heterogeneous cloud resources.

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

↑