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

基于代理模型序列长度预测的高效交互式LLM服务

Efficient Interactive LLM Serving with Proxy Model-based Sequence Length Prediction

IBM Research(IBM研究院)

Haoran Qiu, Weichao Mao, Archit Patke, Shengkun Cui, Saurabh Jha, Chen Wang, Hubertus Franke, Zbigniew T. Kalbarczyk, Tamer Başar, Ravishankar K. Iyer

AI总结:

本文提出投机性最短作业优先(SSJF)调度器,利用轻量级代理模型预测LLM输出序列长度,在不改变内存管理和批处理策略的情况下,显著降低作业完成时间并提升吞吐量。

摘要:

大型语言模型(LLMs)正在推动众多领域新一轮交互式AI应用的发展。然而,高效地服务LLM推理请求具有挑战性,因为生成模型的自回归特性导致其执行时间不可预测。现有的LLM服务系统采用先到先服务(FCFS)调度,存在队头阻塞问题。为了解决LLM的非确定性特性并实现高效的交互式LLM服务,我们提出了一种投机性最短作业优先(SSJF)调度器,该调度器使用轻量级代理模型来预测LLM输出序列长度。我们的开源SSJF实现不需要更改内存管理或批处理策略。在真实世界数据集和生产工作负载轨迹上的评估表明,与FCFS调度器相比,SSJF在无批处理、动态批处理和连续批处理设置下,平均作业完成时间降低了30.5-39.6%,吞吐量提高了2.2-3.6倍。

英文摘要:

Large language models (LLMs) have been driving a new wave of interactive AI applications across numerous domains. However, efficiently serving LLM inference requests is challenging due to their unpredictable execution times originating from the autoregressive nature of generative models. Existing LLM serving systems exploit first-come-first-serve (FCFS) scheduling, suffering from head-of-line blocking issues. To address the non-deterministic nature of LLMs and enable efficient interactive LLM serving, we present a speculative shortest-job-first (SSJF) scheduler that uses a light proxy model to predict LLM output sequence lengths. Our open-source SSJF implementation does not require changes to memory management or batching strategies. Evaluations on real-world datasets and production workload traces show that SSJF reduces average job completion times by 30.5-39.6% and increases throughput by 2.2-3.6x compared to FCFS schedulers, across no batching, dynamic batching, and continuous batching settings.

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

↑