Gemma4-12B

Google

Parameters

11.9B

Architecture

Dense (Unified, encoder-free)

Released

23.05.2026

License

Apache License 2.0

Open Weights Commercial Use Multimodal BF16 Gemma4 en multilingual

Input Modalities

text image audio

Output Modalities

text

Context (native)

262,144 tokens

Context (extended)

262,144 tokens

Openness Index Score 100.0/100

About

Gemma4-12B (google/gemma-4-12B-it) is the instruction-tuned 12B "Unified" model of Google DeepMind's Gemma 4 family - an encoder-free multimodal architecture that eliminates dedicated vision and audio encoders entirely: raw image patches and audio waveforms are projected directly into the LLM's embedding space through lightweight linear layers, so all modalities flow into a single decoder-only transformer. It handles text, image and audio input and generates text (any-to-any pipeline), with multilingual support in over 140 languages.

The 12B Unified has 11.95B parameters, 48 layers (40 Sliding-Window Attention (SWA) layers with window 1024 + 8 full-attention layers), hidden size 3840, FFN 15360, 262,144-token context window and 262K vocabulary. Like its siblings it uses the hybrid local-global attention design (final layer always global), unified Keys and Values (K=V) with Proportional RoPE (p-RoPE) on global layers (1 global KV head, head dim 512, theta 1M partial rotary 0.25), and final logit softcapping at 30.0.

Gemma 4 capabilities include configurable thinking modes, native function calling for agentic workflows, native system role support, video understanding via frame sequences, interleaved multimodal input, and enhanced coding. Pre-training spans web documents, code, mathematics, images and audio (cutoff January 2025, 140+ languages) with CSAM and sensitive-data filtering; this checkpoint is the instruction-tuned variant. Released May 23, 2026 under Apache 2.0.

Training Data Large-scale diverse collection: web documents, code, images, audio. 140+ languages. Cutoff: January 2025.

Benchmark Scores

Benchmark Score Date Standing
Terminal-Bench 2.1 (Terminus-2)
coding_agent
21.00
25.06.2026
#44/44
better than 0%
SWE-bench Verified
coding_agent
50.23%
25.06.2026
#49/60
better than 19%
SWE-bench Multilingual
coding_agent
32.54%
25.06.2026
#43/48
better than 11%
NL2Repo
coding_agent
10.30
25.06.2026
#41/41
better than 0%
Claw-Eval Avg
coding_agent
37.39%
25.06.2026
#36/40
better than 10%
MMLU-Pro
knowledge
55.48%
02.07.2026
#33/48
better than 32%
LiveCodeBench v6
stem_reasoning
70.67%
02.07.2026
#34/49
better than 31%
CodeForces
stem_reasoning
46.09%
02.07.2026
#15/18
better than 18%
GPQA Diamond
stem_reasoning
70.69%
02.07.2026
#62/80
better than 23%
TAU2-Bench
general_agent
65.31%
02.07.2026
#11/21
better than 50%

Architecture

Decoder Block ×48 input Embedding vocab 262K · d 3840 Sliding Window Attn Hybrid 16:8 · dₕ 256 · win 1024 ×40 Full Attention Hybrid 16:8 · dₕ 256 · win 1024 ×8 Dense FFN SwiGLU · d 15K Final RMSNorm LM Head tied with embedding output
Attention
Hybrid Attention (16:8)
Layers
48
Hidden size
3840
Context
262K tokens
Parameters
11950M

Source: Hugging Face config.json · Gemma4UnifiedForConditionalGeneration · exact layer pattern · model repo

Type: Encoder-free multimodal decoder-only (Gemma 4 12B Unified): 40 SWA + 8 full-attn layers
Attention: Interleaved local SWA (window 1024; 16 Q / 8 KV GQA) with full global attention (8 layers; unified K=V, 1 global KV head, head dim 512); Proportional RoPE theta 1M partial 0.25 on global / 10k on sliding; final logit softcapping 30.0
Decoder: Dense decoder-only hybrid (SWA + full attention), no dedicated encoders
Encoders

none - raw image patches and audio waveforms projected via lightweight linear layers

Training Pipeline

  1. 1
    pretraining

    Multimodal pre-training incl. audio (cutoff January 2025)

    Web documents, code, mathematics, images and audio in 140+ languages; CSAM and sensitive-data filtering.

  2. 2
    sft

    Instruction tuning

    This checkpoint is the instruction-tuned (-it) variant of Gemma 4 12B Unified.

Training & Evaluation Datasets

NameRoleSizeModalitiesCollection
Web documents (140+ languages) pretraining — —
Code pretraining — —
Mathematics pretraining — —
Images pretraining — —
Audio pretraining — —

Comments (0)

No comments yet

Be the first to share your thoughts!

What now?

You have read the full card for Gemma4-12B — here is where to go next.