arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2504.09285cs.DC
收藏

DynaServe:面向动态分解式大语言模型服务的统一弹性执行框架

DynaServe: Unified and Elastic Execution for Dynamic Disaggregated LLM Serving

Chaoyi Ruan, Yinhe Chen, Dongqi Tian, Yandong Shi, Yongji Wu, Jialin Li, Cheng Li

AI总结:

针对LLM推理中同址与分解式部署难以兼顾低尾延迟和高吞吐量的问题,提出基于vLLM的DynaServe系统,通过微请求拆分与两级调度实现弹性统一执行,显著提升SLO约束下的服务性能。

摘要:

大语言模型(LLM)推理必须满足严格的延迟服务水平目标(SLO),例如100ms的P99令牌间间隔,同时最大化有效吞吐量。然而,现实场景中提示词与响应长度的可变性,会导致计算密集型的预填充阶段与内存受限的解码阶段负载失衡,使得无论是同址部署(即便采用分块预填充技术)还是分解式部署,都无法同时实现低尾延迟和高吞吐量。\n我们提出DynaServe,这是一款构建于vLLM之上的高性能LLM服务系统,它统一并拓展了两种部署范式,旨在处理不均衡且动态的工作负载时,在SLO约束下最大化有效吞吐量。该系统基于微请求抽象,可在任意令牌边界将每个请求拆分为至多两个协同执行的分段。随后,两级调度框架在统一GPU实例间平衡微请求负载:全局调度器通过综合考虑请求的预填充/解码时间比,以及各GPU实例的当前负载,快速为每个请求选择拆分点;每个GPU实例上的本地调度器则独立构建具备SLO感知能力的批次,根据工作负载波动、潜在延迟尖峰以及单GPU的利用率不足/过载情况调整批次构成。在真实工作负载轨迹上的测试显示,与当前最优的同址部署和分解式基线相比,DynaServe将整体服务容量提升了1.15倍至3.07倍,有效吞吐量分别提升最高达1.91倍和1.61倍,在SLO约束下的混合工作负载中性能最高提升60%。

英文摘要:

LLM inference must meet strict latency SLOs (e.g., 100 ms P99 time-between-tokens) while maximizing goodput. Yet, real-world variability in prompt and response lengths skews compute-intensive prefill and memory-bound decode phases, making both colocated (even with chunked prefill) and disaggregated deployments unable to simultaneously deliver low tail latency and high throughput. We introduce DynaServe, a high-performance LLM serving system built atop vLLM that unifies and extends both paradigms for maximizing goodput under SLO constraints, when handling unbalanced and dynamic workloads. It relies on a micro-request abstraction, which arbitrarily splits each request at any token boundary into at most two cooperating segments. A two-level scheduling framework then balances micro-request load across unified GPU instances. The global scheduler rapidly selects per-request split points by considering both the request's prefill/decode time ratio and the current load across GPU instances. The local schedulers on each GPU instance independently form SLO-aware batches, adjusting their composition in response to workload fluctuations, potential latency spikes and per-GPU under/over utilization. On real-world traces, DynaServe boosts the overall serving capacity from 1.15$\times$ to 3.07$\times$, improves goodput by up to 1.91$\times$ and 1.61$\times$, and improves the performance by up to 60\% in a hybrid workload under SLO compared to state-of-the-art colocated and disaggregated baselines.

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

↑