High performance cores for some Delta Attention
Developed by Moonshot AI, FlashKDA offers high-performance kernels for the Some Delta Attention mechanism. This CUDA-based technology aims to accelerate attention calculations in large language models.
What you get
- CUDA-based accelerated attention calculations
- Working efficiently on large language models
- Kernel structure optimized with CUTLASS
Installation
git clone https://github.com/MoonshotAI/FlashKDA.git flash-kda
cd flash-kda
git submodule update --init --recursive
pip install -v --no-build-isolation .FLASH_KDA_CUDA_ARCHS=all pip install -v --no-build-isolation .Running it
pip install -U flash-linear-attentionIf you don't write code
I want to speed up some Delta Attention calculations using the FlashKDA tool. How can I optimize my model's attention mechanism by using the chunk_kda function under torch.inference_mode(), integrated with the flash-linear-attention library? Please create an application example, taking into account the necessary parameters and hardware requirements I need to pay attention to.
Related dictionary terms
Links
TreScout did not build this tool · we found it in GitHub trends and wrote it up. This page describes the repository as of 2026-07-30: The star count and our text belong to that day, the repository may have changed since. Check the repository link for the current state. This page was machine-translated from the Turkish original · the Turkish version prevails.