Production model

Gemma 1 7B

Architecture

Positional encoding RoPE (base 10000)
Norm placement Pre-Norm
Norm type RMSNorm
QK-Norm no
Activation GeGLU
Attention MHA (16 query heads, 16 KV heads, head_dim 256)
MoE
Other 28 layers, Wide head dim (256 vs the typical 64–128) is the most distinctive choice, GeGLU FFN with hidden_dim 24576 (4× the 6144 d_model), 8K context window

Techniques used

  • Multi-Head Attention — MHA with unusually wide head_dim 256 (16 query heads, 16 KV heads). GQA only arrived in Gemma 2.
  • GELU-Gated Linear Unit — First open Gemma; established GeGLU as the Google-family default.

Gemma 1 7B (February 2024) is the first open release in the Gemma family. The architecture follows the early-2024 consensus on three of four major axes — Pre-Norm, RMSNorm, RoPE — but diverges from the dominant Llama-aligned stack on the FFN activation and on attention geometry:

The other components are standard: 28 transformer blocks, RoPE base 10000, 8K context window without scaling tricks, GeGLU at hidden_dim 24576 (4× the 6144 model dim).

The Gemma 2B variant from the same release uses MQA (one shared KV head) rather than MHA — a small-model concession to KV-cache pressure that the 7B doesn’t make. The architectural divergence between 2B and 7B was reduced in Gemma 2 and 3, which use the same GQA + sandwich placement pattern across their entire size families.

For the rest of the family see Gemma 2 27B (sandwich norm

Sources

Export

BibTeX
@article{arxiv_2403_08295,
  title         = {Gemma 1 7B},
  author        = {Google DeepMind},
  year          = {2024},
  eprint        = {2403.08295},
  archivePrefix = {arXiv},
  url           = {https://arxiv.org/abs/2403.08295}
}
CSL JSON
{
  "id": "arxiv_2403_08295",
  "type": "article-journal",
  "title": "Gemma 1 7B",
  "author": [
    {
      "literal": "Google DeepMind"
    }
  ],
  "issued": {
    "date-parts": [
      [
        2024
      ]
    ]
  },
  "URL": "https://arxiv.org/abs/2403.08295",
  "number": "2403.08295",
  "source": "arXiv"
}
RIS
TY  - JOUR
TI  - Gemma 1 7B
AU  - Google DeepMind
PY  - 2024
JO  - arXiv
AN  - arXiv:2403.08295
UR  - https://arxiv.org/abs/2403.08295
ER  - 

Models like this