# ggml-org/llama.cpp SLOC report

> 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](https://github.com/ggml-org/llama.cpp) · counted commit [4c92c5bfb7ca](https://github.com/ggml-org/llama.cpp/tree/4c92c5bfb7cab395af9fc0fe0939e34ae5083345)

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.

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.

## 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.

## 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 | 497,550 | 399,001 | 29,491 | 69,058 |
| C | 100 | 93,466 | 74,142 | 4,317 | 15,007 |
| Python | 215 | 81,209 | 64,739 | 4,273 | 12,197 |
| C Header | 339 | 85,832 | 61,271 | 10,323 | 14,238 |
| OpenCL | 287 | 61,915 | 53,996 | 0 | 7,919 |
| TypeScript | 480 | 62,498 | 40,547 | 12,393 | 9,558 |
| JSON | 24 | 26,329 | 26,320 | 0 | 9 |
| CUDA | 210 | 32,235 | 26,288 | 1,553 | 4,394 |
| JavaScript | 24 | 39,385 | 26,176 | 9,869 | 3,340 |
| HTML | 3 | 35,150 | 25,489 | 0 | 9,661 |
| GLSL | 200 | 28,206 | 22,877 | 949 | 4,380 |
| C++ Header | 90 | 22,258 | 17,178 | 1,752 | 3,328 |
| Svelte | 420 | 18,320 | 15,799 | 530 | 1,991 |
| Jinja2 | 82 | 16,089 | 14,538 | 742 | 809 |
| Metal Shading Language | 39 | 15,480 | 11,956 | 562 | 2,962 |
| Shell | 67 | 9,078 | 6,880 | 988 | 1,210 |
| CMake | 100 | 8,315 | 6,591 | 602 | 1,122 |
| WebGPU Shader Language | 51 | 7,726 | 6,268 | 236 | 1,222 |
| Templ | 7 | 4,487 | 3,936 | 37 | 514 |
| Objective-C | 2 | 3,594 | 2,682 | 215 | 697 |
| CSS | 11 | 2,083 | 1,477 | 359 | 247 |
| Kotlin | 14 | 1,798 | 1,278 | 320 | 200 |
| SVG | 9 | 1,276 | 1,274 | 1 | 1 |
| Swift | 9 | 1,267 | 1,014 | 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 | 10,649 | 0 | 8,162 | 2,487 |
| Plain Text | 23 | 859 | 0 | 807 | 52 |

Top language: C++ 43.7%. Generated on November 24, 2026. Canonical report: https://octocounts.com/github/ggml-org/llama.cpp/commit/4c92c5bfb7cab395af9fc0fe0939e34ae5083345?reportId=8a638e088045d0b5366f97ab6a4ab77af2e31eb149123d72201c54e69015adff&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ggml-org/llama.cpp/commit/4c92c5bfb7cab395af9fc0fe0939e34ae5083345?reportId=8a638e088045d0b5366f97ab6a4ab77af2e31eb149123d72201c54e69015adff&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## 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

- [protocolbuffers/protobuf](https://octocounts.com/github/protocolbuffers/protobuf) — C++, 911,426 code lines
- [apache/trafficserver](https://octocounts.com/github/apache/trafficserver) — C++, 906,469 code lines
- [gem5/gem5](https://octocounts.com/github/gem5/gem5) — C++, 924,637 code lines
- [google/or-tools](https://octocounts.com/github/google/or-tools) — C++, 897,553 code lines
- [Kitware/ParaView](https://octocounts.com/github/Kitware/ParaView) — C++, 953,180 code lines
- [torment78/Elka.VoiceMeeterFxHost](https://octocounts.com/github/torment78/Elka.VoiceMeeterFxHost) — C++, 958,704 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)
- [Largest codebases by programming language](https://octocounts.com/languages)
- [Ollama vs llama.cpp](https://octocounts.com/compare/ollama-vs-llama-cpp)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
