跳到正文
arXiv (AI + Vision + Imaging)· Tairan Xu, Leyang Xue, Zhan Lu, Jinfu Deng, Hongyang Xiao, Yinsicheng Jiang, Congjie He, Matej Sandor, Le Xu, Luo Mai·· 6 天前精选AI 评分58

BatchGen:面向大规模批量推理的序列协程架构

BatchGen: An Architecture for Scalable and Efficient Batch Inference

AI 导读

研究团队提出 BatchGen 批量推理系统,用序列协程计算模型把每条序列表示为细粒度事件驱动协程,使运行时能动态重组工作、扩大专家级批次并缓解长尾拖累。在 128 卡 GPU 集群上,BatchGen 将批量完成时间最多缩短 2.3 倍;在显存受限加速器上,其性能最多达到最强 offloading 基线的 9.6 倍。

推荐理由

论文提出以序列协程重构批量推理执行模型,并给出128卡集群与受限显存加速器上的实测加速数据,可供推理系统设计参考。

正文 · 原文

arXiv:2606.21712v2 Announce Type: replace-cross Abstract: Batch inference has become a central mode of AI computation, yet existing inference engines still rely on execution models designed for interactive serving. When scaled to millions of sequences, batch workloads reveal two fundamental requirements: the ability to handle extreme inter- and intra-sequence load variation that emerges only at runtime, and the ability to sustain high utilization across large fleets of GPUs. Existing systems fail to meet these requirements, losing substantial fractions of achievable throughput. We introduce a new architectural foundation for batch inference: the sequence coroutine compute model, which represents each sequence as a fine-grained, event-driven coroutine. This model exposes expressive primitives that allow the runtime to reorganize work dynamically, enabling larger expert-level batches, mitigating stragglers, reallocating work across devices, and maintaining utilization even on cost-effective or memory-constrained GPUs. Building on this abstraction, we implement BatchGen, a production-ready system that uses the coroutine model at cluster scale. On a 128-GPU cluster, BatchGen reduces batch completion time by up to $2.3\times$, and on memory-constrained accelerators it outperforms the strongest offloading baseline by up to $9.6\times$. We will open-source BatchGen at https://github.com/batchgen-project/batchgen

来源:arXiv (AI + Vision + Imaging) · arxiv.org