Gemma 2 Models by Google DeepMind

Google DeepMindGemmaOpen weightsHighlight
Google DeepMind releases · 53 in the last 12 monthsChangelog →
7 models2024Up to 8K ctxFrom $0.060/1M input

Last refreshed 2026-10-17. Next refresh: weekly.

Details

ResearcherGoogle DeepMind
LicenseGemma
Commercial useRestricted
Models7
Released2024
Max context8K

Capabilities

Structured Outputs4 of 7 models

About

Gemma 2 is a series of cutting-edge, lightweight open large language models developed by Google. Leveraging the same foundational research as the Gemini models, Gemma 2 offers models with 2 billion, 9 billion, and 27 billion parameters. These decoder-only text-to-text models, primarily trained on English data, demonstrate strong capabilities in multilingual tasks. They come in both pre-trained and instruction-tuned versions, making them versatile for diverse text generation applications such as question answering, summarization, and reasoning. Smaller models are optimized for deployment on resource-limited devices, while the larger variants deliver competitive performance with efficiency innovations like alternating local and global attention, logit soft-capping, and grouped-query attention12. Additionally, Gemma 2 includes tools for facilitating responsible AI development3.

Decision facts

Best fit
safetystructured outputscoding
Capability starting point
Gemma 2 27B with 8K context and structured outputs
Lowest tracked input
Gemma 2 9B · $0.060/1M · GCP Vertex AI
Closest related family
DiffusionGemma

Current Variants

Use-when guidance is based on each model's tracked capabilities, context window, release date, and replacement status.

6 in view1 retired
Gemma 2 2BCurrent

Use when the workload needs 8K context and 2B parameters.

2024-078K context2B parameters

Use when the workload needs 8K context and 2B parameters.

2024-078K context2B parameters

Use when the workload needs safety, 8K context, and 9B parameters.

2024-07safety8K context9B parameters

Use when the workload needs 8K context, 27B parameters, and structured outputs.

2024-068K context27B parametersstructured outputs
Gemma 2 9BCurrent

Use when the workload needs 8K context, 9B parameters, and structured outputs.

2024-068K context9B parametersstructured outputs

Use when the workload needs 8K context, 9B parameters, and structured outputs.

2024-068K context9B parametersstructured outputs

Release Timeline

2 release groups
2024-07
3 current
Gemma 2 2B
8K context2B parameters
Current
Gemma 2 2B Instruct
8K context2B parameters
Current
ShieldGemma 9B
safety8K context9B parameters
Current
2024-06
3 current · 1 retired
Gemma 2 27B
8K context27B parametersstructured outputs
Current
Gemma 2 27B Instruct
8K context27B parametersstructured outputs
Replaced
Gemma 2 9B
8K context9B parametersstructured outputs
Current
Gemma 2 9B Instruct
8K context9B parametersstructured outputs
Current

Replaced By

Keep for legacy integrations; evaluate Gemma 3 27B before new work.

Specifications(7 models)

Gemma 2 model specifications comparison
ModelReleasedContextParametersStructured Outputs
Gemma 2 2B2024-078K2BNo
Gemma 2 2B Instruct2024-078K2BNo
ShieldGemma 9B2024-078K9BNo
Gemma 2 27B2024-068K27BYes
Gemma 2 9B2024-068K9BYes
Gemma 2 9B Instruct2024-068K9BYes

Pricing

Gemma 2 model pricing by provider
ModelProviderInput / 1MOutput / 1MType
Gemma 2 9BGCP Vertex AI$0.06$0.18Serverless
Gemma 2 9BBitdeer AI$0.08$0.24Serverless
Gemma 2 27BBitdeer AI$0.08$0.24Serverless
Gemma 2 9B InstructChutes AI$0.1$0.3Serverless
Gemma 2 9B InstructReplicate API$0.1$0.1Serverless
Gemma 2 9B InstructFireworks AI$0.2$0.2Serverless
Gemma 2 9BFireworks AI$0.2$0.2Serverless
Gemma 2 27BGCP Vertex AI$0.3$0.9Serverless
Gemma 2 9B InstructFeatherless$0.431$1.12Serverless

Popular comparisons in this family