Skip to main content

Flash Attention CUTE (CUDA Template Engine) implementation

Project description

FlashAttention-4 (CuTeDSL)

FlashAttention-4 is a CuTeDSL-based implementation of FlashAttention for Hopper and Blackwell GPUs.

Installation

pip install flash-attn-4

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]"
pytest tests/cute/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tokenspeed_fa4-4.0.0.post20251110-py3-none-any.whl (227.1 kB view details)

Uploaded Python 3

File details

Details for the file tokenspeed_fa4-4.0.0.post20251110-py3-none-any.whl.

File metadata

File hashes

Hashes for tokenspeed_fa4-4.0.0.post20251110-py3-none-any.whl
Algorithm Hash digest
SHA256 44f639f127a53b7fce04cf9131e3f7c7125fbdafb2a3a77d858c549f3cd096d8
MD5 75253f578e77152bb9c7f0bfd3b6d9b8
BLAKE2b-256 76f0ca0afbe1238376fa4dc2f0802018a3beafae2704a94a081155cbfcf6953b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tokenspeed_fa4-4.0.0.post20251110-py3-none-any.whl:

Publisher: tokenspeed-fa4.yml on lightseekorg/tokenspeed-third-party

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page