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

LLM微服务化系统

A System for Microserving of LLMs

Hongyi Jin, Ruihang Lai, Charlie F. Ruan, Yingcheng Wang, Todd C. Mowry, Xupeng Miao, Zhihao Jia, Tianqi Chen

AI总结:

本文提出LLM微服务化架构,通过细粒度API和可编程路由器实现动态协调,支持多种分离策略,最多减少47%任务完成时间。

摘要:

LLM的最新进展带来了对高效系统支持以提升整体服务效率的强烈需求。随着LLM推理扩展到多个GPU甚至多个计算节点,服务系统中出现了各种协调模式,如预填充-解码分离和上下文迁移。目前大多数推理服务提供粗粒度的请求级API,并采用预配置的协调策略,这限制了定制和动态重新配置协调的能力。在本文中,我们提出了LLM微服务化,一种用于构建和编程LLM推理服务的多级架构。我们引入了简单而有效的微服务化API,以支持细粒度的子请求级操作。一个可编程路由器将用户请求转换为子请求调用,从而实现服务模式的动态重新配置。为了支持多样的执行模式,我们开发了一个统一的KV缓存接口,处理各种KV计算、传输和重用场景。我们的评估表明,LLM微服务化可以通过几行Python代码重新配置以支持多种分离编排策略,同时保持LLM推理任务的最先进性能。此外,它使我们能够探索新的策略变体,与现有策略相比,最多可减少47%的任务完成时间。

英文摘要:

The recent advances in LLMs bring a strong demand for efficient system support to improve overall serving efficiency. As LLM inference scales towards multiple GPUs and even multiple compute nodes, various coordination patterns, such as prefill-decode disaggregation and context migration, arise in serving systems. Most inference services today expose a coarse-grained request-level API with a pre-configured coordination strategy, limiting the ability to customize and dynamically reconfigure the coordination. In this paper, we propose LLM microserving, a multi-level architecture for structuring and programming LLM inference services. We introduces simple yet effective microserving APIs to support fine-grained sub-request level actions. A programmable router transforms user requests into sub-request calls, enabling the dynamic reconfiguration of serving patterns. To support diverse execution patterns, we develop a unified KV cache interface that handles various KV compute, transfer, and reuse scenarios. Our evaluation shows that LLM microserving can be reconfigured to support multiple disaggregation orchestration strategies in a few lines of Python code while maintaining state-of-the-art performance for LLM inference tasks. Additionally, it allows us to explore new strategy variants that reduce up to 47% of job completion time compared to the existing strategies.

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

↑