github Dao-AILab/flash-attention fa4-v4.0.0.beta42

pre-releaseone hour ago

What's Changed

  • [CuTe, SM120] Tune BF16/FP16 forward default tiles by @joeyearsley in #2998
  • [CuTe, SM80] Skip KV blocks left of the local window in forward by @xm-gui in #2954
  • [FA4][Bugfix] Base ragged TMA stores one extent before the tensor, not 2**30 rows by @drisspg in #3218
  • [CuTe, SM80/SM120] Support learnable_sink (attention sinks) on Ampere/Ada/consumer-Blackwell by @arbi-dev in #2752
  • [CuTe, SM120] Fix dK/dV offsets in packed varlen GQA/MQA backward by @zhang-keliang in #2814
  • [CuTe] Move off CuTe DSL names deprecated in 4.7-4.9 by @abcdabcd987 in #3205
  • [CuTe, SM100] Zero-fill padded Q/dO loads in varlen backward by @YYuJLiu in #3135
  • [CuTe, SM80] For FlashAttention 4, extend paged KV support from SM90 to SM80/SM120 by @xrq-phys in #3060
  • [CuTe, SM80/SM120] Recompute fastdiv_mods per sequence for varlen aux_tensors in the forward kernel by @ToRaSuCkA in #2959
  • [CuTe, SM90] Bwd: don't treat GQA as Pack-GQA when applying score_mod by @yunweili3 in #3041
  • [CuTe, SM90] Fwd: zero O for seqused_k == 0 with paged TMA KV by @yunweili3 in #3042
  • [CuTe][SM90][BUGFIX] Fix varlen block-sparse indexing for non-128 KV tiles by @Muuuchen in #3077
  • Normalize unbounded attention windows independently by @adityuhkapoor in #3090
  • [CuTe, SM100] Plan decode split counts for the sliding window, not the KV capacity by @devanshi-code18 in #3241
  • [CuTe, SM90] Fit backward tile to the block-sparse block size by @liuyang-05 in #3051
  • [CuTe, SM90] Fix wrong dQ in backward for head_dims padded to a non-multiple of 32 by @arvin-chou in #2896
  • [CuTe, Bwd, SM100] Use the V head dim for the dV accumulation staging width by @joanvelja in #3110
  • [CuTe, SM100] Cover hd64 in the varlen backward NaN-padding regression by @YYuJLiu in #3229
  • [FA2] GQA decode: run the split-KV kernel for head dim <= 128 (4–49 % less decode kernel time on A100/H100/B200) by @yekerr in #3211
  • [AMD ROCm] Add gfx1250 support to CK backend by @rocking5566 in #3199

New Contributors

Full Changelog: fa4-v4.0.0.beta41...fa4-v4.0.0.beta42

Don't miss a new flash-attention release

NewReleases is sending notifications on new releases.