ReMP:面向LLM服务的低停机时间运行时模型并行重配置
ReMP: Low-Downtime Runtime Model-Parallelism Reconfiguration for LLM Serving
AI总结:
提出ReMP框架,通过解耦拓扑与运行时状态、二维KV缓存迁移等技术,实现LLM推理服务中模型并行拓扑的在线动态调整,将重配置停机时间从分钟级降至1-7秒。
摘要:
当前大语言模型(LLM)推理系统普遍采用张量并行(TP)和流水线并行(PP)的组合来部署超大规模模型。然而,现有系统将模型并行拓扑视为静态配置,无法在运行时灵活调整。这种刚性设计与实际场景中动态变化的推理负载存在根本矛盾。最先进的系统缺乏在线重配置能力,只能通过重启服务来切换配置,导致数分钟的服务中断、KV缓存丢失以及高昂的重计算开销。为解决此问题,本文提出ReMP,一种支持低停机时间的运行时模型并行重配置框架。ReMP通过三项关键技术实现动态调整:(1)将模型并行拓扑与运行时状态解耦,避免完全重建服务;(2)设计二维KV缓存迁移机制,在TP/PP变化后保留可复用的缓存状态;(3)实现端到端的在线重配置。实验表明,ReMP能在7B到70B参数规模的模型上,在1-7秒内完成大多数拓扑切换,相比重启方法实现数十至上百倍的加速。此外,在动态负载下,ReMP显著优于固定配置,在TTFT、TPOT和输出吞吐量方面表现出更优性能。
英文摘要:
Current large language model (LLM) inference systems universally deploy ultra-large-scale models using a combination of Tensor Parallelism (TP) and Pipeline Parallelism (PP). However, existing systems treat the model parallelism topology as a static configuration that cannot be flexibly adjusted at runtime. This rigid design creates a fundamental contradiction with the dynamically changing inference workloads in real-world scenarios. State-of-the-art systems lack online reconfiguration capabilities and can only switch configurations by restarting the service, resulting in several minutes of service interruption, KV cache loss, and prohibitive recomputation overhead. To address this problem, this paper presents ReMP, a runtime model parallelism reconfiguration framework that supports low downtime. ReMP achieves dynamic adjustment through three key techniques: (1) decoupling the model parallelism topology from runtime state to avoid full service reconstruction; (2) designing a two-dimensional KV cache migration mechanism to preserve reusable cache states after TP/PP changes; and (3) implementing end-to-end online reconfiguration. Experiments demonstrate that ReMP can complete most topology switches within 1-7 seconds on models ranging from 7B to 70B parameters, achieving speedups of tens to over a hundred times compared to the restart approach. Moreover, ReMP significantly outperforms fixed configurations under dynamic workloads, delivering superior performance in terms of TTFT, TPOT, and output throughput.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。