As of 2026-09-03 (commit 92d63d4e8bb4), karpathy/nanochat contains 9,428 total lines: 5,935 code, 2,128 comments, 1,365 blank, across 40 files in 5 languages (top: Python 87.8%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving karpathy/nanochat to commit 92d63d4e8bb4, 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 small codebase by counted code lines. Code represents 63.0% of all lines, comments represent 22.6%, and the repository averages 148 code lines per file. Python accounts for 87.8% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| Python | 30 | 6715 | 5213 | 805 | 697 |
| Jupyter Notebooks | 2 | 785 | 445 | 216 | 124 |
| Shell | 4 | 384 | 216 | 103 | 65 |
| TOML | 1 | 69 | 61 | 1 | 7 |
| Markdown | 3 | 1475 | 0 | 1003 | 472 |
Top language (Python 87.8%). Generated at 2026-09-03T11:50:00.084816401+00:00.
karpathy/nanochat has 9,428 total lines, including 5,935 code lines, 2,128 comment lines, and 1,365 blank lines.
OctoCounts resolved the public GitHub repository to commit 92d63d4e8bb4, 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 92d63d4e8bb4 on 2026-09-03T11:50:00.084816401+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: