This release is a pre-release and may not be stable for production use.
FlashAttention-4 (CuTeDSL)
FlashAttention-4 is a CuTeDSL-based implementation of FlashAttention for Hopper and Blackwell GPUs.
Installation
pip install flash-attn-4
If you're on CUDA 13, install with the cu13 extra for best performance:
pip install "flash-attn-4[cu13]"
Usage
from flash_attn.cute import flash_attn_func, flash_attn_varlen_func
out = flash_attn_func(q, k, v, causal=True)
Development
git clone https://github.com/Dao-AILab/flash-attention.git
cd flash-attention
pip install -e "flash_attn/cute[dev]" # CUDA 12.x
pip install -e "flash_attn/cute[dev,cu13]" # CUDA 13.x (e.g. B200)
pytest tests/cute/
Metadata
Release files for flash-attn-4 4.0.0b35
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| flash_attn_4-4.0.0b35.tar.gz | 481.5 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| flash_attn_4-4.0.0b35-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 991.0 kB
Release files / flash_attn_4-4.0.0b35.tar.gz
| Download URL | flash_attn_4-4.0.0b35.tar.gz |
|---|---|
| Size | 481.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
45c48469c851c54052f0004c9679b19ea7d70423960788a5be570a75f189e0ab
|
|
BLAKE2b-256 checksum How to use checksums |
dc048749f4e48bc7f30a502fcd93985792281da2170b676a1dd641ed0880c5b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logRelease files / flash_attn_4-4.0.0b35-py3-none-any.whl
| Download URL | flash_attn_4-4.0.0b35-py3-none-any.whl |
|---|---|
| Size | 509.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6df9a60fab0ca55c3f9c35244e794411afeff565100955e40db6c73e72848f94
|
|
BLAKE2b-256 checksum How to use checksums |
bc46020652846c4028f4ec0af1d0f8f9ef1067a2813b9539fa666f4190ba86aa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logSecurity for flash-attn-4 4.0.0b35
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for flash_attn_4-4.0.0b35.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 14, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.