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

通过细粒度序列并行优化长上下文大语言模型服务

Optimizing Long-context LLM Serving via Fine-grained Sequence Parallelism

Cong Li, Yuzhe Yang, Xuegui Zheng, Qifan Yang, Yijin Guan, Size Zheng, Li-Wen Chang, Shufan Liu, Xin Liu, Guangyu Sun

AI总结:

针对现有长上下文LLM服务动态序列并行分配灵活性不足的问题,提出细粒度分块动态序列并行策略CDSP,构建系统Tetris,显著降低延迟并提升服务容量。

摘要:

随着大语言模型(LLMs)的发展,其上下文窗口迅速扩大。为满足在线服务中不同长度请求的多样需求,现有最先进系统会调整序列并行(SP)分配。但当前动态SP分配存在灵活性不足的问题:一是无法支持LLM推理中不同阶段的并行需求,二是难以缓解过度SP分配导致的全局延迟下降,三是无法利用SP规模变化产生的资源碎片。为解决该问题,我们提出分块动态序列并行(CDSP),这是一种在请求内的token分段间分配SP规模的细粒度并行策略。基于CDSP,我们构建了LLM服务系统Tetris,该系统可高效将CDSP集成到分离式集群以满足并行异构性需求,根据实时负载情况动态调控SP规模扩张,还能自适应探索分块方案以利用碎片资源同时满足单请求需求。与最先进系统相比,Tetris在最大可持续负载下将首token时间(TTFT)降低最多4.35倍,将token间中位时间(TBT)降低最多40.1%,并将最大请求容量提升最多45%。

英文摘要:

With the advancement of large language models (LLMs), their context windows have rapidly expanded. To meet diverse demands from varying-length requests in online services, existing state-of-the-art systems tune the sequence parallelism (SP) allocation. However, current dynamic SP allocation lacks flexibility to (1) support stage-specific parallelism requirements in LLM inference, (2) mitigate the global latency degradation from excessive SP allocation, and (3) exploit resource fragments arising from SP size variation. To tackle this problem, we propose Chunkwise Dynamic Sequence Parallelism (CDSP), a fine-grained parallelism strategy that assigns SP sizes across \textit{intra-request} token segments. Based on CDSP, we build Tetris, an LLM serving system that (1) efficiently integrates CDSP into disaggregated cluster to satisfy parallelism heterogeneity, (2) dynamically regulates SP size expansion based on real-time load conditions, and (3) adaptively explores chunking plans to utilize fragmented resources while meeting per-request demands. Compared with state-of-the-art systems, Tetris achieves up to 4.35$\times$ lower time-to-first-token (TTFT) under max sustainable loads, reduces median time-between-tokens (TBT) by up to 40.1\%, and increases the max request capacity by up to 45\%.

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

↑