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

FLYING SERVING: 面向大语言模型服务的实时并行切换

FLYING SERVING: On-the-Fly Parallelism Switching for Large Language Model Serving

Oregon State University(俄勒冈州立大学);Oak Ridge National Laboratory(橡树岭国家实验室)

Shouwei Gao, Junqi Yin, Feiyi Wang, Wenqian Dong

AI总结:

Flying Serving通过实时切换数据并行与张量并行,提升大语言模型服务在高负载和低负载下的性能,同时支持多样化的请求需求。

摘要:

生产级大语言模型服务必须在非平稳流量和混合请求需求下同时实现高吞吐量、低延迟和足够的上下文容量。数据并行(DP)通过运行独立副本最大化吞吐量,而张量并行(TP)通过减少每个请求的延迟并池化内存来实现长上下文推断。然而,现有服务栈通常在部署时固定并行配置;适应突发请求、优先级或长上下文请求往往具有破坏性和缓慢。我们提出了Flying Serving,一个基于vLLM的系统,它能够在不重启引擎工作者的情况下实现在线DP-TP切换。Flying Serving通过虚拟化原本会强制数据移动的状态使重新配置变得实用:(i)一个零拷贝模型权重管理器,按需暴露TP分片视图;(ii)一个KV缓存适配器,跨DP/TP布局保留请求的KV状态;(iii)一个提前初始化的通信器池以摊销集体设置;(iv)一个无死锁调度器,协调执行偏斜下的安全过渡。在三个流行的大语言模型和现实的服务场景中,Flying Serving在高负载下性能提升最高达4.79倍,在低负载下提升3.47倍,同时支持延迟和内存驱动的请求。

英文摘要:

Production LLM serving must simultaneously deliver high throughput, low latency, and sufficient context capacity under non-stationary traffic and mixed request requirements. Data parallelism (DP) maximizes throughput by running independent replicas, while tensor parallelism (TP) reduces per-request latency and pools memory for long-context inference. However, existing serving stacks typically commit to a static parallelism configuration at deployment; adapting to bursts, priorities, or long-context requests is often disruptive and slow. We present Flying Serving, a vLLM-based system that enables online DP-TP switching without restarting engine workers. Flying Serving makes reconfiguration practical by virtualizing the state that would otherwise force data movement: (i) a zero-copy Model Weights Manager that exposes TP shard views on demand, (ii) a KV Cache Adaptor that preserves request KV state across DP/TP layouts, (iii) an eagerly initialized Communicator Pool to amortize collective setup, and (iv) a deadlock-free scheduler that coordinates safe transitions under execution skew. Across three popular LLMs and realistic serving scenarios, Flying Serving improves performance by up to $4.79\times$ under high load and $3.47\times$ under low load while supporting latency- and memory-driven requests.

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

↑