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

GPU是半空还是半满?面向LLM的实用调度技术

Is the GPU Half-Empty or Half-Full? Practical Scheduling Techniques for LLMs

MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Databricks(Databricks公司)

Ferdi Kossmann, Bruce Fontaine, Daya Khudia, Michael Cafarella, Samuel Madden

AI总结:

本文调研了LLM服务系统中的调度技术,发现文献方法性能好但复杂,实际部署方法易用但留有性能提升空间,并提出两种易于实现且在生产工作负载上优于现有技术的新调度方法。

摘要:

大型语言模型(LLM)的服务系统通过并发处理多个请求来提高吞吐量。然而,在并发请求之间多路复用硬件资源涉及复杂的调度决策。实际的服务系统通常在两个层面实现这些决策:首先,负载均衡器将请求路由到不同的服务器,每台服务器都持有一个LLM副本。然后,在每台服务器上,引擎级调度器决定何时运行请求,或者何时将其排队或抢占。改进的调度策略可以使广泛的LLM部署受益,并且通常可以作为系统当前策略的“直接替换”来实现。在这项工作中,我们调研了文献和实际服务系统中的调度技术。我们发现文献中的调度器通常能实现良好的性能,但引入了显著的复杂性。相比之下,实际部署中的调度器通常会留下容易实现的性能提升,但易于实现、部署和配置。这一发现促使我们引入两种新的调度技术,它们不仅易于实现,而且在生产工作负载追踪上优于现有技术。

英文摘要:

Serving systems for Large Language Models (LLMs) improve throughput by processing several requests concurrently. However, multiplexing hardware resources between concurrent requests involves non-trivial scheduling decisions. Practical serving systems typically implement these decisions at two levels: First, a load balancer routes requests to different servers which each hold a replica of the LLM. Then, on each server, an engine-level scheduler decides when to run a request, or when to queue or preempt it. Improved scheduling policies may benefit a wide range of LLM deployments and can often be implemented as "drop-in replacements" to a system's current policy. In this work, we survey scheduling techniques from the literature and from practical serving systems. We find that schedulers from the literature often achieve good performance but introduce significant complexity. In contrast, schedulers in practical deployments often leave easy performance gains on the table but are easy to implement, deploy and configure. This finding motivates us to introduce two new scheduling techniques, which are both easy to implement, and outperform current techniques on production workload traces.

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

↑