# huggingface/text-generation-inference SLOC report

> huggingface/text-generation-inference: 150,835 code lines at commit b4adbf2f6e2e, counted with tokei-15.0.0 on 2026-11-03. Saved result e0e3d4b99b0ce78a0f412309487bb682fddc364d21c09f8dad9438ceeb2fa8f8.

huggingface/text-generation-inference has 150,835 source lines of code out of 177,291 total lines across 708 files, counted with tokei from the b4adbf2f6e2e721280bd0ea5f91d70f7d033f5ed ref at commit b4adbf2f6e2e on November 3, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving huggingface/text-generation-inference to commit b4adbf2f6e2e, 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

huggingface/text-generation-inference: 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 85.1% of all lines, comments represent 5.6%, and the repository averages 213 code lines per file. Python accounts for 56.4% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Python | 348 | 103,849 | 85,064 | 5,610 | 13,175 |
| JSON | 205 | 41,892 | 41,892 | 0 | 0 |
| Rust | 64 | 22,606 | 19,242 | 1,130 | 2,234 |
| CUDA | 9 | 1,978 | 1,454 | 222 | 302 |
| TOML | 18 | 734 | 662 | 4 | 68 |
| Nix | 8 | 657 | 548 | 67 | 42 |
| C++ | 3 | 472 | 372 | 19 | 81 |
| C++ Header | 3 | 503 | 327 | 105 | 71 |
| Shell | 7 | 353 | 304 | 17 | 32 |
| Protocol Buffers | 2 | 525 | 299 | 167 | 59 |
| Makefile | 8 | 337 | 235 | 27 | 75 |
| Dockerfile | 1 | 250 | 149 | 48 | 53 |
| CMake | 4 | 191 | 138 | 20 | 33 |
| JavaScript | 2 | 188 | 114 | 54 | 20 |
| C Header | 3 | 40 | 30 | 1 | 9 |
| INI | 1 | 5 | 5 | 0 | 0 |
| Markdown | 13 | 933 | 0 | 639 | 294 |
| Plain Text | 9 | 1,778 | 0 | 1,778 | 0 |

Top language: Python 56.4%. Generated on November 3, 2026. Canonical report: https://octocounts.com/github/huggingface/text-generation-inference/commit/b4adbf2f6e2e721280bd0ea5f91d70f7d033f5ed?reportId=e0e3d4b99b0ce78a0f412309487bb682fddc364d21c09f8dad9438ceeb2fa8f8&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/huggingface/text-generation-inference/commit/b4adbf2f6e2e721280bd0ea5f91d70f7d033f5ed?reportId=e0e3d4b99b0ce78a0f412309487bb682fddc364d21c09f8dad9438ceeb2fa8f8&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 huggingface/text-generation-inference have?

huggingface/text-generation-inference has 150,835 lines of code, plus 9,908 comment lines and 16,548 blank lines, for 177,291 total lines at commit b4adbf2f6e2e on November 3, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

### How was the huggingface/text-generation-inference line count measured?

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

### What commit was counted for huggingface/text-generation-inference?

This OctoCounts report was generated from b4adbf2f6e2e721280bd0ea5f91d70f7d033f5ed at commit b4adbf2f6e2e on November 3, 2026.

## Similar repository reports

- [zitianqin/unsw-battlecode-2026](https://octocounts.com/github/zitianqin/unsw-battlecode-2026) — Python, 150,834 code lines
- [openai/openai-agents-python](https://octocounts.com/github/openai/openai-agents-python) — Python, 150,720 code lines
- [factorysemantics/factorysemantics-mes](https://octocounts.com/github/factorysemantics/factorysemantics-mes) — Python, 150,360 code lines
- [miciatefara58/academic-paper-skills](https://octocounts.com/github/miciatefara58/academic-paper-skills) — Python, 151,987 code lines
- [OppaAI/Aiko-chan](https://octocounts.com/github/OppaAI/Aiko-chan) — Python, 148,959 code lines
- [iws3/MarkGPT](https://octocounts.com/github/iws3/MarkGPT) — Python, 148,954 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)
- [vLLM vs Text Generation Inference](https://octocounts.com/compare/vllm-vs-tgi)
- [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)
