# ollama/ollama SLOC report

> As of 2026-09-12 (commit 53fed2611281), ollama/ollama contains 763,172 total lines: 504,127 code, 184,567 comments, 74,478 blank, across 1,079 files in 23 languages (top: Go 53.3%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

ollama/ollama has 504,127 source lines of code out of 763,172 total lines across 1,079 files, counted from the main ref at commit 53fed2611281 by the OctoCounts tokei engine on 2026-09-12. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving ollama/ollama to commit 53fed2611281, 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.

## Repository size insights

This is a large codebase by counted code lines. Code represents 66.1% of all lines, comments represent 24.2%, and the repository averages 467 code lines per file. Go accounts for 53.3% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| Go | 809 | 315,749 | 268,681 | 14,063 | 33,005 |
| JSON | 44 | 144,752 | 144,748 | 0 | 4 |
| C Header | 43 | 73,830 | 56,338 | 2,039 | 15,453 |
| TSX | 55 | 15,874 | 14,560 | 260 | 1,054 |
| TypeScript | 47 | 5,428 | 4,641 | 223 | 564 |
| C | 4 | 3,454 | 3,418 | 2 | 34 |
| C++ | 4 | 4,171 | 2,935 | 698 | 538 |
| Objective-C | 4 | 2,935 | 2,552 | 87 | 296 |
| CMake | 10 | 2,398 | 1,983 | 221 | 194 |
| PowerShell | 2 | 1,655 | 1,394 | 112 | 149 |
| Shell | 9 | 1,645 | 1,296 | 139 | 210 |
| SVG | 20 | 513 | 511 | 2 | 0 |

Top language (Go 53.3%). Generated at 2026-09-12T12:31:43.088742117+00:00. Canonical report: https://octocounts.com/github/ollama/ollama

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/ollama/ollama/commit/53fed26112817f7c55f664efb9e3f65f06cab7db?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does ollama/ollama have?

ollama/ollama has 763,172 total lines, including 504,127 code lines, 184,567 comment lines, and 74,478 blank lines.

### How was the ollama/ollama line count measured?

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

### What commit was counted for ollama/ollama?

This OctoCounts report was generated from main at commit 53fed2611281 on 2026-09-12T12:31:43.088742117+00:00.

## Similar repository reports

- [harness/harness](https://octocounts.com/github/harness/harness) — Go, 497,918 code lines
- [HaoyueQin/DeepSeek-Reasonix](https://octocounts.com/github/HaoyueQin/DeepSeek-Reasonix) — Go, 519,274 code lines
- [go-gitea/gitea](https://octocounts.com/github/go-gitea/gitea) — Go, 475,705 code lines
- [google/gvisor](https://octocounts.com/github/google/gvisor) — Go, 466,587 code lines
- [Untrivial-ai/agent-orchestrator](https://octocounts.com/github/Untrivial-ai/agent-orchestrator) — Go, 465,757 code lines
- [tx7do/go-wind-admin](https://octocounts.com/github/tx7do/go-wind-admin) — Go, 463,634 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)
- [Rust vs Go](https://octocounts.com/compare/rust-vs-go)
- [Deno vs Node.js](https://octocounts.com/compare/deno-vs-node)
- [Kubernetes vs Terraform](https://octocounts.com/compare/kubernetes-vs-terraform)
- [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)
