Lune

ICLR2025顶会

SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration

Jintao Zhang, Jia Wei, Pengle Zhang, Jun Zhu, Jianfei Chen

出版方
2025年份
70顶会引用

摘要

The transformer architecture predominates across various models. As the heart of the transformer, attention has a computational complexity of O(N 2 ), compared to O(N ) for linear transformations. When handling large sequence lengths, attention becomes the primary time-consuming component. Although quantization has proven to be an effective method for accelerating model inference, existing quantization methods primarily focus on optimizing the linear layer. In response, we first analyze the feasibility of quantization in attention detailedly. Following that, we propose SageAttention, a highly efficient and accurate quantization method for attention. The OPS (operations per second) of our approach outperforms FlashAttention2 and xformers by about 2.1x and 2.7x, respectively. SageAttention also achieves superior accuracy performance over FlashAt-tention3. Comprehensive experiments confirm that our approach incurs almost no end-to-end metrics loss across diverse models-including those for large language processing, image generation, and video generation. The code is available at https://github.com/thu-ml/SageAttention .

问问这篇 Paper

智能体会读完全文。

Lune 把这篇 Paper 索引到了最后一个公式,引用它的顶会 Paper 也一样。你提问,回答直接引用原文。

可以从这些问题问起

智能体调用

Luneget_paper_fulltext

在 Lune 里问

免费开始,无需绑卡

lune papers fulltext 54b74dc3-fb45-4cf5-9767-10119ac4a890

引用它的顶会 Paper70

问问它们各自怎么用它

它引用的顶会 Paper41

相关 Paper

黄昏的海面,两侧是细线勾勒的悬崖