#1212th of 433 in ML frameworks and libraries
flash-attention
Fused GPU kernels for exact attention in PyTorch, FlashAttention 2 through 4
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts flash-attention on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.flash-attention is on your watch list. Its new releases and problems show there.
- Stars
- 25.4k
- License
- BSD-3-Clause
- Last commit
- Nov 2026
- Last release
- Oct 2026
- Language
- Python
22,733 on 25 Mar 202625,357 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
Official implementation of FlashAttention and FlashAttention-2 as CUDA and ROCm kernels exposed through a PyTorch Python API (flash_attn_func, varlen, and KV-cache variants). The repo also ships FlashAttention-3 (beta, Hopper) and FlashAttention-4 (CuTeDSL, Hopper and Blackwell). Supports causal masks, sliding window, ALiBi, MQA/GQA, and paged KV cache.
Who it is for: ML engineers writing or optimizing transformer training and inference code
Strengths
- Official reference implementation with papers for FA1, FA2 and FA3
- Covers NVIDIA (Ampere, Ada, Hopper, Blackwell via FA4) and AMD ROCm (CK and Triton backends)
- Decoding-oriented API: in-place KV cache update, rotary, paged cache, GQA/MQA
- Head dimensions up to 256 with fp16 and bf16; FP8 forward in FA3
Weaknesses
- Source build is slow without ninja: about 2h versus 3-5 minutes on 64 cores
- FA3 is a beta, requires H100/H800 and CUDA 12.3 or newer
- Linux only; Windows support is untested and unconfirmed
- flash_attn_with_kvcache has no backward pass; Turing GPUs need a separate repo
What it needs
- GPU required
- Needs PyTorch 2.2+, CUDA 12.0+ or ROCm 6.0+, ninja, packaging, psutil
- Models: fp16, bf16, fp8 (FA3 forward), fp32 (ROCm Triton)
What changed
- v2.8.3.post2 ↗ (opens in a new tab)Security fix
CVE-2026-31253, GHSA-7G5W-PQ96-8C5W, CVE-2026-62239, GHSA-W9R7-4GWR-J959. “Backport #2622: torch.load(..., weightsonly=True) in flashattn/utils/distributed.py and flashattn/models (CVE-2026-31253 / GHSA-7g5w-pq96-8c5w). #2974”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #10 | onnxOpen model format and operator spec for exchanging ML models between frameworks | 89 out of 100 |
| #11 | diffusersPyTorch library of diffusion pipelines and schedulers for image generation | 88 out of 100 |
| #13 | mediapipeOn-device ML task APIs and a C++ pipeline framework for mobile, web and desktop | 87 out of 100 |
| #14 | netronViewer for neural network and machine learning model graphs | 87 out of 100 |
| #15 | deepfacePython library for face verification, search and age/gender/emotion analysis | 87 out of 100 |