arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.13965cs.LGcs.AIcs.DC
收藏

Autellix:面向作为通用程序的 LLM 智能体的高效服务引擎

Autellix: An Efficient Serving Engine for LLM Agents as General Programs

UC Berkeley(加州大学伯克利分校);Google DeepMind(谷歌DeepMind);Shanghai Jiao Tong University(上海交通大学)

Michael Luo, Xiaoxiang Shi, Colin Cai, Tianjun Zhang, Justin Wong, Yichuan Wang, Chi Wang, Yanping Huang, Zhifeng Chen, Joseph E. Gonzalez, Ion Stoica

AI总结:

本文提出 Autellix 服务引擎,通过程序级上下文感知及面向单线程、分布式程序的抢占式优先级调度,解决 LLM 智能体程序的队头阻塞问题,在相同延迟下实现 4–15 倍程序吞吐提升。

摘要:

大型语言模型(LLM)应用正从简单聊天机器人演进为动态、通用的智能体程序,这些程序扩展 LLM 调用和输出 token,以帮助 AI 智能体推理、探索并解决复杂任务。然而,现有 LLM 服务系统忽视程序与调用之间的依赖关系,错失了显著的优化机会。我们的分析表明,提交给 LLM 服务引擎的程序会经历很长的累积等待时间,主要原因是单个 LLM 请求和程序两个层面都存在队头阻塞。为解决这一问题,我们提出 Autellix,这是一个将程序视为一等公民以最小化其端到端延迟的 LLM 服务系统。Autellix 拦截程序提交的 LLM 调用,用程序级上下文丰富调度器。我们提出两种调度算法,分别面向单线程程序和分布式程序,它们根据程序先前已完成的调用来抢占 LLM 调用并确定其优先级。我们的评估表明,在多种 LLM 和智能体工作负载上,与 vLLM 等最先进系统相比,Autellix 在相同延迟下将程序吞吐量提升 4–15 倍。

英文摘要:

Large language model (LLM) applications are evolving beyond simple chatbots into dynamic, general-purpose agentic programs, which scale LLM calls and output tokens to help AI agents reason, explore, and solve complex tasks. However, existing LLM serving systems ignore dependencies between programs and calls, missing significant opportunities for optimization. Our analysis reveals that programs submitted to LLM serving engines experience long cumulative wait times, primarily due to head-of-line blocking at both the individual LLM request and the program. To address this, we introduce Autellix, an LLM serving system that treats programs as first-class citizens to minimize their end-to-end latencies. Autellix intercepts LLM calls submitted by programs, enriching schedulers with program-level context. We propose two scheduling algorithms-for single-threaded and distributed programs-that preempt and prioritize LLM calls based on their programs' previously completed calls. Our evaluation demonstrates that across diverse LLMs and agentic workloads, Autellix improves throughput of programs by 4-15x at the same latency compared to state-of-the-art systems, such as vLLM.

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

↑