google/gemma.cpp

lightweight, standalone C++ inference engine for Google's Gemma models.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 44 minutes ago
Added to GitGenius on September 9th, 2026
Created on February 13th, 2024
Open Issues & Pull Requests: 40 (+0)
GitHub issues: Enabled
Number of forks: 659
Total Stargazers: 7,035 (+0)
Total Subscribers: 49 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 11.7 hours
Mean response time: 36.9 hours
90th percentile: 4.3 days
Tracked items: 63

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 93% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Only 4% of issues opened in the past year have been closed. Three people close 68% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 27
New in 7 days: 2
Closed in 7 days: 1
Avg open age: 332 days
Stale 30+ days: 19
Stale 90+ days: 17

Recent activity

Opened in 7 days: 2
Closed in 7 days: 1
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • stat:awaiting response (8)
  • Feature (7)
  • type:support (7)
  • type:bug (2)
  • Gemma-7b (1)
  • announcement (1)
  • comp: compiler (1)
  • good first issue (1)

Detailed Description

gemma.cpp is a lightweight, standalone C++ inference engine for Google's Gemma models.

The project addresses the gap between deployment-oriented C++ inference runtimes that lack experimentation features and Python-centric ML research frameworks that abstract away low-level computation. It provides a minimalist implementation of Gemma-2, Gemma-3, and PaliGemma-2 models with a small core of approximately two thousand lines of code, designed to be straightforward to embed in other projects with minimal dependencies and easily modifiable. The engine uses the Google Highway Library to leverage portable SIMD for CPU inference and includes mixed-precision GEMM optimizations with weight compression, sampling with TopK and temperature, and backward pass support with an Adam optimizer for research purposes.

The tool targets experimentation and research use cases rather than production deployments. It suits developers who want to understand and modify model inference at a low level without the abstraction overhead of larger frameworks, and those seeking to co-design high-level algorithms with low-level computation. The README explicitly recommends standard deployment pathways using Python frameworks for production-oriented edge deployments, positioning this project as complementary to rather than competitive with those tools. The implementation supports tensor parallelism, multiple weight compression formats including custom fp8, and runs on any CPU across Linux, Windows, and macOS.

The project maintains a substantial base of adopters reporting real-world use, as evidenced by most open issues being raised by outside users rather than the core team. Maintainers typically respond to new issues and pull requests within a day. Work in the issue tracker is dominated by support requests, feature requests, and issues awaiting user response, reflecting active engagement with a community of users.