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

Triton注意力内核剖析

The Anatomy of a Triton Attention Kernel

IBM Research Zurich(IBM瑞士苏黎世研究实验室)

Burkhard Ringlein, Jan van Lunteren, Radu Stoica, Thomas Parnell

AI总结:

针对LLM推理平台跨硬件移植性与效率的需求,本文基于Triton语言开发分页注意力内核,通过参数调优与推理服务器集成,将性能从最先进水平的19.7%提升至105.9%,实现跨NVIDIA和AMD GPU的高效可移植推理。

摘要:

行业和学术界的一个长期目标是开发一种LLM推理平台,该平台可跨硬件架构移植,无需低级手动调优,且仍能提供一流的效率。在这项工作中,我们证明了可移植、高效的跨平台LLM推理确实可行,并分享了我们的经验。我们开发了一种最先进的分页注意力(paged attention)内核——这是许多LLM部署中性能关键的核心组件,它完全基于特定领域的即时编译语言Triton构建,在NVIDIA和AMD GPU上均实现了最先进的性能。我们描述了我们的高级方法、关键算法和系统级改进、解锁效率所需的参数自动调优,以及集成到流行推理服务器中的必要步骤,这些步骤将通用Triton注意力内核的性能从最先进水平的19.7%提升到105.9%。我们的结果强调了如何利用开源特定领域语言来解锁不同GPU供应商之间的模型可移植性。

英文摘要:

A long-standing goal in both industry and academia is to develop an LLM inference platform that is portable across hardware architectures, eliminates the need for low-level hand-tuning, and still delivers best-in-class efficiency. In this work, we demonstrate that portable, efficient cross-platform LLM inference is indeed possible and share our experience. We develop a state-of-the-art paged attention kernel, the core performance-critical component of many LLM deployments, that builds exclusively on the domain-specific just-in-time compiled language Triton to achieve state-of-the-art performance on both NVIDIA and AMD GPUs. We describe our high-level approach, the key algorithmic and system-level improvements, the parameter auto-tuning required to unlock efficiency, and the integrations into a popular inference server that are necessary to bring the performance of a generic Triton attention kernel from 19.7% of the state-of-the-art to 105.9%. Our results highlight how open-source domain-specific languages can be leveraged to unlock model portability across different GPU vendors.

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

↑