What it does
Flash Linear Attention is a library of efficient, ready-to-train building blocks for modern AI sequence models, including linear attention, sparse attention and state space models.
It provides hardware-efficient implementations that researchers can drop into their own models.
The implementations are meant to work across different hardware and are verified on common graphics cards.
Who it's for
AI researchers and engineers experimenting with new model architectures.
Can I use it without coding?
Developers only. It is a research code library used by writing code, and needs suitable hardware. New to this? Start here.
Can I run it?
- Cost
- FreeNothing to pay or sign up for.
- Runs on
- Linux, Server
- Computer
- Works best on a powerful computer or one with a graphics card (GPU)
- Privacy
- Runs on your own device: your data stays with you
- API key
- Not needed
Try it
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?
Before you install
- Only download from the official GitHub page. Copies with similar names exist for many popular projects.
- License (MIT): Very permissive: free to use, change and share, including for business.
- More on staying safe