flash-attention-minimal
github.com · Open source · Quiet
Minimal CUDA implementation of the Flash Attention forward pass
- Learning & reference
- Open source
- Cuda
- Day-7 check
- Day-30 check
- Stars
- 1.2k
- Forks
- 121
- Open issues
- 6
- Last commit
- Found
- 2 years ago
GitHub figures as of . They are context, not a ranking.
A compact CUDA implementation of Flash Attention in about 100 lines, covering the forward pass only. It is meant as a readable reference for how the attention kernel works. It suits developers learning GPU kernels or studying attention efficiency.
Repository description on GitHub: “Flash Attention in ~100 lines of CUDA (forward pass only)”
What it does
- Forward pass of Flash Attention in about 100 lines of CUDA
- Benchmark script comparing manual attention with the minimal kernel
- Variable names follow the notation of the original paper
Good for
- Study how a fused attention kernel uses shared memory
- Benchmark manual attention against a minimal flash attention kernel
Suits: Developers learning CUDA kernels or studying attention efficiency.
Worth knowing: It implements only the forward pass, with no backward pass.
What you can try
Read the README on GitHub and install from source.
Links go to third-party sites KipFound does not control. KipFound has not installed, audited or tested this software.
Found vs. released
Kip first saw flash-attention-minimal on , when tspeterkim posted it to Show HN. GitHub listed no published releases for tspeterkim/flash-attention-minimal when checked , so the project may ship straight from its main branch. The repository was created .
Day-7 and day-30 updates
Day 7 no new release
- No tagged release was published in the first 7 days after it was found (GitHub release dates).
- Show HN discussion at check time: 230 points, 39 comments. API record
Checked , later than day 7 because tracking began after.
Day 30 no new release
- No tagged release was published in the first 30 days after it was found (GitHub release dates).
- Show HN discussion at check time: 230 points, 39 comments. API record
Checked , later than day 30 because tracking began after.
Release timeline every entry links to its source
- Repository created on GitHub: tspeterkim/flash-attention-minimal
- Found: tspeterkim posted it to Show HN. Show HN
- Day-7 check recorded by Kip (details)
- Day-30 check recorded by Kip (details)
Quick answers
- When was flash-attention-minimal released?
- No dated release record is available. Kip found it on Show HN on 16 Mar 2024.
- Is flash-attention-minimal open source?
- Its source is public on GitHub at tspeterkim/flash-attention-minimal under the Apache-2.0 licence.
- Is flash-attention-minimal free?
- It is open source, so the code is free to read and run; check the licence for terms.
- Is flash-attention-minimal still maintained?
- It has had no commit or release for over a year as of the latest check.
Provenance
| Source | Record | Last checked |
|---|---|---|
| Show HN | listing official API record | |
| GitHub repository | tspeterkim/flash-attention-minimal REST API record | |
| GitHub Releases | release list REST API record |
Stable ID hn-39726781. Summary drafted with AI from the source records above and checked against KipFound’s rules before publishing. Dates and release facts come only from those records.
Share
Similar tools
Made this, or spotted a mistake? Ask for a correction or removal. No account or email address needed.