ggml-org/llama.cpp
ggml-org/llama.cpp has 913,679 source lines of code out of 1,169,648 total lines across 3,667 files, counted with tokei from the master ref at commit 4c92c5bfb7ca on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
ggml-org/llama.cpp: 913,679 code lines at commit 4c92c5bfb7ca, counted with tokei-15.0.0 on 2026-11-24. Saved result 8a638e088045d0b5366f97ab6a4ab77af2e31eb149123d72201c54e69015adff.
Source: ggml-org/llama.cpp on GitHub · counted commit 4c92c5bfb7ca
OctoCounts produced this report by resolving ggml-org/llama.cpp to commit 4c92c5bfb7ca, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
Repository size insights
This is a large codebase by counted code lines. Code represents 78.1% of all lines, comments represent 7.6%, and the repository averages 249 code lines per file. C++ accounts for 43.7% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C++ | 723 | 497550 | 399001 | 29491 | 69058 |
| C | 100 | 93466 | 74142 | 4317 | 15007 |
| Python | 215 | 81209 | 64739 | 4273 | 12197 |
| C Header | 339 | 85832 | 61271 | 10323 | 14238 |
| OpenCL | 287 | 61915 | 53996 | 0 | 7919 |
| TypeScript | 480 | 62498 | 40547 | 12393 | 9558 |
| JSON | 24 | 26329 | 26320 | 0 | 9 |
| CUDA | 210 | 32235 | 26288 | 1553 | 4394 |
| JavaScript | 24 | 39385 | 26176 | 9869 | 3340 |
| HTML | 3 | 35150 | 25489 | 0 | 9661 |
| GLSL | 200 | 28206 | 22877 | 949 | 4380 |
| C++ Header | 90 | 22258 | 17178 | 1752 | 3328 |
| Svelte | 420 | 18320 | 15799 | 530 | 1991 |
| Jinja2 | 82 | 16089 | 14538 | 742 | 809 |
| Metal Shading Language | 39 | 15480 | 11956 | 562 | 2962 |
| Shell | 67 | 9078 | 6880 | 988 | 1210 |
| CMake | 100 | 8315 | 6591 | 602 | 1122 |
| WebGPU Shader Language | 51 | 7726 | 6268 | 236 | 1222 |
| Templ | 7 | 4487 | 3936 | 37 | 514 |
| Objective-C | 2 | 3594 | 2682 | 215 | 697 |
| CSS | 11 | 2083 | 1477 | 359 | 247 |
| Kotlin | 14 | 1798 | 1278 | 320 | 200 |
| SVG | 9 | 1276 | 1274 | 1 | 1 |
| Swift | 9 | 1267 | 1014 | 38 | 215 |
| Batch | 6 | 565 | 457 | 29 | 79 |
| XML | 18 | 436 | 390 | 26 | 20 |
| Autoconf | 13 | 426 | 314 | 42 | 70 |
| Makefile | 4 | 295 | 208 | 18 | 69 |
| TOML | 4 | 195 | 154 | 9 | 32 |
| YAML | 2 | 175 | 132 | 12 | 31 |
| PowerShell | 1 | 136 | 97 | 10 | 29 |
| Nix | 1 | 185 | 76 | 93 | 16 |
| LD Script | 1 | 85 | 54 | 17 | 14 |
| Prolog | 3 | 58 | 48 | 0 | 10 |
| GNU Style Assembly | 1 | 15 | 15 | 0 | 0 |
| Sass | 1 | 16 | 10 | 4 | 2 |
| INI | 1 | 7 | 7 | 0 | 0 |
| Markdown | 82 | 10649 | 0 | 8162 | 2487 |
| Plain Text | 23 | 859 | 0 | 807 | 52 |
Top language: C++ 43.7%. Generated on .
Counting rules and retention
ggml-org/llama.cpp: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
Reproduce this report
Report FAQ
How many lines of code does ggml-org/llama.cpp have?
ggml-org/llama.cpp has 913,679 lines of code, plus 88,779 comment lines and 167,190 blank lines, for 1,169,648 total lines at commit 4c92c5bfb7ca on November 24, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
How was the ggml-org/llama.cpp line count measured?
OctoCounts resolved the public GitHub repository to commit 4c92c5bfb7ca, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
What commit was counted for ggml-org/llama.cpp?
This OctoCounts report was generated from master at commit 4c92c5bfb7ca on November 24, 2026.
Similar repository reports
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
- protocolbuffers/protobuf — C++, 911,426 code lines
- apache/trafficserver — C++, 906,469 code lines
- gem5/gem5 — C++, 924,637 code lines
- google/or-tools — C++, 897,553 code lines
- Kitware/ParaView — C++, 953,180 code lines
- torment78/Elka.VoiceMeeterFxHost — C++, 958,704 code lines
Play the growth animation for ggml-org/llama.cpp on this page — 913,679 code lines across 39 languages, counted by tokei.