Fast and memory-efficient exact attention
2
stars
1,620
commits
Python
primary language
Sep 5, 2026
updated
Source fork of Dao-AILab/flash-attention. Installation, build prerequisites, CUDA and ROCm paths, API usage, benchmarks, tests, and citations are documented in the upstream repository; this file only lists pointers.
Pre-compiled Windows .whl binaries for various PyTorch and CUDA versions (including the latest split_align architectures for Blackwell/Ampere/Hopper) are officially published at:
👉 Hugging Face: Flash-Attention-2_for_Windows
You do not need to build from source (which can take several hours). Simply locate the wheel that matches your environment (Python, PyTorch, CUDA version) from the Hugging Face repository and install it directly via pip:
pip install https://huggingface.co/ussoewwin/Flash-Attention-2_for_Windows/resolve/main/<your_matching_wheel_file>.whl
⚠️ Important Note for v1.6 (fa2.9.2) users:
If your chosen wheel filename contains -blackwell- or -legacy- just before the -cp313 portion, you must rename the first hyphen to a period (.) before installing, or pip will throw an Invalid build number error due to strict PEP 427 filename rules.
...abiTRUE-blackwell-cp...whl...abiTRUE.blackwell-cp...whl(This filename issue has been corrected in the repository's build scripts for future releases).
Python
71.2%
C++
21.4%
Cuda
7.2%
Fast and memory-efficient exact attention
2
stars
1,620
commits
Python
primary language
Sep 5, 2026
updated
Source fork of Dao-AILab/flash-attention. Installation, build prerequisites, CUDA and ROCm paths, API usage, benchmarks, tests, and citations are documented in the upstream repository; this file only lists pointers.
Pre-compiled Windows .whl binaries for various PyTorch and CUDA versions (including the latest split_align architectures for Blackwell/Ampere/Hopper) are officially published at:
👉 Hugging Face: Flash-Attention-2_for_Windows
You do not need to build from source (which can take several hours). Simply locate the wheel that matches your environment (Python, PyTorch, CUDA version) from the Hugging Face repository and install it directly via pip:
pip install https://huggingface.co/ussoewwin/Flash-Attention-2_for_Windows/resolve/main/<your_matching_wheel_file>.whl
⚠️ Important Note for v1.6 (fa2.9.2) users:
If your chosen wheel filename contains -blackwell- or -legacy- just before the -cp313 portion, you must rename the first hyphen to a period (.) before installing, or pip will throw an Invalid build number error due to strict PEP 427 filename rules.
...abiTRUE-blackwell-cp...whl...abiTRUE.blackwell-cp...whl(This filename issue has been corrected in the repository's build scripts for future releases).
Python
71.2%
C++
21.4%
Cuda
7.2%