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

Mélange:利用GPU异构性实现成本高效的大语言模型服务

Mélange: Cost Efficient Large Language Model Serving by Exploiting GPU Heterogeneity

UC Berkeley(加州大学伯克利分校);National University of Singapore(新加坡国立大学)

Tyler Griggs, Xiaoxuan Liu, Jiaxiang Yu, Doyoung Kim, Wei-Lin Chiang, Alvin Cheung, Ion Stoica

AI总结:

Mélange提出一个GPU分配框架,通过成本感知装箱优化异构GPU选择,根据服务特征自动推导最小成本分配,对话、文档和混合场景分别降低部署成本77%、33%和51%。

摘要:

大语言模型(LLM)正日益集成到众多在线服务中,然而,由于需要昂贵的GPU实例,其部署成本仍然高昂。先前的工作通过改进推理引擎来解决LLM服务的高成本问题,但较少关注为特定LLM服务选择最具成本效益的GPU类型。GPU类型种类繁多且不断增长,在这些选项中,更高的成本并不总是带来更高的性能。相反,通过全面调查,我们发现三个关键的LLM服务特征(请求大小、请求速率、SLO)强烈影响GPU成本效率,且不同的GPU类型对于不同的LLM服务设置具有最高的成本效益。因此,对于给定服务,最具成本效益的分配通常是异构GPU类型的混合。基于这一分析,我们提出了Mélange,一个GPU分配框架,它导航这些多样的LLM服务特征和异构GPU选项空间,自动且高效地为给定LLM服务推导出最小成本的GPU分配。我们将GPU分配任务形式化为一个成本感知的装箱问题,其中GPU是箱子,物品是服务工作负载的切片。我们公式的约束条件考虑了服务的独特特征,使Mélange能够灵活地支持多样化的服务设置,并具有异构感知性,以适应特定服务的GPU分配。与仅使用单一GPU类型相比,Mélange在对话设置中降低了高达77%的部署成本,在基于文档的设置中降低了33%,在混合设置中降低了51%。

英文摘要:

Large language models (LLMs) are increasingly integrated into many online services, yet they remain cost-prohibitive to deploy due to the requirement of expensive GPU instances. Prior work has addressed the high cost of LLM serving by improving the inference engine, but less attention has been given to selecting the most cost-efficient GPU type(s) for a specific LLM service. There is a large and growing landscape of GPU types and, within these options, higher cost does not always lead to increased performance. Instead, through a comprehensive investigation, we find that three key LLM service characteristics (request size, request rate, SLO) strongly influence GPU cost efficiency, and differing GPU types are most cost efficient for differing LLM service settings. As a result, the most cost-efficient allocation for a given service is typically a mix of heterogeneous GPU types. Based on this analysis, we introduce Mélange, a GPU allocation framework that navigates these diverse LLM service characteristics and heterogeneous GPU option space to automatically and efficiently derive the minimal-cost GPU allocation for a given LLM service. We formulate the GPU allocation task as a cost-aware bin packing problem where GPUs are bins and items are slices of the service workload. Our formulation's constraints account for a service's unique characteristics, allowing Mélange to be flexible to support diverse service settings and heterogeneity-aware to adapt the GPU allocation to a specific service. Compared to using only a single GPU type, Mélange reduces deployment costs by up to 77% in conversational settings, 33% in document-based settings, and 51% in a mixed setting.

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

↑