As of 2026-09-05 (commit b96806d96061), ggml-org/llama.cpp contains 912,569 total lines: 704,348 code, 72,044 comments, 136,177 blank, across 2,863 files in 39 languages (top: C++ 43.6%). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving ggml-org/llama.cpp to commit b96806d96061, 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 77.2% of all lines, comments represent 7.9%, and the repository averages 246 code lines per file. C++ accounts for 43.6% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 586 | 387885 | 307103 | 23667 | 57115 |
| C | 90 | 74032 | 57858 | 4057 | 12117 |
| Python | 172 | 61051 | 48225 | 3394 | 9432 |
| C Header | 277 | 65699 | 45926 | 8579 | 11194 |
| OpenCL | 169 | 39677 | 34321 | 0 | 5356 |
| TypeScript | 321 | 42166 | 26897 | 8985 | 6284 |
| HTML | 2 | 35137 | 25476 | 0 | 9661 |
| JavaScript | 15 | 38328 | 25476 | 9684 | 3168 |
| JSON | 11 | 21243 | 21234 | 0 | 9 |
| CUDA | 189 | 25460 | 20469 | 1251 | 3740 |
| GLSL | 179 | 21966 | 17595 | 767 | 3604 |
| C++ Header | 78 | 19428 | 14994 | 1488 | 2946 |
Top language (C++ 43.6%). Generated at 2026-09-05T15:19:35.668017500+00:00.
ggml-org/llama.cpp has 912,569 total lines, including 704,348 code lines, 72,044 comment lines, and 136,177 blank lines.
OctoCounts resolved the public GitHub repository to commit b96806d96061, 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 b96806d96061049a5b574269b049bf6241d63d46 at commit b96806d96061 on 2026-09-05T15:19:35.668017500+00:00.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity: