flash-attention vs mamba
flash-attention and mamba share 5 technologies: apache-tvm-ffi, quack-kernels, torch, einops, and triton. Both are written in Python.
What they share and what sets them apart
Dao-AILab
flash-attention
Fast and memory-efficient exact attention
Python25.3kRead on November 16, 2026, at commit 328dd7bWhat is flash-attention built with?Only in flash-attention
NVIDIA
- torch-c-dlpack-ext
- triton-windows
In common
apache-tvm-ffi
- quack-kernels
- torch
- einops
- triton
state-spaces
mamba
Mamba SSM architecture
Python19kRead on November 6, 2026, at commit e9594ceWhat is mamba built with?Only in mamba
Side by side
flash-attentionmamba
SizeLines written by people and agents, without generated ones; code files, without tests.
flash-attention139,521 lines written150 code files
mamba28,235 lines written43 code files
Who writes itA commit counts as AI's when it carries its signature: a Co-Authored-By line, its author name or the merge of its branch.
flash-attention1.7% of its commits signed by AIWith Claude Code, Cursor, and GitHub Copilot
mamba0.5% of its commits signed by AIWith GitHub Copilot
ActivityFrom GitHub and its history, on the day SeeRepo read it.
flash-attentionLast push November 16, 20261,613 commits25,304 stars
mambaLast push July 22, 2026219 commits18,976 stars
TestsThe files that test the code, and the share of code files a test imports.
flash-attention80 test files32% of its code files have a test that imports them
mamba11 test files51.2% of its code files have a test that imports them
Frequently asked questions
Which is bigger, flash-attention or mamba?
flash-attention, with 139,521 lines written; mamba has 28,235.
The proof: Dao-AILab/flash-attention's code at commit 328dd7b
Which has more GitHub stars, flash-attention or mamba?
flash-attention, with 25,304 stars; mamba has 18,976.
The proof: Dao-AILab/flash-attention on GitHub
Which has more tests, flash-attention or mamba?
flash-attention, with 80 test files; mamba has 11.
The proof: Dao-AILab/flash-attention's code at commit 328dd7b
Which was updated more recently, flash-attention or mamba?
flash-attention: its last push was on November 16, 2026, and mamba's on July 22, 2026.
Which has more commits signed by AI, flash-attention or mamba?
flash-attention: an AI signed 1.7% of its commits, with Claude Code, Cursor, and GitHub Copilot; in mamba, 0.5%.
The proof: the commits each tool signed in Dao-AILab/flash-attention
See inside your code, today.
Paste your repo and see it drawn, part by part: a medium one in under a minute.
Free, no account.Private repo? Sign in with GitHub

