Skip to content
← Models
Open weightsGoogle/10 trustVerified

CodeGemma

Google's open code models on the Gemma base: 2B infill specialist and 7B instruct.

Visit official page →

About

CodeGemma (April 2024) is Google's family of open code models built on Gemma: a 7B pretrained model, a 7B instruction-tuned model, and a specialized 2B model for fast code infilling and open-ended generation in latency-sensitive settings. Trained on 500B–1T additional tokens of mostly code with fill-in-the-middle training. Released under Google's Gemma Terms of Use — open weights, but a custom license (not OSI-approved) that needs a read before commercial use. A v1.1 refresh followed in May 2024. Solid for IDE completion; outclassed on reasoning-heavy tasks by later coders.

Specs

Context window

Pricing

Self-host: free under Gemma Terms of Use. Hosted inference via third-party providers — per-token pricing varies.

Free quota

No official free API; self-hosting is free.

API access

Weights on Hugging Face and Kaggle; no first-party hosted API.

Weights

Open weights

Released

April 9, 2024

Benchmarks

Team-reported (paper): state-of-the-art code completion and generation performance at its scale among open models.

Provider-reported unless a source says otherwise. Benchmarks are marketing-adjacent by nature — treat them as directional.

Use cases

code completioncode infillingIDE assistanceon-device coding

Trust score — 7/10

/10 trustVerified

Scored 7/10 (verified tier, metrics-v1). Evidence: Google arXiv technical report read this session: v1.0 Apr 9 2024 (7B PT, 7B IT, 2B infill specialist), v1.1 May 3 2024, 500B-1T tokens, FIM training.; Gemma Terms of Use is a custom license (not OSI-approved) — flagged for HF-card confirmation before commercial use..

More in the codegemma family

Sources