arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.04716cs.DCcs.ITcs.LGmath.IT
收藏

面向预填解码 disaggregated LLM 推理的 SLO 意识计算资源分配

SLO-Aware Compute Resource Allocation for Prefill-Decode Disaggregated LLM Inference

Kingsoft Cloud(金山云)

Luchang Li, Dongfang Li, Bozhao Gong, Yu Zhang

AI总结:

本文提出了一种结合理论建模与实证基准测试的混合方法,用于在 SLO 约束下优化预填解码 disaggregated LLM 推理的计算资源分配。

摘要:

预填解码(P/D) disaggregation 已经成为大型语言模型(LLM)推理中广泛采用的优化策略。然而,目前尚无成熟的 方法来确定 P/D 硬件资源的最佳数量,这需要在总吞吐量、服务级别目标(SLOs)和请求特征(特别是输入和输出长度)的约束下进行。为解决这一差距,我们提出了一种结合理论建模与实证基准测试的混合方法。首先,我们提出一个理论模型来计算 P/D 资源数量,该模型基于总吞吐量需求、请求输入和输出长度以及预填和解码吞吐量。然后,为了在 SLO 约束下获得实际的预填和解码吞吐量,我们使用 M/M/1 队列理论建模预填过程,从基准测试的最大预填吞吐量和时间到第一个 token(TTFT)中推导出实现的预填吞吐量。对于解码阶段,我们确定满足时间每输出 token(TPOT)要求的解码批次大小,并通过实证测量获得相应的解码吞吐量。我们的实验结果表明,所提出的方法能够准确预测现实世界 LLM 推理场景中的最佳 P/D 资源分配。

英文摘要:

Prefill-Decode (P/D) disaggregation has emerged as a widely adopted optimization strategy for Large Language Model (LLM) inference. However, there currently exists no well-established methodology for determining the optimal number of P/D hardware resources, subject to constraints on total throughput, service level objectives (SLOs), and request characteristics - specifically input and output lengths. To address this gap, we propose a hybrid approach that combines theoretical modeling with empirical benchmarking. First, we present a theoretical model for calculating P/D resource counts, which is based on total throughput requirements, request input and output lengths, as well as prefill and decode throughput. Then, to obtain the actual prefill and decode throughput under SLO constraints, we model the prefill process using M/M/1 queuing theory, deriving the achieved prefill throughput from the benchmarked maximum prefill throughput and Time-To-First-Token (TTFT). For the decode phase, we determine the decode batch sizes that meet Time-Per-Output-Token (TPOT) requirements and obtain the corresponding decode throughput through empirical measurements. Our experimental results demonstrate that the proposed method can accurately predict optimal P/D resource allocation in real-world LLM inference scenarios.

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

↑