Back to Gap Map Infrastructure / Compilers & Model Optimization

SageAttention

Tsinghua Machine Learning Group
open source / Overall score: 3.0

SageAttention is a quantized attention implementation that replaces the attention operator with 8-bit and INT4 arithmetic, using outlier smoothing and per-thread quantization to hold accuracy. It is applied as a drop-in substitution in language, image and video models, and the repository carries the SageAttention, SageAttention2 and SageAttention2++ implementations described in the papers.

Openness

5 high confidence
5.0
license
Apache-2.0(OSI)
source
public
core features withheld
no

The LICENSE file contains the Apache-2.0 text. The repository is public and the README describes no paid tier, enterprise edition or license-gated build, so the core is ungated.

  • https://raw.githubusercontent.com/thu-ml/SageAttention/main/LICENSE recorded 2026-09-30

    LICENSE file is the verbatim Apache-2.0 text, opening with "Apache License" and "Version 2.0, January 2004" and "TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION".

  • https://raw.githubusercontent.com/thu-ml/SageAttention/main/README.md recorded 2026-09-30

    README says "This repository provides the official implementation of SageAttention, SageAttention2, and SageAttention2++" and installs with "pip install sageattention==2.2.0 --no-build-isolation" or by compiling from source with "python setup.py install". Searched the body for enterprise, license key, paid, commercial, proprietary and non-commercial: none.

  • https://raw.githubusercontent.com/thu-ml/SageAttention/main/setup.py recorded 2026-09-30

    setup.py builds the CUDA extensions from the repository with torch CUDAExtension and nvcc, with "CUDA 12.0 or higher is required to build the package." Searched the body for enterprise, license key, paid, commercial and proprietary: none.

Adoption

3 high confidence
3.0

Adoption is measured from PyPI downloads of the `sageattention` package.

Capability

3 medium confidence
3.0

SageAttention replaces the attention operator with quantized 8-bit and INT4 kernels, with SageAttention3 adding microscaling FP4 kernels for Blackwell, applied as a drop-in substitution across language, image and video models. It is one operator family across four GPU architectures, which places it one step below TensorRT.

Verified 2026-09-24