thu-ml/sageattention

[ICLR2025, ICML2025, NeurIPS2025 Spotlight] Quantized Attention achieves speedup of 2-5x compared to FlashAttention, without losing end-to-end metrics...

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 11 minutes ago
Added to GitGenius on September 18th, 2026
Created on October 3rd, 2024
Open Issues & Pull Requests: 212 (+0)
GitHub issues: Enabled
Number of forks: 512
Total Stargazers: 3,842 (+0)
Total Subscribers: 43 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 15.3 hours
Mean response time: 7.5 days
90th percentile: 20.0 days
Tracked items: 263

Most active contributors

Sign in to see contributor activity.

How this project is maintained

Roughly one issue in two opened in the past year never receives a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. 77% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 19% of issues opened in the past year have been closed. Three people close 56% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 177
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 376 days
Stale 30+ days: 164
Stale 90+ days: 152

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • enhancement (14)
  • Resolved (3)
  • bug (2)
  • duplicate (2)
  • wontfix (2)

Most active issues this week

Detailed Description

SageAttention is an efficient attention mechanism implementation that accelerates transformer inference through quantization.

The project addresses the computational bottleneck of attention operations in large language models, vision transformers, and video generation models. It applies quantization techniques to the attention computation itself, reducing memory bandwidth and computational overhead while maintaining numerical accuracy. The approach achieves speedup over existing optimized attention implementations without degrading the quality of model outputs across different domains.

Teams working on inference optimization for transformer-based systems should consider this tool, particularly those deploying language models, image models, or video generation systems where attention latency is a constraint. The implementation is written in CUDA and Triton, making it suitable for GPU-accelerated inference pipelines. It targets scenarios where end-to-end model quality must be preserved while reducing inference time, which distinguishes it from approaches that trade accuracy for speed.

The project maintains active development with regular updates addressing both core functionality and integration with different model architectures. The codebase receives contributions focused on expanding support across different model types and inference scenarios. Development activity shows sustained engagement with the underlying optimization techniques and their application to emerging model families.