arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2401.11181cs.DC
收藏

无干扰推理:面向混合下游工作负载的解耦式 LLM 推理

Inference without Interference: Disaggregate LLM Inference for Mixed Downstream Workloads

Cunchen Hu, Heyang Huang, Liangliang Xu, Xusheng Chen, Jiang Xu, Shuang Chen, Hao Feng, Chenxi Wang, Sa Wang, Yungang Bao, Ninghui Sun, Yizhou Shan

AI总结:

针对 LLM 推理中 prefill 与 decode 阶段相互干扰的问题,提出 TetriInfer,通过固定分块、阶段实例解耦和资源预测增强的两级调度,显著降低资源占用与 TTFT、JCT。

摘要:

基于 Transformer 的大语言模型(LLM)推理服务如今已成为许多云服务的骨干。LLM 推理由 prefill(预填充)阶段和 decode(解码)阶段组成。然而,现有的 LLM 部署实践往往忽视这两个阶段的不同特性,从而导致严重的相互干扰。为缓解干扰,我们的洞见是根据推理请求的特性对其进行仔细调度和分组。我们通过三大支柱在 TetriInfer 中实现了这一想法。首先,它将 prompt 划分为固定大小的 chunk,使加速器始终运行在接近其计算饱和上限的状态。其次,它将 prefill 实例与 decode 实例解耦,使两者能够独立运行。最后,它采用一种智能的两级调度算法,并以预测的资源使用量作为增强,以避免 decode 调度热点。结果表明,TetriInfer 大幅提升了首 token 时间(TTFT)、作业完成时间(JCT)以及以每美元性能衡量的推理效率;例如,它减少了 38% 的资源使用,同时将平均 TTFT 和平均 JCT 分别降低 97% 和 47%。

英文摘要:

Transformer-based large language model (LLM) inference serving is now the backbone of many cloud services. LLM inference consists of a prefill phase and a decode phase. However, existing LLM deployment practices often overlook the distinct characteristics of these phases, leading to significant interference. To mitigate interference, our insight is to carefully schedule and group inference requests based on their characteristics. We realize this idea in TetriInfer through three pillars. First, it partitions prompts into fixed-size chunks so that the accelerator always runs close to its computationsaturated limit. Second, it disaggregates prefill and decode instances so each can run independently. Finally, it uses a smart two-level scheduling algorithm augmented with predicted resource usage to avoid decode scheduling hotspots. Results show that TetriInfer improves time-to-first-token (TTFT), job completion time (JCT), and inference efficiency in turns of performance per dollar by a large margin, e.g., it uses 38% less resources all the while lowering average TTFT and average JCT by 97% and 47%, respectively.

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

↑