CodeGemma Models by Google DeepMind
Last refreshed 2026-10-07. Next refresh: weekly.
Details
Capabilities
About
CodeGemma is Google’s coding-focused Gemma family: a 7B pretrained model for completion and generation, a 7B instruction-tuned chat variant for natural-language-to-code, and a smaller 2B pretrained model for faster completion. Google documents fill-in-the-middle completion, code generation, and related coding tasks, with training on a large mix of web, math, and code data and support for common programming languages. Model cards and checkpoints are published through Google’s Gemma/CodeGemma developer docs and Hugging Face.
Decision facts
- Best fit
- codingstructured outputsmath-heavy prompts
- Capability starting point
- CodeGemma on Google Vertex AI with 8K context and structured outputs
- Lowest tracked input
- CodeGemma 1.1 7B · $0.050/1M · DeepInfra
- Closest related family
- DiffusionGemma
Current Variants
Use-when guidance is based on each model's tracked capabilities, context window, release date, and replacement status.
Use when the workload needs 8K context and 2B parameters.
Use when the workload needs 8K context, 7B parameters, and structured outputs.
Use when the workload needs 8K context and 2B parameters.
Use when the workload needs 8K context and 7B parameters.
| Model | Use when | Released | Signals | Status |
|---|---|---|---|---|
| CodeGemma 1.1 2B | Use when the workload needs 8K context and 2B parameters. | 2024-05 | 8K context2B parameters | Current |
| CodeGemma on Google Vertex AI | Use when the workload needs 8K context, 7B parameters, and structured outputs. | 2024-05 | 8K context7B parametersstructured outputs | Current |
| CodeGemma 2B | Use when the workload needs 8K context and 2B parameters. | 2024-04 | 8K context2B parameters | Current |
| CodeGemma 7B | Use when the workload needs 8K context and 7B parameters. | 2024-04 | 8K context7B parameters | Current |
Release Timeline
2 release groupsSpecifications(6 models)
| Model | Released | Context | Parameters | Structured Outputs |
|---|---|---|---|---|
| CodeGemma 1.1 2B | 2024-05 | 8K | 2B | No |
| CodeGemma on Google Vertex AI | 2024-05 | 8K | 7B | Yes |
| CodeGemma 2B | 2024-04 | 8K | 2B | No |
| CodeGemma 7B | 2024-04 | 8K | 7B | No |
Available From(4 providers)
Pricing
| Model | Provider | Input / 1M | Output / 1M | Type |
|---|---|---|---|---|
| CodeGemma 2B | Fireworks AI | $0.1 | $0.1 | Provisioned |
| CodeGemma on Google Vertex AI | GCP Vertex AI | $0.125 | $0.375 | Serverless |
| CodeGemma 7B | Fireworks AI | $0.2 | $0.2 | Serverless |
