# kvcache-ai/ktransformers SLOC report

> kvcache-ai/ktransformers: 328,652 code lines at commit ca198c50de70, counted with tokei-15.0.0 on 2026-11-13. Saved result 7291f3452ce3b9734f2115f24700978a990b3faedb32d4848d74045fe70a9ee6.

kvcache-ai/ktransformers has 328,652 source lines of code out of 400,606 total lines across 1,101 files, counted with tokei from the main ref at commit ca198c50de70 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving kvcache-ai/ktransformers to commit ca198c50de70, 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

kvcache-ai/ktransformers: 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 82.0% of all lines, comments represent 7.7%, and the repository averages 299 code lines per file. Python accounts for 41.6% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 538 | 169,789 | 136,716 | 10,788 | 22,285 |
| C++ Header | 104 | 81,289 | 62,347 | 10,067 | 8,875 |
| JSON | 13 | 50,135 | 50,130 | 0 | 5 |
| C++ | 108 | 28,069 | 23,423 | 2,507 | 2,139 |
| Bitbake | 11 | 20,885 | 19,023 | 440 | 1,422 |
| CUDA | 11 | 13,628 | 10,281 | 1,517 | 1,830 |
| YAML | 79 | 9,875 | 8,517 | 682 | 676 |
| C Header | 87 | 10,012 | 7,228 | 1,677 | 1,107 |
| Shell | 21 | 4,594 | 3,374 | 555 | 665 |
| CMake | 12 | 2,686 | 2,162 | 214 | 310 |
| TypeScript | 26 | 1,488 | 1,356 | 18 | 114 |
| CSS | 6 | 1,372 | 1,120 | 42 | 210 |
| HTML | 4 | 1,082 | 960 | 6 | 116 |
| Dockerfile | 3 | 894 | 693 | 96 | 105 |
| JavaScript | 14 | 364 | 328 | 18 | 18 |
| Stylus | 2 | 322 | 276 | 8 | 38 |
| TOML | 7 | 350 | 273 | 25 | 52 |
| Makefile | 4 | 123 | 93 | 19 | 11 |
| INI | 3 | 119 | 92 | 5 | 22 |
| BASH | 1 | 77 | 64 | 8 | 5 |
| Fish | 1 | 74 | 52 | 12 | 10 |
| Autoconf | 4 | 64 | 50 | 8 | 6 |
| Vue | 6 | 50 | 36 | 0 | 14 |
| SVG | 1 | 51 | 34 | 0 | 17 |
| Batch | 2 | 32 | 24 | 2 | 6 |
| Markdown | 27 | 3,099 | 0 | 2,150 | 949 |
| Plain Text | 6 | 83 | 0 | 80 | 3 |

Top language: Python 41.6%. Generated on November 13, 2026. Canonical report: https://octocounts.com/github/kvcache-ai/ktransformers/commit/ca198c50de70abb6827ba6f573bb6671e54436e2?reportId=7291f3452ce3b9734f2115f24700978a990b3faedb32d4848d74045fe70a9ee6&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/kvcache-ai/ktransformers/commit/ca198c50de70abb6827ba6f573bb6671e54436e2?reportId=7291f3452ce3b9734f2115f24700978a990b3faedb32d4848d74045fe70a9ee6&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 kvcache-ai/ktransformers have?

kvcache-ai/ktransformers has 328,652 lines of code, plus 30,944 comment lines and 41,010 blank lines, for 400,606 total lines at commit ca198c50de70 on November 13, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the kvcache-ai/ktransformers line count measured?

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

### What commit was counted for kvcache-ai/ktransformers?

This OctoCounts report was generated from main at commit ca198c50de70 on November 13, 2026.

## Similar repository reports

- [hugohe3/ppt-master](https://octocounts.com/github/hugohe3/ppt-master) — Python, 328,170 code lines
- [Neywa-Labs/mlx-vlm](https://octocounts.com/github/Neywa-Labs/mlx-vlm) — Python, 326,214 code lines
- [menglimi/astrbot_plugin_private_companion_v2](https://octocounts.com/github/menglimi/astrbot_plugin_private_companion_v2) — Python, 331,869 code lines
- [alirezarezvani/claude-skills](https://octocounts.com/github/alirezarezvani/claude-skills) — Python, 325,261 code lines
- [TecnaGamer/BeamNG.Earth](https://octocounts.com/github/TecnaGamer/BeamNG.Earth) — Python, 319,625 code lines
- [hsliuping/TradingAgents-CN](https://octocounts.com/github/hsliuping/TradingAgents-CN) — Python, 319,622 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Django vs Ruby on Rails](https://octocounts.com/compare/django-vs-rails)
- [Laravel vs Django](https://octocounts.com/compare/laravel-vs-django)
- [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)
