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

Helix:通过最大流在异构GPU和网络上服务大语言模型

Helix: Serving Large Language Models over Heterogeneous GPUs and Network via Max-Flow

Carnegie Mellon University(卡内基梅隆大学)

Yixuan Mei, Yonghao Zhuang, Xupeng Miao, Juncheng Yang, Zhihao Jia, Rashmi Vinayak

AI总结:

本文提出Helix分布式系统,通过将异构GPU和网络的LLM推理转化为最大流问题并利用MILP算法联合优化模型放置与请求调度,显著提升了异构集群的服务吞吐量并降低了延迟。

摘要:

本文介绍了Helix,这是一个用于在异构GPU集群中实现高吞吐量、低延迟大语言模型(LLM)服务的分布式系统。Helix背后的核心思想是将异构GPU和网络连接上的LLM推理计算表述为有向加权图上的最大流问题,其中节点代表GPU实例,边通过其容量捕获GPU和网络的异构性。随后,Helix使用混合整数线性规划(MILP)算法来发现高度优化的策略,以在异构GPU上服务LLM。这种方法允许Helix联合优化模型放置和请求调度,这是异构LLM服务中两个高度耦合的任务。我们在包含24到42个GPU节点的多个异构集群上的评估表明,与现有方法相比,Helix将服务吞吐量提高了3.3倍,并将提示和解码延迟分别降低了66%和24%。Helix可在https://github.com/Thesys-lab/Helix-ASPLOS25获取。

英文摘要:

This paper introduces Helix, a distributed system for high-throughput, low-latency large language model (LLM) serving in heterogeneous GPU clusters. The key idea behind Helix is to formulate inference computation of LLMs over heterogeneous GPUs and network connections as a max-flow problem on directed, weighted graphs, whose nodes represent GPU instances and edges capture both GPU and network heterogeneity through their capacities. Helix then uses a mixed integer linear programming (MILP) algorithm to discover highly optimized strategies to serve LLMs on heterogeneous GPUs. This approach allows Helix to jointly optimize model placement and request scheduling, two highly entangled tasks in heterogeneous LLM serving. Our evaluation on several heterogeneous clusters ranging from 24 to 42 GPU nodes shows that Helix improves serving throughput by up to 3.3x and reduces prompting and decoding latency by up to 66% and 24%, respectively, compared to existing approaches. Helix is available at https://github.com/Thesys-lab/Helix-ASPLOS25.

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

↑