arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2411.06364cs.DC
收藏

EconoServe:在LLM服务中通过SLO保障实现多资源利用率最大化

EconoServe: Maximizing Multi-Resource Utilization with SLO Guarantees in LLM Serving

Haiying Shen, Tanmoy Sen

AI总结:

针对现有LLM服务调度器无法同时优化GPU计算与KVC资源利用率的问题,提出EconoServe系统,通过双队列调度、KVC预分配与流水线等机制,在保障SLO的同时大幅提升多资源利用率与系统性能。

摘要:

随着大语言模型(LLM)规模持续增长,降低成本、缓解GPU需求压力变得愈发关键。然而,现有调度器主要针对GPU计算资源或键值缓存(KVC)利用率进行优化,无法在每轮迭代中同时充分优化GPU计算与KVC的使用,也无法保障在需要时及时完成KVC分配。为解决这些挑战,我们开展了基于真实轨迹的实验分析并获得了深刻洞见,进而设计了名为EconoServe的系统。EconoServe在保障LLM服务中的服务等级目标(SLO)的同时,实现了多资源利用率最大化。为了能够向批次中添加提示请求以最大化每轮迭代的GPU利用率,EconoServe为提示处理任务(PT)和生成任务(GT)分别维护独立的等待队列。它将预测响应长度(RL)相同的生成任务(GT)组成批次,以节省调度时间,并为预测的响应长度(RL)预分配KVC空间,避免KVC分配失败。该系统还提出了一种新颖的KVC流水线方法,允许共享已分配但未使用的KVC空间,以提升KVC利用率。此外,它会优先处理占用更多KVC的排队请求,以更早释放KVC并满足请求的服务等级目标(SLO)。实验结果表明,在相同延迟水平下,EconoServe将吞吐量提升了最高4倍;与vLLM相比,其作业完成时间最高降低了91%,SLO满足率最高提升了91%。在维持相同有效吞吐量(goodput)水平的前提下,它还将DistServe中使用的GPU数量最多减少了78%。

英文摘要:

As Large Language Models (LLMs) continue to grow, reducing costs and alleviating GPU demands has become increasingly critical. However, existing schedulers primarily target either GPU compute or Key-Value Cache (KVC) utilization, failing to fully optimize both GPU compute and KVC usage during each iteration or guarantee timely KVC allocations when needed. To address these challenges, we conducted a trace-based experimental analysis and made insightful observations, leading to the design of a system called EconoServe. EconoServe maximizes multi-resource utilization while ensuring service-level objective (SLO) guarantees in LLM serving. To enable adding prompts to a batch to maximize GPU utilization in each iteration, EconoServe maintains separate waiting queues for prompt processing tasks (PTs) and generation tasks (GTs). It batches GTs with the same predicted response lengths (RL) to save scheduling time and allocates KVC space for the predicted RL to avoid KVC allocation failures. It further has a novel KVC pipelining method, allowing sharing allocated but unused KVC space to enhance KVC utilization. In addition, it prioritizes queued requests that occupy more KVC to release KVC earlier and satisfy request service-level-objective (SLO). Experimental results demonstrate that EconoServe increases throughput by up to 4$\times$ with the same level of latency, generates up to 91\% lower job completion time and up to 91\% higher SLO satisfaction ratio compared to vLLM. It also reduces the number of GPUs used in DistServe by up to 78\% while maintaining the same level of goodput.

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

↑