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

Lodestar: 一种在线学习的大语言模型推理路由器

Lodestar: An Online-Learning LLM Inference Router

UIUC(伊利诺伊大学香槟分校);Bytedance(字节跳动);University of Edinburgh(爱丁堡大学)

Gangmuk Lim, Wanyu Zhao, Brighten Godfrey, Jiaxin Shan, Le Xu, Liguang Xie

AI总结:

提出Lodestar,一种基于在线学习的请求路由系统,通过实时收集集群状态并训练奖励预测器,以最小化TTFT为目标分配推理请求,在异构GPU集群上显著降低延迟。

摘要:

高效服务大语言模型(LLM)推理任务对于用户感知的延迟(如首令牌时间TTFT)和GPU利用率至关重要。然而,LLM请求路由(即将每个推理请求分配给GPU实例)尤其具有挑战性:执行高度依赖于输入;批处理和KV缓存重用造成了强烈的跨请求耦合;延迟对上下文长度、模型/引擎设置和异构加速器呈非线性响应。因此,简单的传统负载均衡算法,甚至针对LLM推理定制的启发式方法,都难以实现良好性能。我们提出Lodestar,一种面向分布式GPU集群的基于学习的请求路由系统。Lodestar持续在每个请求级别收集集群快照,包括实时实例状态、请求特征和观察到的性能,并训练一个在线奖励预测器,用于将推理请求路由到将最大化给定奖励(例如最小化TTFT)的实例。Lodestar是云原生的,并与现有服务栈(vLLM)无缝协作。通过持续在线适应变化的工作负载和基础设施条件,与最先进的前缀缓存和负载感知启发式方法相比,Lodestar在平均TTFT上降低1.41倍,在P99 TTFT上平均降低1.47倍(在同构集群上最高达2.15倍/1.86倍,在异构集群上最高达4.38倍/4.42倍),并且根据在公有云GPU集群上的实验,大约在5分钟内学习到这些高效的路由策略。

英文摘要:

Efficiently serving large language model (LLM) inference tasks is crucial both for user-perceived latency such as time-to-first-token (TTFT) and for GPU utilization. However, LLM request routing, that is, assigning each inference request to a GPU instance, is particularly challenging: execution is highly input-dependent; batching and KV-cache reuse create strong cross-request coupling; and latency responds nonlinearly to context length, model/engine settings, and heterogeneous accelerators. As a result, simple traditional load balancing algorithms, and even heuristics tailored for LLM inference, fail to achieve good performance. We present Lodestar, a novel learning-based request routing system for distributed GPU clusters. Lodestar continuously collects a snapshot of the cluster at per-request level, including real-time instance state, request characteristics, and observed performance, and trains an online reward predictor that it uses to route inference requests to the instance that will maximize given reward (e.g., minimizing TTFT). Lodestar is cloud-native and works seamlessly with existing serving stacks (vLLM). With continuous online adaptation to changing workloads and infrastructure conditions, Lodestar achieves 1.41x lower average TTFT and 1.47x lower P99 TTFT on average (up to 2.15x/1.86x on homogeneous and 4.38x/4.42x on heterogeneous clusters) compared to a state-of-the-art prefix cache and load-aware heuristic, and learns these efficient routing strategies within about 5 minutes, based on experiments in a public cloud GPU cluster.

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

↑