# Gemma: Gemini-derived techniques in 2B and 7B open models

> The first Gemma release provides 2B and 7B base and instruction-tuned weights using Gemini-derived techniques, alongside responsible-AI tooling and local deployment support.

- URL: https://dmxsf.com/en/blog/gemma-open-models-based-on-gemini-research-and-technology/
- [DMXSF](https://dmxsf.com/en/about/)
- Published: 2024-03-23
- Updated: 2026-11-13
- Paper notes
- Paper: [Gemma: Open Models Based on Gemini Research and Technology](https://arxiv.org/abs/2403.08295) ( Gemma Team, Thomas Mesnard, Cassidy Hardin, et al. · arXiv, 2024)

Google introduced Gemma in 2024 as lightweight 2B and 7B base and instruction models, derived from Gemini research but sized for single-accelerator and local development.

## How it works

The decoder uses RoPE, GeGLU and RMSNorm, with MHA at 7B and MQA at 2B plus a large 256K vocabulary. SFT and RLHF produce instruction models, and safety and debugging tools accompany the release.

## What the evidence shows

The report shows strong results for their sizes. Open weights do not mean open training data or unconditional licensing; the large vocabulary increases embedding parameters, and attention configurations differ by size.

## A reproducible check

This snippet checks a public formula or configuration; it does not reproduce full training.

```python
vocab, width = 256128, 2048
embedding_params = vocab*width
print("embedding parameters =", embedding_params)
print("embedding billions =", embedding_params/1e9)
```

```text
embedding parameters = 524550144
embedding billions = 0.524550144
```

The arithmetic is reproducible, but model quality still depends on the full experiments in the paper.

## Limitations and common misreadings

As a model report without exhaustive ablations, it cannot isolate data and architecture contributions. Small-model knowledge and reasoning remain limited, and safety tools do not replace application evaluation.

## The key takeaway

Gemma packages Gemini-derived design into locally usable models while treating model cards, safety tools and licensing as part of release engineering.

## Further reading

- [Gemma: Open Models Based on Gemini Research and Technology](https://arxiv.org/abs/2403.08295)
- [LLaMA](https://dmxsf.com/en/blog/llama-open-and-efficient-foundation-language-models/)
- [Phi-3](https://dmxsf.com/en/blog/phi-3-technical-report/)

## FAQ

### Which sizes were in the first release?

2B and 7B, each in base and instruction-tuned forms.

### Do both sizes use the same attention?

No. The 7B model uses MHA, while 2B uses MQA.

### Do open weights mean unrestricted open source?

No. The Gemma license applies, and the complete data and training recipe are not open.
