Dao-AILab/flash-attention SLOC report
As of 2026-08-17 (commit 0251105a2fb1), Dao-AILab/flash-attention contains 123,324 total lines: 98,550 code, 12,492 comments, 12,282 blank, across 984 files in 13 languages (top: Python 72.7%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving Dao-AILab/flash-attention to commit 0251105a2fb1, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.
Repository size insights
This is a medium-sized codebase by counted code lines. Code represents 79.9% of all lines, comments represent 10.1%, and the repository averages 100 code lines per file. Python accounts for 72.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|
| Python | 176 | 84816 | 71672 | 5959 | 7185 |
| C Header | 43 | 11552 | 8571 | 1553 | 1428 |
| C++ | 12 | 8979 | 7471 | 610 | 898 |
| C++ Header | 12 | 6773 | 5399 | 688 | 686 |
| CUDA | 606 | 7453 | 4199 | 1940 | 1314 |
| YAML | 107 | 1440 | 1042 | 209 | 189 |
| TOML | 2 | 82 | 72 | 0 | 10 |
| Dockerfile | 2 | 122 | 56 | 46 | 20 |
| Shell | 3 | 66 | 40 | 14 | 12 |
| Autoconf | 2 | 17 | 16 | 0 | 1 |
| Makefile | 1 | 9 | 6 | 0 | 3 |
| Module-Definition | 1 | 7 | 6 | 0 | 1 |
Top language (Python 72.7%). Generated at 2026-08-17T01:56:51.208183923+00:00.
Report FAQ
How many lines of code does Dao-AILab/flash-attention have?
Dao-AILab/flash-attention has 123,324 total lines, including 98,550 code lines, 12,492 comment lines, and 12,282 blank lines.
How was the Dao-AILab/flash-attention line count measured?
OctoCounts resolved the public GitHub repository to commit 0251105a2fb1, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for Dao-AILab/flash-attention?
This OctoCounts report was generated from main at commit 0251105a2fb1 on 2026-08-17T01:56:51.208183923+00:00.