TurboServe: 高效经济地服务流式视频生成
TurboServe: Serving Streaming Video Generation Efficiently and Economically
AI总结:
针对流式视频生成的会话时长和用户需求异构性,提出TurboServe系统,通过在线调度联合优化会话放置与GPU配置,采用迁移感知放置和负载驱动自动缩放,降低延迟和成本。
摘要:
流式视频生成正成为一种新的服务负载,用户与长时间运行的会话交互,会话逐步生成视频块。与离线视频生成或典型LLM服务不同,流式视频生成必须在活动和非活动期间保持会话状态,重复调度进行中的会话,并在严格的延迟目标下交付每个块。这在多用户、多GPU环境中带来了两个关键的服务挑战:会话时长异构性(长时间运行的会话使放置决策随时间变得次优)和时变用户需求异构性(活动会话数量在突发和空闲期间剧烈波动)。我们提出了TurboServe,这是首个专门为流式视频生成负载设计的服务系统。TurboServe将服务建模为一个在线调度问题,联合协调会话放置和GPU配置。其闭环调度算法结合了迁移感知放置控制器(通过跨GPU重新平衡会话以减少最大每块延迟)和负载驱动的自动缩放控制器(根据工作负载变化调整GPU预算以提高成本效率)。为在运行时支持这些决策,TurboServe实现了合并块处理(在同一GPU上批处理并发活动会话)、GPU-CPU卸载(用于会话挂起和恢复)以及基于NCCL的GPU-GPU迁移(用于在线重新平衡)。我们使用生数科技的真实生产轨迹,在多种模型大小和最多64个NVIDIA B300 GPU的集群上评估了TurboServe。与基线服务配置相比,TurboServe平均将最坏情况下的每块延迟降低了37.5%,总GPU运营成本降低了37.2%。我们的代码在此https URL公开。
英文摘要:
Streaming video generation is emerging as a new serving workload in which users interact with long-lived sessions that generate video progressively, chunk by chunk. Unlike offline video generation or typical LLM serving, streaming video generation must preserve session state across active and idle periods, repeatedly schedule ongoing sessions, and deliver each chunk under a tight latency target. This creates two key serving challenges in multi-user, multi-GPU environments: session duration heterogeneity, where long-running sessions make placement decisions suboptimal over time, and temporal user-demand heterogeneity, where the number of active sessions fluctuates sharply across bursts and idle periods. We present TurboServe, the first serving system designed specifically for streaming video generation workloads. TurboServe formulates serving as an online scheduling problem that jointly coordinates session placement and GPU provisioning. Its closed-loop scheduling algorithm combines a migration-aware placement controller, which rebalances sessions across GPUs to reduce the maximum per-chunk latency, with a load-driven autoscaling controller, which adapts the GPU budget to workload variation for improved cost efficiency. To support these decisions at runtime, TurboServe implements coalesced chunk processing for batching concurrent active sessions on the same GPU, GPU-CPU offloading for session suspension and resumption, and NCCL-based GPU-GPU migration for online rebalancing. We evaluate TurboServe on real-world production traces from Shengshu Technology across multiple model sizes and GPU clusters with up to 64 NVIDIA B300 GPUs. Compared with baseline serving configurations, TurboServe reduces worst-case per-chunk latency by 37.5% and total GPU operating cost by 37.2% on average. Our code is publicly available at https://github.com/shengshu-ai/TurboServe.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。