Gemma 4 / Specs

Gemma 4 Specs

The complete datasheet for Google's open models: every size's parameters, layers, context, inputs and memory, how the models are built, Google's published benchmark results and on-device speeds. EmbeddingGemma 2 has its own spec sheet further down. Every figure names its source.

Parameters and layers31B30.7B60 layers26B A4B25.2B30 layers12B11.95B48 layersE4B4.5B42 layersE2B2.3B35 layers Context window, tokens256K31B · 26B A4B · 12B128KE4B · E2B
Five sizes, two context lengths, one licence.
March 31, 2026Released (12B: June 3)
Apache 2.0Licence
140+Languages
January 2025Training data cutoff
Interactive

Spec viewer

Pick a size to see its full sheet.

Memory figures cover the model only; a conversation needs more on top. To compare two sizes side by side use the comparison tool; to choose a download see model variants.

Core

Model specifications

Specification31B26B A4B12BE4BE2B
Parameters30.7B25.2B
3.8B active
11.95B4.5B eff.
8B total
2.3B eff.
5.1B total
Layers6030484235
Context
tokens
256K256K256K128K128K
Local window
tokens
1,0241,0241,024512512
ImagesYesYesYesYesYes
Video
as frames
YesYesYesYesYes
Audio--YesYesYes
Vision part550M encoder550M encoder35M projection150M encoder150M encoder
Audio part--Raw projection305M encoder305M encoder
Vocabulary
~262K

Tokens, shared by all sizes.

Image detail
70 - 1,120

Tokens an image; 280 by default.

Audio clip
30 s

Maximum, on the three sizes that take audio.

Video
60 s

Maximum, at one frame a second.

From Google's Gemma 4 model card. "Effective" parameters for the edge models leave out their large embedding tables. Recommended sampling is temperature 1.0, top-p 0.95, top-k 64; see the prompt guide.

Memory

Memory by precision

How much memory the model itself needs at each level of compression.

Precision31B26B A4B12BE4BE2B
Full precision
BF16
69.9 GB57.7 GB26.7 GB17.9 GB11.4 GB
8-bit34.9 GB28.8 GB13.4 GB8.9 GB5.7 GB
4-bit
Q4_0
17.5 GB14.4 GB6.7 GB4.5 GB2.9 GB
Mobile format---2.5 GB1.1 GB

Google's figures, from the model card. Official 4-bit builds trained for that format are explained on the QAT page; matching a size to your hardware is covered in the VRAM guide.

Architecture

How the models are built

PartDetail
TypeDecoder-only transformer. Dense in four sizes; mixture of experts in the 26B A4B.
Attention patternLocal and global layers interleaved at 5:1 (4:1 in E2B). Local layers look back 512 tokens in the edge models and 1,024 in the others.
Position encodingp-RoPE with p = 0.25 on global layers, at a base frequency of 1M; standard RoPE at 10k on local layers.
Cache savingGlobal layers reuse keys as values, cutting the global key-value cache by 37.5%.
Cache sharing, edge modelsLater layers share cached keys and values: from layer 20 of 35 in E2B and layer 18 of 42 in E4B.
VisionA 550M encoder in the 31B and 26B A4B; a 150M encoder in E4B and E2B; a 35M projection over 48 x 48 patches in the 12B.
Image detail70, 140, 280, 560 or 1,120 tokens an image; 280 by default.
AudioA 305M encoder in E4B and E2B (25 tokens a second); raw audio in 40 ms frames at 16 kHz in the 12B. Clips of up to 30 seconds.
VideoRead as frames, up to 60 seconds at one frame a second.
Drafter modelsSmall companion models that speed up generation: 4 layers, with widths of 256 or 1,024 and 4,096 token clusters. The 12B drafter has about 0.4B parameters.
VocabularyAbout 262,000 tokens, shared across all sizes.
Training hardwareGoogle TPUv4 and TPUv6e.

From Google's Gemma 4 technical report and model card. A plain-language walk through these ideas is on the features page.

Results

Benchmark results

Google's published scores, with Gemma 3 27B for comparison. Higher is better unless a row says otherwise.

Text, code and agents

Test31B26B A4B12BE4BE2BGemma 3 27B
MMLU Pro
general knowledge
85.282.677.269.460.067.6
AIME 2026
competition maths
89.288.377.542.537.520.8
GPQA Diamond
graduate science
84.382.378.858.643.442.4
BigBench Extra Hard
hard reasoning
74.464.853.033.121.919.3
LiveCodeBench v6
coding
80.077.172.052.044.029.1
Codeforces
coding, Elo rating
215017181659940633110
Tau2
agent tasks
76.968.269.042.224.516.2
IFEval
following instructions
98.998.597.296.794.690.4
RULER 128K
long documents
96.489.891.286.670.466.0

Images and documents

Test31B26B A4B12BE4BE2BGemma 3 27B
MMMU Pro
image understanding
76.973.869.152.644.249.7
MATH-Vision
maths in images
85.682.479.759.552.446.0
MedXpertQA MM
medical images
61.358.148.728.723.5-
OmniDocBench 1.5
document reading; lower is better
0.1310.1490.1640.1810.2900.365

Audio

Test31B26B A4B12BE4BE2BGemma 3 27B
FLEURS
speech to text, word error rate; lower is better
--0.0630.0750.090-
CoVoST
speech translation; higher is better
--38.5*35.5433.47-

