aicoolies logo

gemma.cpp

Lightweight C++ inference for Google Gemma models

Share
open-sourceOpen Source
Visit Website →

gemma.cpp is Google's standalone C++ inference engine built specifically for running Gemma language models without Python or CUDA dependencies. It provides optimized CPU inference using SIMD instructions and Highway library, supports Gemma 2 and Gemma 3 models, and runs on x86 and ARM architectures. Designed for embedded systems, edge devices, and server deployments needing minimal overhead.

gemma.cpp is Google DeepMind's purpose-built inference engine that strips away the overhead of Python runtimes and heavy ML frameworks to run Gemma models with maximum efficiency on CPU hardware. Unlike general-purpose inference engines like llama.cpp that support many model architectures, gemma.cpp is optimized specifically for the Gemma model family, enabling architecture-specific optimizations that would not be possible in a generic framework. The result is faster inference with lower memory usage for Gemma-specific deployments.

The engine leverages Google's Highway library for portable SIMD operations, automatically selecting the best instruction set available on the target CPU — AVX-512, AVX2, SSE4, or NEON for ARM. This makes it suitable for deployment across x86 servers, Apple Silicon Macs, Raspberry Pi devices, and other ARM hardware without code changes. gemma.cpp supports the complete Gemma model family including Gemma 2 and Gemma 3 variants, with quantized model formats that reduce memory requirements while preserving quality.

With over 6,800 GitHub stars and Google's direct maintenance, gemma.cpp serves developers who need to deploy Gemma models in environments where Python is unavailable, undesirable, or too slow. Use cases include embedded systems, mobile applications via native code, IoT edge devices, and high-throughput server deployments. The Apache-2.0 license and Google's active development ensure the engine stays current with new Gemma model releases and architectural improvements.

Pricing

Free and open source under Apache-2.0 license

Platforms

x86 and ARM CPUs — no Python or CUDA required

Categories

Tags

Use Cases

Alternatives

Related Tools

Deep Lake logo

Deep Lake

AI data runtime for multimodal datasets and vector search

Deep Lake is an open-source AI data runtime from Activeloop for storing, versioning, and querying multimodal data and embeddings. It fits teams building RAG, training, evaluation, or dataset-heavy agent workflows that need a bridge between vector search, structured metadata, and large image, text, audio, or video collections.

open-sourceOpen Source
SeekDB logo

SeekDB

AI-native state store with hybrid vector and full-text search

SeekDB is an open-source AI-native state store from the OceanBase ecosystem that combines MySQL-compatible data access with hybrid vector and full-text retrieval. It targets agent and AI application teams that need embedded or server deployment, copy-on-write style sandboxes, and searchable state without gluing together several separate storage layers.

open-sourceOpen Source
Marqo logo

Marqo

Embedding-first search and discovery engine for AI-powered product experiences.

Marqo is an open-source tensor search engine that combines embedding generation and vector search in a single API, removing the need to manage separate embedding pipelines and vector databases. Built for product discovery and multi-modal search, it lets teams index text, images, and structured data together, returning ranked results based on semantic similarity rather than keyword overlap.

freemium
Magika logo

Magika

AI-powered file-type detection at Google scale

Open-source AI-powered file-type detection tool from Google that uses a custom deep-learning model under a few megabytes to identify more than 200 binary and textual content types in milliseconds, even on a single CPU. Magika ships as a CLI, Python package, JavaScript/TypeScript library, and an ONNX model, achieves around 99% accuracy on its test set, and is already used at Google scale across Gmail, Drive, and Safe Browsing as well as by VirusTotal and abuse.ch.

freeOpen Source
Zep logo

Zep

Context engineering platform for AI agents with temporal knowledge graphs

Zep is a context engineering platform that assembles relationship-aware context for AI agents from conversations, business data, documents, and events. It maintains a temporal knowledge graph that automatically extracts entities and relationships, tracking how context evolves over time. Zep delivers formatted context blocks optimized for LLMs with sub-200ms latency, integrating with LangChain, LlamaIndex, AutoGen, and Google ADK through Python, TypeScript, and Go SDKs.

freemium
Hindsight logo

Hindsight

Agent memory system that learns, not just remembers

Hindsight is an agent memory system that enables AI agents to learn from experience rather than just store conversations. It organizes memories into three biomimetic categories: World knowledge for facts, Experiences for agent events, and Mental Models for learned understanding. The system provides retain, recall, and reflect operations backed by a temporal knowledge graph with parallel retrieval strategies including semantic, keyword, graph traversal, and temporal search.

freemiumOpen Source