Downloads · 30 days
0
wxd11011/flash-attn-windows-blackwell
flash-attn-windows-blackwell is a other model from wxd11011. Use it for the other task on the model card, and read the license before you ship it in a product. It is set up for flash-attn. The card lists the license as bsd-3-clause.
Prebuilt flash-attn wheels for Windows, targeting NVIDIA RTX 50 series (Blackwell / SM 12.0) GPUs, compiled with CUDA 13.0.
Downloads · 30 days
0
Access
Public
Updated Aug 3, 2026
Repo size
755 MB
Likes
0
Public
Click a slice to open those files.
.whl755 MB · 100%
From the Hugging Face model README
Prebuilt flash-attn wheels for Windows, targeting NVIDIA RTX 50 series (Blackwell / SM 12.0) GPUs, compiled with CUDA 13.0.
🇨🇳 国内镜像 / Also on ModelScope: https://www.modelscope.cn/models/wxd11011/flash-attn-windows-blackwell
This repository fills that gap by compiling from source, making it ideal for ComfyUI / Stable Diffusion / Flux / LLM inference users who want to download and use directly without setting up a build environment.
Two versions are provided — choose based on your installed PyTorch and Python:
| Version | flash-attn | Python | PyTorch | PTX | Filename | SHA256 |
|---|---|---|---|---|---|---|
| 🅰️ | 2.8.4 | 3.13 | 2.13.0+cu130 | ✅ | flash_attn-2.8.4+...cp313...whl | 5ed057fd53fbd870fedb7f309b0f1624196e47ce237311a05c46b112bf089744 |
| 🅱️ | 2.8.3 | 3.12 | 2.9.1+cu130 | ❌ | flash_attn-2.8.3+...cp312...whl | c3e10b874565b64e18919c90e2ab9af5f7bc9d97296fc052991c2686533487a5 |
Wheels are version-sensitive. Check your environment first:
python -c "import torch, sys; print('Python:', sys.version); print('PyTorch:', torch.__version__, '| CUDA:', torch.version.cuda)"
Python 3.13 + PyTorch 2.13.0+cu130 → Version 🅰️ (flash-attn 2.8.4)Python 3.12 + PyTorch 2.9.1+cu130 → Version 🅱️ (flash-attn 2.8.3)# Version 🅰️
huggingface-cli download YOUR_USERNAME/flash-attn-windows-blackwell \
flash_attn-2.8.4+cu13torch2.13cxx11abiTRUE-cp313-cp313-win_amd64.whl \
--local-dir ./
# Version 🅱️
huggingface-cli download YOUR_USERNAME/flash-attn-windows-blackwell \
flash_attn-2.8.3+cu13torch2.9.1cxx11abiTRUE-cp312-cp312-win_amd64.whl \
--local-dir ./
from huggingface_hub import hf_hub_download
path = hf_hub_download(
repo_id="YOUR_USERNAME/flash-attn-windows-blackwell",
filename="flash_attn-2.8.4+cu13torch2.13cxx11abiTRUE-cp313-cp313-win_amd64.whl"
)
print(path)
Click the "Files and versions" tab above, then click the download icon next to the .whl file.
pip install flash_attn-2.8.4+cu13torch2.13cxx11abiTRUE-cp313-cp313-win_amd64.whl
ComfyUI portable users, use the embedded Python path:
d:\your_path\ComfyUI_windows_portable_nvidia\python_embeded\python.exe -m pip install the_wheel_file.whl
import torch
from flash_attn import flash_attn_func
import flash_attn
def test_flash_attn():
print(f"flash_attn version: {flash_attn.__version__}")
if not torch.cuda.is_available():
print("❌ CUDA is not available. Flash Attention requires GPU support.")
return False
# Small dimensions to avoid OOM
batch_size, seq_len, n_heads, head_dim = 2, 8, 4, 32
dtype = torch.float16
device = "cuda"
# Random q, k, v with gradients
q = torch.randn((batch_size, seq_len, n_heads, head_dim), dtype=dtype, device=device, requires_grad=True)
k = torch.randn((batch_size, seq_len, n_heads, head_dim), dtype=dtype, device=device, requires_grad=True)
v = torch.randn((batch_size, seq_len, n_heads, head_dim), dtype=dtype, device=device, requires_grad=True)
# Forward pass
out = flash_attn_func(q, k, v, causal=False)
# Check output shape
expected = (batch_size, seq_len, n_heads, head_dim)
if out.shape != expected:
print(f"❌ Output shape mismatch: {out.shape} != {expected}")
return False
# Backward pass (test gradients)
loss = out.sum()
loss.backward()
if q.grad is None or k.grad is None or v.grad is None:
print("❌ Gradient computation failed")
return False
print("✅ Flash Attention test passed!")
return True
if __name__ == "__main__":
test_flash_attn()
5 architectures × 96 kernels (480 cubins) + 96 sm_120 PTX:
| Arch | GPU | Code Type |
|---|---|---|
| sm_80 | A100, RTX 3090 | SASS |
| sm_90 | H100, H200 | SASS |
| sm_100 | B100, B200 (datacenter) | SASS |
| sm_110 | Blackwell variant | SASS |
| sm_120 | RTX 5060/5070/5080/5090 | SASS + PTX ✅ |
4 architectures × 72 kernels (288 cubins), no PTX:
| Arch | GPU | Code Type |
|---|---|---|
| sm_80 | A100, RTX 3090 | SASS |
| sm_90 | H100, H200 | SASS |
| sm_100 | B100, B200 (datacenter) | SASS |
| sm_120 | RTX 5060/5070/5080/5090 | SASS |
DLL load failed, ensure CUDA 13.0 runtime and VC++ 2022 redistributable are installedgloo backend (NCCL not supported)This is a compiled artifact of flash-attention, licensed under the BSD 3-Clause "New" or "Revised" License.