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

ExeGPT:面向大语言模型推理的约束感知资源调度

ExeGPT: Constraint-Aware Resource Scheduling for LLM Inference

Hanyang University(汉阳大学);KT Corporation(KT公司)

Hyungjun Oh, Kihong Kim, Jaemin Kim, Sungkyun Kim, Junyeol Lee, Du-seong Chang, Jiwon Seo

AI总结:

本研究提出分布式系统ExeGPT,通过利用序列分布分配资源、结合两种调度策略,在满足延迟约束下最大化LLM推理吞吐量,性能显著优于现有方案且调度调整开销低。

摘要:

本文提出ExeGPT——一种专为约束感知大语言模型(LLM)推理设计的分布式系统。ExeGPT可找到并采用最优执行调度方案,在满足给定延迟约束的同时最大化推理吞吐量。通过利用输入和输出序列的分布特性,它能有效分配资源并确定最优执行配置,包括批量大小和部分张量并行度。本文还提出两种分别基于轮询分配(Round-Robin Allocation)和工作负载感知分配(Workload-Aware Allocation)策略的调度方案,适用于不同自然语言处理(NLP)工作负载。我们在T5、OPT、GPT-3的6个LLM实例和5项NLP任务上评估ExeGPT,每项任务设置4种不同的延迟约束。与FasterTransformer相比,ExeGPT的吞吐量最高提升15.2倍,延迟最高降低6倍;在20个评估场景中,ExeGPT的平均吞吐量提升达2.9倍。此外,在适配变化的序列分布时,ExeGPT调整调度方案的开销相当低。ExeGPT被证明是针对多样NLP工作负载和服务条件优化、执行LLM推理的有效解决方案。

英文摘要:

This paper presents ExeGPT, a distributed system designed for constraint-aware LLM inference. ExeGPT finds and runs with an optimal execution schedule to maximize inference throughput while satisfying a given latency constraint. By leveraging the distribution of input and output sequences, it effectively allocates resources and determines optimal execution configurations, including batch sizes and partial tensor parallelism. We also introduce two scheduling strategies based on Round-Robin Allocation and Workload-Aware Allocation policies, suitable for different NLP workloads. We evaluate ExeGPT on six LLM instances of T5, OPT, and GPT-3 and five NLP tasks, each with four distinct latency constraints. Compared to FasterTransformer, ExeGPT achieves up to 15.2x improvements in throughput and 6x improvements in latency. Overall, ExeGPT achieves an average throughput gain of 2.9x across twenty evaluation scenarios. Moreover, when adapting to changing sequence distributions, the cost of adjusting the schedule in ExeGPT is reasonably modest. ExeGPT proves to be an effective solution for optimizing and executing LLM inference for diverse NLP workload and serving conditions.

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

↑