# karpathy/llm.c SLOC report

> As of 2026-09-06 (commit f1e2ace65149), karpathy/llm.c contains 24,803 total lines: 17,355 code, 4,574 comments, 2,874 blank, across 78 files in 10 languages (top: CUDA 62.5%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving karpathy/llm.c to commit f1e2ace65149, 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 70.0% of all lines, comments represent 18.4%, and the repository averages 223 code lines per file. CUDA accounts for 62.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| CUDA | 27 | 15,511 | 10,842 | 2,934 | 1,735 |
| Python | 13 | 3,526 | 2,679 | 466 | 381 |
| C Header | 14 | 2,434 | 1,688 | 465 | 281 |
| C | 3 | 1,594 | 1,196 | 245 | 153 |
| Shell | 11 | 576 | 361 | 123 | 92 |
| Makefile | 2 | 383 | 285 | 52 | 46 |
| C++ | 1 | 297 | 220 | 28 | 49 |
| Jupyter Notebooks | 1 | 112 | 84 | 20 | 8 |
| Markdown | 5 | 363 | 0 | 234 | 129 |
| Plain Text | 1 | 7 | 0 | 7 | 0 |

Top language (CUDA 62.5%). Generated at 2026-09-06T10:39:30.041976898+00:00. Canonical report: https://octocounts.com/github/karpathy/llm.c

## Report FAQ

### How many lines of code does karpathy/llm.c have?

karpathy/llm.c has 24,803 total lines, including 17,355 code lines, 4,574 comment lines, and 2,874 blank lines.

### How was the karpathy/llm.c line count measured?

OctoCounts resolved the public GitHub repository to commit f1e2ace65149, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for karpathy/llm.c?

This OctoCounts report was generated from master at commit f1e2ace65149 on 2026-09-06T10:39:30.041976898+00:00.

## Similar repository reports

- [jarun/nnn](https://octocounts.com/github/jarun/nnn) — C, 17,350 code lines
- [mathis-s/CustomAssembler](https://octocounts.com/github/mathis-s/CustomAssembler) — GNU Style Assembly, 17,384 code lines
- [gz83/thorium](https://octocounts.com/github/gz83/thorium) — Python, 17,398 code lines
- [ueberdosis/hocuspocus](https://octocounts.com/github/ueberdosis/hocuspocus) — YAML, 17,300 code lines
- [solidjs/solid](https://octocounts.com/github/solidjs/solid) — JavaScript, 17,290 code lines
- [FalkorDB/code-graph](https://octocounts.com/github/FalkorDB/code-graph) — Python, 17,420 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
