arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.10759cs.DCcs.LGcs.NI
收藏

SplitLLM:面向模型放置与吞吐量优化的LLM协同推理

SplitLLM: Collaborative Inference of LLMs for Model Placement and Throughput Optimization

Yale University(耶鲁大学);NEC Laboratories America(美国NEC实验室)

Akrit Mudvari, Yuang Jiang, Leandros Tassiulas

AI总结:

本文提出一种服务器与客户端协同的LLM推理架构SplitLLM,通过基于动态规划的算法在双方最优分配计算,在满足SLA的前提下使服务器工作负载减少约1/3,较贪心方法提升19%,有效提升了服务器吞吐量。

摘要:

大型语言模型(LLMs)是近年来的颠覆性创新,因具备理解并生成类人文本的能力,在我们的日常生活中扮演着至关重要的角色。其能力涵盖自然语言理解、信息检索与搜索、翻译、聊天机器人、虚拟助手等众多领域。然而,众所周知,LLMs在参数数量上极其庞大。此外,LLMs底层架构中的Transformers自注意力机制,在计算和内存上相对于输入序列长度具有二次复杂度。由于这些原因,LLM推理是资源密集型的,因此LLM推理的吞吐量受限,尤其是对于较长的序列。在本报告中,我们设计了一种服务器与其客户端之间的协同推理架构,以缓解吞吐量限制。在此设计中,我们考虑了双方的可用资源,即计算和通信成本。我们开发了一种基于动态规划的算法,在服务器和客户端设备之间最优地分配计算,以在不违反服务级别协议(SLA)的前提下提高服务器吞吐量。我们在实验中表明,我们能够高效地分配工作负载,使服务器工作负载减少约1/3,同时比贪心方法实现了19%的提升。结果表明,在包含不同类型LLM推理请求的环境中,服务器的吞吐量得到了提升。

英文摘要:

Large language models (LLMs) have been a disruptive innovation in recent years, and they play a crucial role in our daily lives due to their ability to understand and generate human-like text. Their capabilities include natural language understanding, information retrieval and search, translation, chatbots, virtual assistance, and many more. However, it is well known that LLMs are massive in terms of the number of parameters. Additionally, the self-attention mechanism in the underlying architecture of LLMs, Transformers, has quadratic complexity in terms of both computation and memory with respect to the input sequence length. For these reasons, LLM inference is resource-intensive, and thus, the throughput of LLM inference is limited, especially for the longer sequences. In this report, we design a collaborative inference architecture between a server and its clients to alleviate the throughput limit. In this design, we consider the available resources on both sides, i.e., the computation and communication costs. We develop a dynamic programming-based algorithm to optimally allocate computation between the server and the client device to increase the server throughput, while not violating the service level agreement (SLA). We show in the experiments that we are able to efficiently distribute the workload allowing for roughly 1/3 reduction in the server workload, while achieving 19 percent improvement over a greedy method. As a result, we are able to demonstrate that, in an environment with different types of LLM inference requests, the throughput of the server is improved.

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

↑