Skip to main content

dew-flash-attn

FlashAttention-2 for JAX, built for Dew. It packages Dao-AILab's CUDA kernels through flash_attn_jax's XLA FFI port, both BSD-3, as a library with no Python ABI that registers two FFI targets with JAX.

There is one wheel for each CUDA major of your jax, for Linux x86_64 and any Python from 3.11:

pip install dew-flash-attn-cu12   # jax with jax-cuda12-plugin
pip install dew-flash-attn-cu13   # jax with jax-cuda13-plugin

With it installed, Dew's attention_impl="auto" runs FlashAttention-2 on an A100 (sm80) for calls without a window, mask, bias or softcap and with heads up to 256 wide. attention_impl="flash" asks for it on any sm8x GPU.

The kernels are compiled for sm80, which every compute capability 8.x runs.

Called directly:

from dew_flash_attn import flash_mha

out = flash_mha(query, key, value, is_causal=True)  # [B, S, H, D], bf16 or fp16

Key heads may divide the query's (grouped-query attention). The backward pass is the kernel's own.

Metadata

Release files for dew-flash-attn-cu12 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for dew-flash-attn-cu12 0.1.0
File Interpreter ABI Platform
dew_flash_attn_cu12-0.1.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details

Release files / dew_flash_attn_cu12-0.1.0-py3-none-manylinux_2_28_x86_64.whl

Download URL dew_flash_attn_cu12-0.1.0-py3-none-manylinux_2_28_x86_64.whl
Size 29.7 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
35ca57d2d5998733f33bc1c96e007cb060950aec3ed3a5e4feaf527087e247f4
BLAKE2b-256 checksum
How to use checksums
34635befde98ddea778423cf128bd08690f06aa4d68d52d7a943e6d73a7316b9
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 10, 2026.

Transparency log

Release history Release notifications | RSS feed

0.3.3

1 release file

0.3.2

1 release file

0.3.1

1 release file

0.3.0

1 release file

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page