#306306th of 433 in ML frameworks and libraries

flashkda

CUTLASS-based CUDA kernels for Kimi Delta Attention forward pass

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
1.3k
License
MIT
Last commit
Nov 2026
Language
Cuda
Stars, last 29 weeks+893
6 May 2026: 411 stars13 May 2026: 417 stars20 May 2026: 422 stars27 May 2026: 439 stars3 Jun 2026: 440 stars10 Jun 2026: 442 stars17 Jun 2026: 443 stars24 Jun 2026: 446 stars1 Jul 2026: 449 stars8 Jul 2026: 449 stars15 Jul 2026: 449 stars22 Jul 2026: 465 stars29 Jul 2026: 1,041 stars5 Aug 2026: 1,157 stars12 Aug 2026: 1,199 stars19 Aug 2026: 1,217 stars26 Aug 2026: 1,225 stars2 Sept 2026: 1,240 stars9 Sept 2026: 1,247 stars16 Sept 2026: 1,251 stars23 Sept 2026: 1,259 stars30 Sept 2026: 1,265 stars7 Oct 2026: 1,269 stars14 Oct 2026: 1,280 stars21 Oct 2026: 1,286 stars28 Oct 2026: 1,291 stars4 Nov 2026: 1,296 stars11 Nov 2026: 1,297 stars18 Nov 2026: 1,299 stars25 Nov 2026: 1,304 stars

411 on 6 May 20261,304 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

FlashKDA provides CUDA kernels, built on CUTLASS, for the forward pass of Kimi Delta Attention (KDA), exposed as flash_kda.fwd in PyTorch. It takes bf16 inputs, supports optional bf16 or fp32 recurrent state and variable-length batching via cu_seqlens, and requires K = V = 128. Once installed, it is auto-dispatched from flash-linear-attention's chunk_kda under torch.inference_mode(), with a Triton fallback.

Who it is for: Engineers running KDA-based models on Hopper or newer NVIDIA GPUs

Strengths

  • Auto-dispatched from flash-linear-attention chunk_kda; FLA_FLASH_KDA=0 falls back to Triton
  • Supports variable-length batches via cu_seqlens and optional bf16 or fp32 state
  • Tests check output against a torch reference and flash-linear-attention
  • Ships an H20 benchmark file and a design deep-dive document

Weaknesses

  • Forward pass only; no backward kernel is documented
  • Hard-coded to K = V = 128
  • Requires an SM90 or newer GPU and CUDA 12.9+
  • Built from source with a git submodule; no release published

What it needs

  • GPU required
  • Needs CUDA 12.9+, PyTorch 2.4+, CUTLASS, flash-linear-attention >= 0.5.0 (for FLA backend)
  • Models: Kimi Delta Attention (KDA)

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#304titans-pytorchUnofficial PyTorch implementation of the Titans neural memory architecture Live demo ↗ (opens in a new tab)2k starsMIT42 out of 100
#305opentsnePython t-SNE library with FIt-SNE and Barnes-Hut for large datasets1.6k starsBSD-3-Clause42 out of 100
#307deepchemPython library for deep learning on molecules, materials and biological data7.2k starsMIT41 out of 100
#308jittorPython deep learning framework that JIT-compiles meta-operators to C++ and CUDA3.2k starsApache-2.041 out of 100
#309graphicsDifferentiable graphics and geometry layers for TensorFlow, with a 3D TensorBoard plugin2.8k starsApache-2.041 out of 100