arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.13327cs.DCcs.LGcs.PL
收藏

事件张量:一种统一的编译动态巨核抽象

Event Tensor: A Unified Abstraction for Compiling Dynamic Megakernel

Anonymous Authors(匿名作者)
Hongyi Jin, Bohan Hou, Guanjie Wang, Ruihang Lai, Jinqi Chen, Zihao Ye, Yaxing Cai, Yixin Dong, Xinhao Cheng, Zhihao Zhang, Yilong Zhao, Yingyi Huang, Lijie Yan… 展开作者

Hongyi Jin, Bohan Hou, Guanjie Wang, Ruihang Lai, Jinqi Chen, Zihao Ye, Yaxing Cai, Yixin Dong, Xinhao Cheng, Zhihao Zhang, Yilong Zhao, Yingyi Huang, Lijie Yang, Jinchen Jiang, Gabriele Oliaro, Jianan Ji, Xupeng Miao, Vinod Grover, Todd C. Mowry, Zhihao Jia, Tianqi Chen

AI总结:

本文提出事件张量,一种统一的编译动态巨核抽象,通过编码 tiled 任务间的依赖关系,支持动态形状和数据依赖的动态性,从而提升大型语言模型服务的性能和减少系统预热开销。

摘要:

现代GPU工作负载,特别是大型语言模型(LLM)推理,受到内核启动开销和粗粒度同步的限制,限制了内核间的并行性。最近的巨内核技术将多个操作符融合到单个持久内核中以消除启动间隙并暴露内核间并行性,但难以处理实际工作负载中的动态形状和数据依赖计算。我们提出了事件张量,一种统一的编译动态巨内核抽象。事件张量编码 tiled 任务之间的依赖关系,并为形状和数据依赖的动态性提供一等支持。基于此抽象,我们的事件张量编译器(ETC)应用静态和动态调度转换以生成高性能的持久内核。评估显示,ETC在显著减少系统预热开销的同时实现了最先进的LLM服务延迟。

英文摘要:

Modern GPU workloads, especially large language model (LLM) inference, suffer from kernel launch overheads and coarse synchronization that limit inter-kernel parallelism. Recent megakernel techniques fuse multiple operators into a single persistent kernel to eliminate launch gaps and expose inter-kernel parallelism, but struggle to handle dynamic shapes and data-dependent computation in real workloads. We present Event Tensor, a unified compiler abstraction for dynamic megakernels. Event Tensor encodes dependencies between tiled tasks, and enables first-class support for both shape and data-dependent dynamism. Built atop this abstraction, our Event Tensor Compiler (ETC) applies static and dynamic scheduling transformations to generate high-performance persistent kernels. Evaluations show that ETC achieves state-of-the-art LLM serving latency while significantly reducing system warmup overhead.

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

↑