StreamServe: 低延迟解耦大语言模型服务中的自适应推测流
StreamServe: Adaptive Speculative Flows for Low-Latency Disaggregated LLM Serving
AI总结:
StreamServe通过结合计算通道的指标感知路由和自适应推测解码,平衡吞吐量和延迟,实现低延迟的大语言模型服务。
摘要:
高效的大语言模型服务必须在多样且突发的工作负载之间平衡吞吐量和延迟。我们介绍了StreamServe,一种解耦的预填充解码服务架构,结合了计算通道的指标感知路由和自适应推测解码,后者能够根据运行时信号在线调整推测深度。StreamServe包含四个组件:StreamScheduler用于请求编排,FlowGuard用于多信号路由,PipeServe引擎用于多GPU上的解耦预填充解码执行,以及SpecuStream用于运行时自适应推测。我们在四个基准测试(ALPACA、GSM8K、HUMANEVAL和SUM)上评估了StreamServe,每个基准测试使用80个查询和320个总请求,使用配置为两个流对的4块A800 40GB GPU。在这些工作负载中,StreamServe将延迟降低了11至18倍,相对于张量并行vLLM基线,并在总结任务上达到每秒2235个token的吞吐量。每个输出token的时间保持稳定,表明收益来自于架构效率而非token质量下降。尽管评估是在单节点4 GPU设置上进行的,这些结果表明,在解耦框架中联合适应路由和推测可以创建大语言模型推理的独特操作域。
英文摘要:
Efficient LLM serving must balance throughput and latency across diverse, bursty workloads. We introduce StreamServe, a disaggregated prefill decode serving architecture that combines metric aware routing across compute lanes with adaptive speculative decoding that tunes speculation depth online from runtime signals. StreamServe comprises four components: StreamScheduler for request orchestration, FlowGuard for multi signal routing, PipeServe Engine for disaggregated prefill decode execution on multi GPU, and SpecuStream for runtime adaptive speculation. We evaluate StreamServe on four benchmarks ALPACA, GSM8K, HUMANEVAL, and SUM with 80 queries each and 320 total using 4 A800 40GB GPUs configured as two stream pairs. Across these workloads, StreamServe reduces latency by 11 to 18 times relative to tensor parallel vLLM baselines and reaches throughput up to 2235 tokens per second on summarization tasks. Time per output token remains stable across configurations, indicating that the gains arise from architectural efficiency rather than token quality degradation. Although evaluated on a single node 4 GPU setup, these results suggest that jointly adapting routing and speculation within a disaggregated framework creates a distinct operating regime for LLM inference.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。