ConfluxServe:在大语言模型服务中协调预填充与解码阶段的资源利用率和并行效率
ConfluxServe: Reconciling Resource Utilization and Parallelism Efficiency across Prefill and Decode in LLM Serving
AI总结:
针对大语言模型服务中预填充与解码的资源利用率-效率困境,提出Conflux并行,设计ConfluxServe系统,在TTFT和TBT约束下提升服务吞吐量1.26-1.62倍。
摘要:
预填充与解码在资源使用上互补,但并行偏好往往存在差异。将两个阶段分开执行可保留各自偏好的并行方式,但会导致互补资源未被充分利用;而联合批处理虽能提升利用率,却常需统一并行配置,损害执行效率。为解决这一利用率-效率困境,我们提出Conflux并行(XP),这是一种并行执行抽象,可在同一批处理中同时执行具有不同并行度的预填充与解码。Conflux并行利用算子级Transformer结构,构建跨算子采用不同批处理与并行策略的异构执行路径,结合联合批处理与阶段专属执行的优势。基于Conflux并行,我们设计了ConfluxServe,这是一个感知服务水平目标(SLO)的服务系统,可在首令牌时间(TTFT)和每令牌时间(TBT)约束下最大化集群吞吐量。基于生产工作负载的评估显示,ConfluxServe相比最强基线模型,服务吞吐量提升了1.26至1.62倍。
英文摘要:
Prefill and decode are complementary in resource usage, but often divergent in parallelism preferences. Executing the two phases separately preserves their preferred parallelism but leaves complementary resources underutilized, while co-batching improves utilization but often requires a uniform parallel configuration that hurts execution efficiency. To resolve this utilization-efficiency dilemma, we propose Conflux Parallelism (XP), a parallel execution abstraction that co-executes prefill and decode with different parallelism within the same batch. Conflux Parallelism exploits operator-level Transformer structure to construct a heterogeneous execution path with different batching and parallelism strategies across operators, combining the best of co-batching and phase-specific execution. Building on Conflux Parallelism, we design ConfluxServe, an SLO-aware serving system that maximizes cluster goodput under TTFT and TBT constraints. Evaluation on production workloads shows that ConfluxServe improves serving goodput by 1.26-1.62x over the strongest baselines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。