As of 2026-08-15 (commit e6f5bb9c0949), tinygrad/tinygrad contains 457,455 total lines: 402,188 code, 29,412 comments, 25,855 blank, across 845 files in 20 languages (top: Python 69.2%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving tinygrad/tinygrad to commit e6f5bb9c0949, 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.
This is a large codebase by counted code lines. Code represents 87.9% of all lines, comments represent 6.4%, and the repository averages 476 code lines per file. Python accounts for 69.2% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 435 | 293287 | 278366 | 4756 | 10165 |
| C Header | 51 | 122173 | 93682 | 16884 | 11607 |
| C++ | 26 | 8634 | 7056 | 745 | 833 |
| JavaScript | 16 | 5337 | 4947 | 189 | 201 |
| Metal Shading Language | 75 | 9983 | 4760 | 4373 | 850 |
| CUDA | 13 | 4442 | 3577 | 444 | 421 |
| GNU Style Assembly | 1 | 2423 | 2328 | 0 | 95 |
| Shell | 141 | 3006 | 2014 | 294 | 698 |
| XML | 1 | 2334 | 1998 | 216 | 120 |
| JSON | 23 | 896 | 896 | 0 | 0 |
| CSS | 7 | 760 | 613 | 37 | 110 |
| C | 4 | 623 | 478 | 45 | 100 |
Top language (Python 69.2%). Generated at 2026-08-15T05:43:26.409850115+00:00.
tinygrad/tinygrad has 457,455 total lines, including 402,188 code lines, 29,412 comment lines, and 25,855 blank lines.
OctoCounts resolved the public GitHub repository to commit e6f5bb9c0949, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit e6f5bb9c0949 on 2026-08-15T05:43:26.409850115+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: