ApX logoApX logo
CalculatorCoursesPricing

Gemma 4 12B

Open Source
Open Weights

Parameters

11.95B

Context Length

262K

Modality

Multimodal

Auxiliary Parameters

550M

Architecture

Dense

KV Cache Rate

384 KB/tok

License

Apache 2.0

Release Date

3 Jun 2026

Knowledge Cutoff

-

API Pricing (per 1M)

Input: $0.10 · Output: $0.30

Hardware & System Requirements

Precision

Context

Workload Memory: 11.06 GB

vLLM

INT4 · 8K context · 1 user

Base Weights: 5.56 GB

KV Cache: 3.00 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

11.1 / 21.6 GB

1x RTX 3060 12GB

llama.cpp

11.1 / 11.2 GB

Apple M4 24GB

llama.cpp

11.1 / 18.0 GB

Determine requirements for concurrent users or multi-node clusters:

Runtime compatibility

Verified on hardware and checkpoint files.

Checkpoint format

BF16

CUDA

13.0

PyTorch

2.14.0

Transformers

≥ 4.40.1

ArchitecturePrecisionKernel

Hopper

Native BF16

FlashAttention-3

Architecture Diagram

Input TokensToken EmbeddingPosition: AbsoluteHidden: 3.8k · Context: 262K · Vocab: 262.1kx 48 layersRMSNormPre-AttentionMulti-Head Attention16Q / 8KV heads · SW: 1kHead dim: 256+RMSNormPre-FFNFeed-Forward NetworkGELUIntermediate: 15.4k+Final RMSNormOutput Logits

Evaluation Benchmarks

Rank

#145

BenchmarkScoreRank

Professional Knowledge

MMLU Pro

0.772

#34

Graduate-Level QA

GPQA

0.788

#68

0.31

#118

Intelligence Index

Artificial Analysis
auto

0.14

Standard

0.09

#226

#268

Rankings

Overall Rank

#145

Coding Rank

#131

About Gemma 4 12B

Google DeepMind's 12B dense open-weights model released June 3, 2026, bridging the gap between the edge-friendly E4B and the more advanced 26B MoE. Uniquely features an encoder-free unified architecture that projects raw image patches and audio waveforms directly into the LLM embedding space through lightweight linear layers, eliminating the latency and memory overhead of separate encoders. Supports 256K token context, native text/image/audio inputs, configurable thinking mode, and runs on consumer laptops with 16GB of RAM.

Specifications

Attention

Attention Structure

Multi-Head Attention

Attention Heads

16

Key-Value Heads

8

Attention Head Dimension

256

Position Embedding

Absolute Position Embedding

RoPE Theta

10,000

Sliding Window Attention

Yes

Sliding Window Size

1,024

Sliding Window Ratio

83.3%

Normalization

RMS Normalization

Activation Function

GELU

Dimensions

Base Precision

BF16

Auxiliary Parameters

550M

Hidden Dimension Size

3,840

Number of Layers

48

FFN Intermediate Size (Dense)

15,360

Tokenizer

Vocabulary Size

262,144

About Gemma 4

Gemma 4 is Google DeepMind's most advanced open model family, built from Gemini 3 research and technology. Featuring both Dense and Mixture-of-Experts (MoE) architectures, these multimodal models handle text, images, and audio (on smaller variants), with context windows up to 256K tokens. Designed for frontier-level performance across reasoning, coding, and agentic workflows, Gemma 4 delivers unprecedented intelligence-per-parameter from mobile devices to enterprise servers. Released under Apache 2.0 license.


Other Gemma 4 Models