Skip to content

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
Language
Python
License
BSD-3-Clause
Commercial use OKBSD-3-Clause; keep the license notice
Actively maintainedLast push today

About

README

Flash-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

Raw observations · 27
Historical observations
Measured atRepository starsSource
2026-12-02 01:16 UTC752Source
2026-12-01 01:55 UTC753Source
2026-11-30 01:12 UTC753Source
2026-11-29 01:11 UTC753Source
2026-11-28 01:11 UTC752Source
2026-11-27 01:12 UTC752Source
2026-11-26 01:14 UTC752Source
2026-11-25 04:22 UTC751Source
2026-11-24 05:27 UTC751Source
2026-11-23 04:57 UTC750Source
2026-11-22 09:32 UTC750Source
2026-11-21 07:19 UTC750Source
2026-11-20 06:26 UTC750Source
2026-11-19 04:31 UTC750Source
2026-11-18 12:56 UTC750Source
2026-11-17 06:16 UTC749Source
2026-11-16 04:42 UTC749Source
2026-11-15 05:41 UTC749Source
2026-11-14 03:29 UTC748Source
2026-11-13 04:22 UTC748Source
2026-11-12 01:46 UTC748Source
2026-11-11 02:10 UTC748Source
2026-11-10 01:22 UTC748Source
2026-11-09 01:14 UTC747Source
2026-11-08 01:13 UTC747Source
2026-11-07 15:14 UTC747Source
2026-11-06 12:42 UTC746Source

Add a badge to your README

For project authors: paste it into the README. It updates daily and links back here.

Badge preview
[![github.day](https://github.day/badge/flash-sparse-attention-hkustdial.svg)](https://github.day/resources/flash-sparse-attention-hkustdial?ref=badge)

Share this project

Share on X

First collected 2026-11-06Measured at 2026-12-02 01:16 UTCSourceLicense source

Compiled from public project information; not independently tested. · Repository Stars, not unique users · License tiers are derived from metadata. Check obligations for your use; unknown does not mean prohibited.