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

面向 LLM 工作负载的智能路由器:通过工作负载感知的负载均衡提升性能

Intelligent Router for LLM Workloads: Improving Performance Through Workload-Aware Load Balancing

Kunal Jain, Anjaly Parayil, Ankur Mallick, Esha Choukse, Xiaoting Qin, Jue Zhang, Íñigo Goiri, Rujia Wang, Chetan Bansal, Victor Rühle, Anoop Kulkarni, Steve Ko… 展开作者

Kunal Jain, Anjaly Parayil, Ankur Mallick, Esha Choukse, Xiaoting Qin, Jue Zhang, Íñigo Goiri, Rujia Wang, Chetan Bansal, Victor Rühle, Anoop Kulkarni, Steve Kofsky, Saravan Rajmohan

AI总结:

本文提出启发式引导的强化学习智能路由器,结合响应长度预测与工作负载混合影响估计,实现 LLM 推理请求的负载均衡,显著降低端到端延迟。

摘要:

大语言模型(LLM)工作负载具有不同的 prefill(预填充)和 decode(解码)阶段,二者对计算和内存的需求各不相同;在集群中的不同 LLM 实例之间调度输入查询时,理想情况下应考虑这些差异。然而,现有调度算法将 LLM 工作负载视为单一整体作业,没有考虑每个工作负载中两个阶段的独特特征。这会导致调度次优并增加响应延迟。在本研究中,我们首先刻画了 LLM 推理服务期间影响响应延迟的因素。我们证实,与仅仅关注优化实例级调度器相比,在可用 LLM 实例之间更好地对推理请求进行负载均衡,能够在更大程度上改善端到端延迟。受这些发现启发,我们提出了一种由启发式引导、基于强化学习的智能路由器,用于数据驱动且工作负载感知的调度。该路由器利用可训练的响应长度预测器,以及一种用于估计混合不同工作负载所产生影响的新建模形式,在多个 LLM 实例之间调度查询;在混合公开数据集上,其端到端延迟比现有方法低 11% 以上,在来自 Cloud Provider X、具有多样化输入和输出趋势的真实工作负载数据上,端到端延迟低 7.8%。此外,所提出的框架还可以作为基准测试不同 LLM 推理调度器的标准,因为对于给定的模型、硬件和实例级调度器组合,它能够提供最佳延迟。

英文摘要:

Large Language Model (LLM) workloads have distinct prefill and decode phases with different compute and memory requirements which should ideally be accounted for when scheduling input queries across different LLM instances in a cluster. However existing scheduling algorithms treat LLM workloads as monolithic jobs without considering the distinct characteristics of the two phases in each workload. This leads to sub-optimal scheduling and increased response latency. In this work, we start by characterizing factors affecting the response latency during LLM inference serving. We establish that better load balancing of inference requests across the available LLM instances can improve the end-to-end latency to a larger extent than merely focusing on optimizing the instance-level scheduler. Motivated by our findings, we propose a heuristic-guided reinforcement learning-based intelligent router for data-driven and workload-aware scheduling. Our router schedules queries across LLM instances by leveraging a trainable response-length predictor, and a novel formulation for estimating the impact of mixing different workloads and achieves over 11% lower end-to-end latency than existing approaches on a mix of public datasets and 7.8% lower end-to-end latency on real workload data with diverse input and output trends from Cloud Provider X. Additionally, the proposed framework can also serve as a standard for benchmarking different LLM inference schedulers since it provides the best latency for a given model, hardware, and instance-level scheduler combination.

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

↑