arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.11808cs.LG
收藏

基于变压器的深度核融合

Deep Kernel Fusion for Transformers

Imperial College London(帝国理工学院伦敦分校);University of Cambridge(剑桥大学)

Zixi Zhang, Zhiwen Mo, Yiren Zhao, Robert Mullins

AI总结:

本研究提出DeepFusionKernel,通过深度融合内核减少HBM流量并提高缓存复用,实现大语言模型在长上下文推理中的性能提升。

摘要:

代理大语言模型(LLM)推理在长上下文中的性能越来越受限于内存带宽而非计算能力。在这种情况下,SwiGLU MLP块由于其大权重超出缓存容量,成为主要但尚未优化的瓶颈。我们提出了DeepFusionKernel,一种深度融合的内核,它减少了HBM流量并提高了缓存复用,从而在H100上实现了高达13.2%的速度提升,在A100上实现了9.7%的速度提升。与SGLang集成并配以内核调度器,DeepFusionKernel在生成长度上保持一致的加速,同时能够适应多种模型、推理配置和硬件平台。

英文摘要:

Agentic LLM inference with long contexts is increasingly limited by memory bandwidth rather than compute. In this setting, SwiGLU MLP blocks, whose large weights exceed cache capacity, become a major yet under-optimized bottleneck. We propose DeepFusionKernel, a deeply fused kernel that cuts HBM traffic and boosts cache reuse, delivering up to 13.2% speedup on H100 and 9.7% on A100 over SGLang. Integrated with SGLang and paired with a kernel scheduler, DeepFusionKernel ensures consistent accelerations over generation lengths, while remaining adaptable to diverse models, inference configurations, and hardware platforms.

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

↑