Justitia: 任务并行LLM代理的公平高效调度算法
Justitia: Fair and Efficient Scheduling of Task-parallel LLM Agents with Selective Pampering
AI总结:
本文提出Justitia调度器,通过内存导向的成本量化和轻量预测方法,实现任务并行LLM代理的公平高效调度,实验表明其能显著提升调度效率并保持公平性。
摘要:
LLM代理通常由并行推理任务组成,常用于解决现实问题。在共享GPU服务器中调度此类任务并行LLM代理时,调度器需在保证最坏情况性能的前提下实现快速完成。本文的洞察是基于理想公平共享,在理想公平共享下根据代理完成顺序进行选择性 pampering。我们设计了Justitia,一种公平且高效的调度器。注意到内存在LLM服务中通常是瓶颈,Justitia以内存为中心量化代理的真实成本。它还采用轻量但准确的方法预测代理成本。最后,Justitia采用基于虚拟时间的公平队列算法以减少整体性能并保证最坏延迟。我们已在vLLM上实现了Justitia,实验结果表明,它能显著提高调度效率并保持公平性。
英文摘要:
LLM agents, which often comprise parallel inference tasks, are commonly adopted to solve real-world problems. When serving such task-parallel LLM agents in shared GPU servers, the scheduler is expected to attain fast agent completion with guaranteed worst-case performance. For that objective, our insight is to selectively pampering agents based on their completion order under idealized fair-sharing. We design Justitia, a fair and also efficient scheduler for task-parallel LLM agents. Noticing that memory is prevalently a bottleneck in LLM serving, Justitia quantifies the true agent cost in a memory-centric manner. It also adopts a light-weight yet accurate method to predict agent costs. Finally, Justitia adopts a virtual-time based fair queuing algorithm to reduce the overall performance with guaranteed worst-case delay. We have implemented Justitia atop vLLM, and experimental results involving diverse agents show that it can substantially enhance the scheduling efficiency with fairness preserved.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。