๐ฆReddit r/LocalLLaMAโขStalecollected in 4h
FlashKDA Kernels 2.22x Faster for Kimi Attention

๐ก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.
๐ 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
| Feature | FlashKDA (Moonshot) | FlashAttention-3 (Tri Dao/Stanford) | Triton Linear Attention |
|---|---|---|---|
| Primary Focus | Kimi Delta Attention | Standard Softmax Attention | Generic Linear Attention |
| Hardware Target | H20 (Hopper) | H100/H200 (Hopper) | Multi-GPU/General |
| Implementation | CUTLASS C++ | CUTLASS/Triton | Triton |
| License | MIT | BSD-3 | BSD-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 โ