flash-linear-attention
fla-org/flash-linear-attention
Efficient implementations for emerging model architectures
Overview
Flash Linear Attention provides hardware-efficient building blocks, training-ready layers, and components for modern sequence models. It supports a variety of attention mechanisms and hybrid LLM architectures.
Categories
Tags
Similar tools
ollama
ollama/ollama
Get up and running with Kimi-K2.6, GLM-5.1, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
prompts.chat
f/prompts.chat
The world's largest open-source prompt library for AI
transformers
huggingface/transformers
π€ Transformers: the model-definition framework for state-of-the-art machine learning models
open-webui
open-webui/open-webui
User-friendly AI Interface (Supports Ollama, OpenAI API, ...)
awesome-llm-apps
Shubhamsaboo/awesome-llm-apps
100+ AI Agent & RAG apps you can actually run β clone, customize, ship.
LLMs-from-scratch
rasbt/LLMs-from-scratch
Implement a ChatGPT-like LLM in PyTorch from scratch
Install
pip install flash-linear-attentionREADME
π₯ Flash Linear Attention brings together hardware-efficient building blocks, training-ready layers, and components for modern sequence models, spanning linear attention, sparse attention, state space models, and hybrid LLM architectures. All implementations are platform-agnostic and verified on NVIDIA, AMD, and Intel hardware. Pull requests are welcome!
- News
- Models
- Installation
- Usage
- Token Mixing
- Fused Modules
- Generation
- Hybrid Models
- Training
- Evaluation
- Benchmarks
- Citation
- Star History
- Acknowledgements
News
- [2026-07] π Add FlashQLA backend for Gated DeltaNet.
- [2026-06] π Add Parallax implementation to
fla(paper). - [2026-06] π§± Add Wall attention implementation to
fla(blog). - [2026-05] πͺ Add Gated DeltaNet 2 (GDN-2) implementation to
fla(paper). - [2026-05] π¦
Add Raven implementation to
fla(repo). - [2026-05] π Add YOCO (You Only Cache Once) implementation to
fla. - [2026-05] β‘ Add fused AttnRes support to
fla(paper). - [2026-04] π Add Mamba3 implementation to
fla(paper). - [2026-04] π§± Add MoBA (Mixture of Block Attention) implementation to
fla, with FlashMoBA backend support. - [2026-04] π§± Add TileLang backend support for selected kernels.
- [2026-04] π― Add GPT-OSS-style attention sink support to
fla's attention kernels. - [2026-03] π Add Context Parallel support for KDA and GDN, enabling efficient distributed training across sequence dimension.
- [2025-10] π Add Kimi Delta Attention (KDA) implementation to
fla(paper). - [2025-09] π² Add DeltaFormer implementation to
fla(paper). - [2025-09] π» Thrilled to announce that GDN has been integrated into Qwen3-Next. Check out their blog post for more info!
- [2025-08] π² Add Log-Linear Attention implementation to
fla(paper). - [2025-08] π Add MoM implementation to
fla(paper).
Older news
- [2025-07] π³ Add MLA implementation to
fla(paper). - [2025-07] π£οΈ Add PaTH Attention implementation to
fla(paper). - [2025-06] π Add MesaNet implementation to
fla(paper). - [2025-06] π Add Comba implementation to
fla(paper). - [2025-05] π Add Rodimus* implementation to
fla(paper). - [2025-04] π Add DeltaProduct implementation to
fla(paper). - [2025-04] π Add FoX implementation to
fla(paper). - [2025-03]
We have changed the defaultTheinitializer_rangeto the magic π³ 0.006initializer_rangewas rolled back to the default value of 0.02. For actual training, we recommend trying both. - [2025-02] π³ Add NSA implementations to
fla. See kernels [he