Comparison
flash-attn vs flashinfer-python vs sageattention vs turbo-attn
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
Flash Attention: Fast and Memory-Efficient Exact Attention
Actively maintained. Last release 7 weeks ago, commits in 25 of the last 26 weeks. A safe choice.
pip install flash-attnFlashInfer: Kernel Library for LLM Serving
Actively maintained. Last release 7 days ago, commits in 26 of the last 26 weeks. A safe choice.
pip install flashinfer-pythonAccurate and efficient 8-bit plug-and-play attention.
Low maintenance activity. Last release over 2 years ago, commits in 6 of the last 26 weeks. Weaker on recent releases and issue handling.
pip install sageattentionOptimized CUDAgraph-enabled kernels and attention backend for vLLM, SGLang and more based on TurboQuant near-lossless KV cache compression.
Actively maintained. Last release 1 day ago. A safe choice.
pip install turbo-attnIn short
- flashinfer-python is the most used: 4.2M downloads a month, 15× more than flash-attn.
- Maintenance is comparable: flashinfer-python 89, turbo-attn 84, flash-attn 79, sageattention 34 on Pythie’s Index.
- turbo-attn is growing fastest: downloads +230% over the last month.
- turbo-attn is the newcomer: first released Apr 2026.
- Safe default for a new project: flashinfer-python.
Side by side
| Metric | flash-attn | flashinfer-python | sageattention | turbo-attn |
|---|---|---|---|---|
| Pythie’s Index | Pythie’s Index: 79 | Pythie’s Index: 89 | Pythie’s Index: 34 | Pythie’s Index: 84 |
| Verdict | Actively maintained | Actively maintained | Low maintenance activity | Actively maintained |
| Downloads / month | 285K | 4.2M | 91.2K | 74.4K |
| Downloads, month over month | -6% | +17% | +2% | +230% |
| GitHub stars | 25.4K | 7.1K | 4K | – |
| Stars, last 7 days | – | – | – | – |
| Direct dependents | 58 | 0 | 3 | 0 |
| Last release | Oct 14, 2026 | Nov 25, 2026 | Nov 20, 2024 | Dec 1, 2026 |
| Releases, 12 months | 2 | 76 | 0 | 237 |
| Weeks with commits | 25 / 26 | 26 / 26 | 6 / 26 | – |
| Recent contributors | 40 | 50 | 19 | – |
| First release | Nov 2022 | Jan 2025 | Oct 2024 | Apr 2026 |
| Python versions | – | – | 3.9 – 3.11 | 3.10 – 3.12 |
| License | non-standard | Apache-2.0 | BSD-3-Clause | Apache-2.0 |
| Known vulnerabilities | None | None | None | None |
Bold marks the best value in each row. Pythie’s Index rates maintenance out of 100: how it works.