SourceStalecollected in 4h

FlashKDA Kernels 2.22x Faster for Kimi Attention

FlashKDA Kernels 2.22x Faster for Kimi Attention
PostLinkedIn
🦙Read original on Reddit r/LocalLLaMA
#cuda-kernels#linear-attention#hopper-gpu#open-sourceflashkdaflashkdakimi-delta-attentionmoonshotaicutlass

💡2.22x kernel speedup for Kimi attention on H20—open-source now!

⚡ 30-Second TL;DR

What Changed

Up to 2.22x speedup on H20 for variable length sequences

Why It Matters

Boosts efficiency for linear attention models on Hopper GPUs, critical for training and inference scaling in KDA-based LLMs.

What To Do Next

Install FlashKDA from GitHub and swap as backend in flash-linear-attention for KDA models.

Who should care:Developers & AI Engineers

Key Points

  • Up to 2.22x speedup on H20 for variable length sequences
  • CUTLASS implementation tuned for Hopper memory patterns
  • MIT licensed, plugs into flash-linear-attention via PR
  • Forward pass only, no backward yet

🧠 Deep Insight

AI-generated analysis for this event — not the original article.

🔑 Enhanced Key Takeaways

  • FlashKDA specifically targets the Kimi Delta Attention mechanism, which is Moonshot AI's proprietary variant of linear attention designed to handle extremely long context windows with reduced memory complexity.
  • The implementation leverages Hopper-specific TMA (Tensor Memory Accelerator) features, which are critical for achieving the reported speedups on H20 hardware by optimizing asynchronous data movement between global and shared memory.
  • The integration into the flash-linear-attention library suggests a strategic move by Moonshot to standardize their proprietary attention kernels within the broader open-source ecosystem, potentially aiming to become the default backend for linear attention research.
📊 Competitor Analysis▸ Show
FeatureFlashKDA (Moonshot)FlashAttention-3 (Tri Dao/Stanford)Triton Linear Attention
Primary FocusKimi Delta AttentionStandard Softmax AttentionGeneric Linear Attention
Hardware TargetH20 (Hopper)H100/H200 (Hopper)Multi-GPU/General
ImplementationCUTLASS C++CUTLASS/TritonTriton
LicenseMITBSD-3BSD-3

🛠️ Technical Deep Dive

  • Architecture: Optimized for Kimi Delta Attention, which utilizes a kernel-fused approach to compute linear attention states without materializing the full N x N attention matrix.
  • Memory Management: Utilizes TMA (Tensor Memory Accelerator) to overlap memory loads with compute, minimizing latency stalls on H20 GPUs.
  • Constraints: Requires SM90+ architecture (Hopper) due to heavy reliance on specific hardware-level instructions for asynchronous copy and barrier synchronization.
  • Integration: Operates as a plug-in backend for the flash-linear-attention library, allowing users to swap the default Triton implementation for the optimized CUTLASS kernel via a simple configuration flag.

🔮 Future ImplicationsAI analysis grounded in cited sources

FlashKDA will become the standard backend for linear attention on H20 clusters.
The significant performance delta over Triton on H20 hardware provides a strong incentive for developers to adopt this kernel for long-context inference tasks.
Moonshot will release a backward pass implementation within the next two quarters.
The current limitation to forward-only pass restricts the library's utility for training, which is a critical requirement for broader adoption in the research community.

Timeline

2023-10
Moonshot AI releases Kimi, their first long-context LLM.
2025-06
Moonshot AI begins contributing to the flash-linear-attention open-source project.
2026-04
Moonshot open-sources FlashKDA kernels for Kimi Delta Attention.
📰

Weekly AI Recap

Read this week's curated digest of top AI events →

👉Related Updates

AI-curated news aggregator. All content rights belong to original publishers.
Original source: Reddit r/LocalLLaMA

This is a summary, not the original. Read the source, or get the weekly briefing.

The weekly digest

One email a week. Unsubscribe anytime.