Human preference

On the Arena text leaderboard on October 2, 2026 the 31B scored 1453 and the 26B A4B 1437, against 1365 for Gemma 3 27B.

With search

On Humanity's Last Exam the 31B scores 19.5 alone and 26.5 when it can search.

What these are

The maker's own numbers. This site has not re-run them. Gemma 3 27B was tested without thinking.

From Google's model card; Arena scores from lmarena.ai. *The 12B CoVoST figure excludes Chinese. Charts and discussion are on the benchmarks page; weak spots under limitations.

On-device

Speed on phones and laptops

Google's LiteRT-LM results for the two edge models.

DeviceModelRuns onTokens a secondTime to first wordMemory
Galaxy S26 UltraE2BGraphics chip52.10.3 s676 MB
Galaxy S26 UltraE2BProcessor46.91.8 s1,733 MB
Galaxy S26 UltraE4BGraphics chip22.10.8 s710 MB
iPhone 17 ProE2BGraphics chip56.50.3 s1,450 MB
iPhone 17 ProE4BGraphics chip25.10.9 s3,380 MB
MacBook Pro M4 MaxE2BGraphics chip160.20.1 s-
MacBook Pro M4 MaxE4BGraphics chip101.10.4 s-

From Google's LiteRT-LM pages for the E2B and E4B builds. Phone builds are 2.58 GB and 3.66 GB downloads with up to 32K tokens of context. Setup is on the Android page, under mobile downloads and on the Mac page.

EmbeddingGemma 2 · released October 6, 2026
The search model

EmbeddingGemma 2 specs

EmbeddingGemma 2 is a different kind of model. It does not write; it turns text, code, images, audio and video into lists of numbers, called vectors, that software can compare to find related items. It is built on the Gemma 4 architecture.

One input holds any one of theseText8,192 tokensImagesabout 29Videoabout 58 framesAudioabout 327 seconds All inputs share a single 8,192-token budget; mixing types divides it.
One 8,192-token budget for every kind of input.
SpecificationValue
Parameters740M in full: 270M text and code, plus 170M vision and 300M audio
Configurations270M (text), 440M (text + vision), 570M (text + audio), 740M (everything)
Layers24
Vector length768 numbers; can be cut to 512, 256 or 128
Input budget8,192 tokens, shared by all input types
Fits in one inputAbout 29 images, 58 video frames or 327 seconds of audio
InputsText, code, images, audio, video
Languages100+
Training data cutoffJanuary 2025
LicenceApache 2.0
ReleasedOctober 6, 2026
Precisionbfloat16 or float32; not float16
Librarysentence-transformers 6.1.0 or newer
Memory on a phoneAbout 191 MB text-only, 567 MB in full (Pixel 11 Pro)
DownloadsOllama 378 MB to 1.3 GB; phone builds 165, 388 and 485 MB
Vector lengthText
MTEB v2
Images
MIEB lite
Visual docs
MMEB v2
76861.3664.6459.01
51261.1764.3258.38
25660.4163.1356.24
12857.8959.0645.65
Code search
78.68

MTEB Code. Version 1 scored 68.76.

Storage
1.5 GB

Per million full-length vectors; 250 MB at 128.

From Google's EmbeddingGemma 2 model card, developer guide and on-device post. Scores are the maker's own; the model is days old and has not been independently tested. Usage is in how to use; storage costs on the pricing page.

Provenance

Where each number comes from

FiguresSource
Parameters, layers, context, memory, benchmarksGemma 4 model card, Google
Architecture detailGemma 4 technical report, Google DeepMind
QAT file sizesGemma 4 QAT collection on Hugging Face
Ollama names and sizesOllama's tag list
On-device speedsGoogle's LiteRT-LM pages on Hugging Face
Human-preference scoresArena text leaderboard, October 2, 2026
EmbeddingGemma 2Model card, developer guide and on-device post, Google
What this page leaves out. Server throughput figures, some long-context and document tests, and several release-history dates appeared on the earlier version of this page. They could not be confirmed against Google's documents when this page was rebuilt, so they have been removed rather than repeated.
FAQ

Spec questions

More answers on the full FAQ page.

How many parameters does Gemma 4 have?

It depends on the size: 30.7B (31B), 25.2B (26B A4B), 11.95B (12B), 4.5B effective (E4B) and 2.3B effective (E2B).

What is Gemma 4's context window?

256K tokens on the 31B, 26B A4B and 12B; 128K on E4B and E2B. Phone builds are limited to 32K.

How much memory does Gemma 4 need?

From 2.9 GB (E2B) to 17.5 GB (31B) at 4-bit, for the model itself. At full precision, 11.4 GB to 69.9 GB.

What does "A4B" mean?

About four billion active parameters. The 26B A4B has 25.2B in total but uses roughly 3.8B for each token.

What does "effective" mean for E2B and E4B?

The count without their large embedding tables. With them, E2B has 5.1B parameters and E4B 8B.

Which sizes accept audio?

E2B, E4B and 12B, in clips of up to 30 seconds. See capabilities.

What licence is it under?

Apache 2.0, for all five sizes and for EmbeddingGemma 2. See ethics and safety for Google's use policies.

What are EmbeddingGemma 2's specs in short?

740M parameters, 24 layers, 768-number vectors, an 8,192-token input budget, five input types and 100+ languages.

Found the size you need?

Download it, or compare two sizes side by side.

Top