ExeGPT: Constraint-Aware Resource Scheduling for LLM Inference
Top Cited Papers
Open Access
- 27 April 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 369-384
Abstract
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.2× improvements in throughput and 6× improvements in latency. Overall, ExeGPT achieves an average throughput gain of 2.9× 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.Keywords
All Related Versions
This publication has 18 references indexed in Scilit:
- DeepSpeed- Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scale2022
- Chimera2021
- Efficient large-scale language model training on GPU clusters using megatron-LM2021
- SciXGen: A Scientific Paper Dataset for Context-Aware Text Generation2021
- Understanding and Overcoming the Challenges of Efficient Transformer Quantization2021
- Q8BERT: Quantized 8Bit BERT2019
- CoQA: A Conversational Question Answering ChallengeTransactions of the Association for Computational Linguistics, 2019
- PipeDream2019
- Discrete Monotonic Optimization with Application to a Discrete Location ProblemSIAM Journal on Optimization, 2006
- Monotonic Optimization: Problems and Solution ApproachesSIAM Journal on Optimization, 2000