Trainable fast and memory-efficient sparse attention
Star History
Add Live Star History & Verified Badges to README.md
Keep your repository README looking professional and dynamic. As our continuous crawler records new stars, these official SVG badges update in real time with zero maintenance.
Renders your high-resolution star trajectory chart right inside your GitHub README or project docs.
[](https://githubrepo.cloud/repo/HKUSTDial/flash-sparse-attention?utm_source=readme_chart)
Compact Shields-style badges for your README header. Shows real-time stars and global ranking.
[](https://githubrepo.cloud/repo/HKUSTDial/flash-sparse-attention?utm_source=readme_badge) [](https://githubrepo.cloud/repo/HKUSTDial/flash-sparse-attention?utm_source=readme_badge) [](https://githubrepo.cloud/repo/HKUSTDial/flash-sparse-attention?utm_source=readme_badge)
Momentum
+19
STARS · LAST 30 DAYS
1
PER DAY
#825
MOST-STARRED Python
| Window | 7 days | 30 days | 90 days |
|---|---|---|---|
| Stars gained | +7 | +19 | +90 |
| Per day | 1 | 1 | 1 |
| Forks gained | +1 | +3 | +10 |
flash-sparse-attention gained 19 stars in the last 30 days, about 1 a day, and now has 766. It is about 1 year old and has averaged roughly 766 stars a year. It ranks #825 among Python repositories and #5,947 across all languages on GitHubRepo.
Trending Record
3
DAYS ON TRENDING
#6416
BEST RANK
Oct 7, 2026
FIRST APPEARANCE
Active
STATUS TODAY
flash-sparse-attention has maintained a continuous presence across global trending indexes, peaking at #6416. Below is the 30-day activity profile:
💡 Overview
flash-sparse-attention is an open-source project written in Python: Trainable fast and memory-efficient sparse attention.
Engineered for speed, consistency, and developer ease, it solves common hurdles in flash-attention, flash-sparse-attention, kernel. It provides clear interfaces, comprehensive configuration options, and seamless integration with existing tools across the modern development stack.
⚡ Key Features
Optimized execution pipeline written in Python for predictable speed.
Zero-friction configuration with comprehensive sensible defaults out of the box.
Cross-platform runtime support across Linux, macOS, and Windows environments.
Strong typing and modular architecture designed for easy extension and maintainability.
Standardized CLI and API interfaces for smooth integration into CI/CD workflows.
Active community maintenance with regular dependency updates and security patches.
📥 Installation
$ pip install flash-sparse-attention
⚙ System Requirements
Platforms
- • macOS
- • Linux
- • Windows
Runtime & Dependencies
Python >= 3.9, pip, virtualenv
Architecture
x86_64, ARM64 (Apple Silicon & Graviton)
🧠 How It Works
flash-sparse-attention coordinates its core functionality through a modular Python pipeline. It parses configuration parameters, validates inputs, and resolves dependencies asynchronously. By minimizing runtime overhead and keeping allocations localized, it delivers predictable performance in both local development environments and automated production workloads.
🎯 Production Use Cases
Production System Integration
Embed flash-sparse-attention into Python backend services to handle core application logic.
CI/CD Automated Pipelines
Run automated validation, builds, and integration suites during deployments.
Developer Tooling & Workflows
Accelerate developer onboarding with pre-configured project utilities.
Open Source Extension
Fork and customize internal modules under the repository's open BSD-3-Clause license.
🚀 Getting Started
Install flash-sparse-attention using your package manager: `pip install flash-sparse-attention`
Initialize your project workspace or configuration file for flash-sparse-attention.
Import flash-sparse-attention into your codebase or invoke it directly from your terminal.
Execute your test suite or run `flash-sparse-attention --help` to verify successful setup.
👍 Strengths
⚠️ Considerations
⇄ Alternatives & Direct Competitors
👥 Who Should Use This
Developers and engineering teams building with Python, seeking reliable, tested, and actively maintained tooling for production workloads.
🏆 Nearby in the Rankings
HKUSTDial/flash-sparse-attention is currently ranked #5,947 by stars across every repository tracked on GitHubRepo. These are adjacent projects:
| Rank | Repository | Language | Stars | Action |
|---|---|---|---|---|
| #5,942 | BaseXdb/basex | Java | ★ 768 | Compare ↗ |
| #5,942 | getsentry/sentry-dotnet | C# | ★ 768 | Compare ↗ |
| #5,944 | nextcloud/news-android | Java | ★ 767 | Compare ↗ |
| #5,944 | wp-media/wp-rocket | PHP | ★ 767 | Compare ↗ |
| #5,944 | bpfman/bpfman | Go | ★ 767 | Compare ↗ |
| #5,947 | HKUSTDial/flash-sparse-attention This Project | Python | ★ 766 | |
| #5,947 | igvteam/igv | Java | ★ 766 | Compare ↗ |
| #5,947 | docker-php/docker-php | PHP | ★ 766 | Compare ↗ |
| #5,947 | Azure/azure-functions-durable-extension | C# | ★ 766 | Compare ↗ |
| #5,947 | esp-rs/esp-idf | Rust | ★ 766 | Compare ↗ |
| #5,952 | weiran/Hackers | Swift | ★ 765 | Compare ↗ |
Frequently Asked Questions
What does flash-sparse-attention do? +
Trainable fast and memory-efficient sparse attention
What language is flash-sparse-attention written in? +
The primary language is Python. Topics include: flash-attention, flash-sparse-attention, kernel, sparse-attention, triton.
Is flash-sparse-attention actively maintained? +
Yes, the last recorded push was on Oct 7, 2026 with 3 open issues being tracked.
How many stars does flash-sparse-attention have? +
flash-sparse-attention has 766 stars and 54 forks on GitHub.
How does flash-sparse-attention rank among GitHub repositories? +
With 766 stars, HKUSTDial/flash-sparse-attention is ranked #5,947 globally across all repositories tracked on GitHubRepo and #825 among Python projects.
What license is flash-sparse-attention distributed under? +
The repository reports a BSD-3-Clause license. Always verify the repository LICENSE file for legal terms.