2025-02-20 · 专家 · 机器学习

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

这篇论文提出了Autellix,一个高效的LLM服务引擎,它通过程序级统计来优化调度策略,显著提高了LLM程序的处理速度和吞吐量。

更新于 2025-02-20。作者:Michael Luo、Xiaoxiang Shi、Colin Cai、Tianjun Zhang、Justin Wong、Yichuan Wang、Chi Wang、Yanping Huang、Zhifeng Chen、Joseph E. Gonzalez、Ion Stoica。

中文摘要

大型语言模型(LLM)的应用正从简单的聊天机器人演变到动态的通用智能代理程序,这些程序通过扩展LLM调用和输出令牌来帮助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.

解读

一句话总结

这篇论文提出了Autellix,一个高效的LLM服务引擎,它通过程序级统计来优化调度策略,显著提高了LLM程序的处理速度和吞吐量。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt