thu-ml/SpargeAttn
[ICML2025] SpargeAttention: A training-free sparse attention that accelerates any model inference. observed · 2026-08-28
Health v2 · maintenance only
51/100
- Activity 69
- Release rhythm 35
- Longevity 39
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 554
- days_rel: n/a
- days_push: 190
- n_releases_24m: 0
Adoption not part of the score
1033 stars · 102 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
SpargeAttn is the official implementation of a training-free sparse and quantized attention method that accelerates inference for language, image, and video models. It provides plug-and-play CUDA APIs (built on SageAttention2++) that skip matrix multiplications via a two-stage online filter while preserving end-to-end accuracy.
Use cases
- speed up LLM inference with sparse attention
- accelerate video generation model inference
- accelerate diffusion transformer image generation
- drop-in replacement for attention in PyTorch models
- apply custom block-sparse attention masks per head
- balance attention accuracy vs speed with topk sparsity
When to choose
- you need faster attention inference on NVIDIA GPUs without retraining
- you run long-context LLMs or video/image generation models where attention dominates latency
- you want a plug-and-play sparse attention kernel compatible with SageAttention
When to avoid
- you need CPU or non-CUDA hardware support
- you require exact dense attention outputs with no approximation
- your model uses very short sequences where sparsity gains are minimal
Facets
library · maturity active
machine-learning llm-inference gpu-computing sdk deep-learning large-language-models gpu-computing image-processing python sparse-attention quantization inference-acceleration training-free video-generation vision-transformer sageattention cuda-kernel icml2025 video gpu cuda
6 sources
- readme: https://github.com/thu-ml/SpargeAttn · fetched 2026-08-28 · 2f4e8c56e5b1
- homepage: https://arxiv.org/abs/2502.18137 · fetched 2026-08-29 · e0c8806e12ee
- site_page: https://info.arxiv.org/about/donate.html · fetched 2026-08-29 · cca9c3a11c56
- site_page: https://info.arxiv.org/about/ourmembers.html · fetched 2026-08-29 · 47cbc55ff1de
- site_page: https://info.arxiv.org/about · fetched 2026-08-29 · a1f16f915a9a
- site_page: https://info.arxiv.org/labs/index.html · fetched 2026-08-29 · b14a8d05a0ec
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| thu-ml/SpargeAttn | main | 51 |
For agents
markdown · JSON · MCP: product_card(name="thu-ml/SpargeAttn")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem