Google logo

Gemma 2

GoogleOpen WeightsPending Human Review

Gemma 2 is the second open-weight Gemma generation, initially released at 9B and 27B, with a 2B tier added in July. Its architecture alternates local and global attention and applies soft capping for training stability. The smaller tiers use knowledge distillation. Pre-trained and instruction-tuned weights support local text generation, reasoning, and adaptation under the custom Gemma license.

2024-06-27
2B, 9B and 27B
Decoder-only Transformer with alternating local/global attention, grouped-query attention and attention/logit soft capping
Gemma

Specifications

Parameters
2B, 9B and 27B
Architecture
Decoder-only Transformer with alternating local/global attention, grouped-query attention and attention/logit soft capping
License
Gemma
Context Window
8,192 tokens
Type
text
Modalities
text

Benchmark Scores

Advanced Specifications

Model Family
Gemma
API Access
Not Available
Chat Interface
Not Available
Variants
gemma-2-9b (June 27, 2024)gemma-2-27b (June 27, 2024)gemma-2-2b (July 31, 2024)Pre-trained and instruction-tuned variants
Hardware Support
GPUTPUCPU

Capabilities & Limitations

Capabilities
text generationreasoningcodeinstruction following
Known Limitations
The models primarily target English and have an 8K context.Memory use depends on model size and precision; larger tiers may require multiple accelerators.
Notable Use Cases
local assistantslanguage-model researchtask fine-tuning

Related Models