HKUSTDialflash-sparse-attention
Trainable fast and memory-efficient sparse attention
- Repository stars
- 752 Star
- All-time
- #49,721 all time
- Fork
- 55 Fork
- Repository created
- since 2025
- Type
- Frameworks & SDKs
- Language
- Python
- License
- BSD-3-Clause
About
READMEFlash-Sparse-Attention is a high-performance trainable sparse attention implementation.
It combines Flash Attention's memory efficiency with sparse computation for extremely long sequences in Transformer models.
Getting started
It requires Python 3.12 or later, and PyTorch 2.5.1 or later.
Install from PyPI with pip install flash-sparse-attn.
Limitations
- The CuTe backend currently delivers the best performance. A Gluon backend targeting parity with CuTe is still a work in progress.
- The README does not declare a license.
Summarized by AI from the README · As of 2026-12-02, HKUSTDial/flash-sparse-attention had 752 stars. According to the 2026-12-02 record, HKUSTDial/flash-sparse-attention is catalogued under Deep Learning Frameworks & Training. A permissive license allows commercial use under its terms. The last push was on 2026-12-01. The figures come from a GitHub API snapshot. Stars count expressions of interest. Record updated: . About the data
README
View on GitHubRaw observations · 27
| Measured at | Repository stars | Source |
|---|---|---|
| 2026-12-02 01:16 UTC | 752 | Source |
| 2026-12-01 01:55 UTC | 753 | Source |
| 2026-11-30 01:12 UTC | 753 | Source |
| 2026-11-29 01:11 UTC | 753 | Source |
| 2026-11-28 01:11 UTC | 752 | Source |
| 2026-11-27 01:12 UTC | 752 | Source |
| 2026-11-26 01:14 UTC | 752 | Source |
| 2026-11-25 04:22 UTC | 751 | Source |
| 2026-11-24 05:27 UTC | 751 | Source |
| 2026-11-23 04:57 UTC | 750 | Source |
| 2026-11-22 09:32 UTC | 750 | Source |
| 2026-11-21 07:19 UTC | 750 | Source |
| 2026-11-20 06:26 UTC | 750 | Source |
| 2026-11-19 04:31 UTC | 750 | Source |
| 2026-11-18 12:56 UTC | 750 | Source |
| 2026-11-17 06:16 UTC | 749 | Source |
| 2026-11-16 04:42 UTC | 749 | Source |
| 2026-11-15 05:41 UTC | 749 | Source |
| 2026-11-14 03:29 UTC | 748 | Source |
| 2026-11-13 04:22 UTC | 748 | Source |
| 2026-11-12 01:46 UTC | 748 | Source |
| 2026-11-11 02:10 UTC | 748 | Source |
| 2026-11-10 01:22 UTC | 748 | Source |
| 2026-11-09 01:14 UTC | 747 | Source |
| 2026-11-08 01:13 UTC | 747 | Source |
| 2026-11-07 15:14 UTC | 747 | Source |
| 2026-11-06 12:42 UTC | 746 | Source |
Add a badge to your README
For project authors: paste it into the README. It updates daily and links back here.
[](https://github.day/resources/flash-sparse-attention-hkustdial?ref=badge)