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

具有延迟服务水平目标(SLO)保证的大语言模型(LLM)推理内存卸载

Memory Offloading for Large Language Model Inference with Latency SLO Guarantees

Chenxiang Ma, Zhisheng Ye, Hanyu Zhao, Zehua Yang, Tianhao Fu, Jiaxun Han, Jie Zhang, Yingwei Luo, Xiaolin Wang, Zhenlin Wang, Yong Li, Diyu Zhou

AI总结:

针对现有LLM推理内存卸载机制未考虑延迟SLO导致违规或内存利用不足的问题,提出Select-N系统,利用LLM解码器层计算时间确定性,通过两阶段方法选最优卸载间隔,实现SLO满足并将吞吐量提升1.85倍。

摘要:

在推理期间将大语言模型(LLM)状态卸载到主机内存有望通过支持更大的模型、更长的输入和更大的批量大小来降低运营成本。然而,现有内存卸载机制的设计未考虑延迟服务水平目标(SLO)。因此,它们要么导致频繁的SLO违规,要么未充分利用主机内存,从而造成经济损失,违背了内存卸载的目的。本文提出Select-N,一种面向LLM服务的延迟SLO感知内存卸载系统。设计Select-N的关键挑战是协调满足SLO与最大化主机内存使用之间的矛盾。Select-N通过利用现代LLM的一个独特特性来克服这一挑战:在服务期间,每个解码器层的计算时间是确定性的。利用这一点,Select-N引入卸载间隔(一个内部可调旋钮),该旋钮捕捉SLO与主机内存使用之间的权衡,从而将上述挑战简化为选择最优卸载间隔。基于此,Select-N提出一种两阶段方法来自动选择卸载间隔:第一阶段是离线阶段,生成最优卸载间隔的范围;第二阶段基于运行时硬件状态,以推理迭代为粒度调整卸载间隔。我们的评估表明,Select-N持续满足SLO,并且由于最大化主机内存使用,其服务吞吐量比现有机制提高了1.85倍。

英文摘要:

Offloading large language models (LLMs) state to host memory during inference promises to reduce operational costs by supporting larger models, longer inputs, and larger batch sizes. However, the design of existing memory offloading mechanisms does not take latency service-level objectives (SLOs) into consideration. As a result, they either lead to frequent SLO violations or underutilize host memory, thereby incurring economic loss and thus defeating the purpose of memory offloading. This paper presents Select-N, a latency-SLO-aware memory offloading system for LLM serving. A key challenge in designing Select-N is to reconcile the tension between meeting SLOs and maximizing host memory usage. Select-N overcomes it by exploiting a unique characteristic of modern LLMs: during serving, the computation time of each decoder layer is deterministic. Leveraging this, Select-N introduces offloading interval, an internal tunable knob that captures the tradeoff between SLOs and host memory usage, thereby reducing the aforementioned challenge to pick an optimal offloading interval. With that, Select-N proposes a two-stage approach to automatically pick the offloading interval. The first stage is offline that generates the range of optimal offloading interval, while the second stage adjusts offloading interval at the granularity of inference iteration based on runtime hardware status. Our evaluation shows that Select-N consistently meets SLOs and improves the serving throughput over existing mechanisms by 1.85X due to maximizing the use of host memory.

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

↑