Model reference · open weights
Gemma-4 is an open-weight language model from Google. gemma-4-26B-A4B-it-FP8-dynamic (FP8) weighs 28.6 GB; the smallest configuration that runs it is L40S 48 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
AxForge offerings: Gemma-4 26B
Summary of the google/gemma-4-31B-it model card, 2026-10-01. The estimate below is for another build of the family.
What it is
| Released by | |
|---|---|
| Released | 2026-03-11 |
| Parameters | 31.3B |
| VRAM | 28.6 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB … RTX 4090 24 GB 4 smaller cards | ||||
| RTX 5090 32 GB | 31.0 GB | |||
| L40S 48 GB | 9 | 5 | all 256K | 44.0 GB |
| A100 80 GB FP8 without its speed-up here | 34 | 19 | all 256K | 78.2 GB |
| H100 80 GB | 20 | 8 | all 256K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 28 | 11 | all 256K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 35 | 14 | all 256K | 107 GB |
| H200 141 GB | 50 | 20 | all 256K | 138 GB |
| B200 180 GB | 69 | 17 | all 256K | 176 GB |
| 2× RTX 4090 24 GB tensor parallel | 10 | 5 | all 256K | 23.4 GB a card |
| 2× RTX 3090 24 GB tensor parallel · FP8 without its speed-up here | 10 | 5 | all 256K | 23.4 GB a card |
| 2× RTX 5090 32 GB tensor parallel | 21 | 12 | all 256K | 31.0 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 32.1 GB | 33.1 GB |
| 5 | 37.6 GB | 42.6 GB |
| 8 | 41.8 GB | 49.8 GB |
| 16 | 52.8 GB | 68.9 GB |
| 32 | 75.0 GB | 107 GB |
| 64 | 119 GB | 184 GB |
One card, with vLLM's small-card settings.
Builds
| Build | Params | Precision | Weights | Smallest setup |
|---|---|---|---|---|
| gemma-4-31B-it ↗ | 31.3B | BF16 | 62.5 GB | A100 80 GB |
| gemma-4-26B-A4B-it ↗ | 25.8B | BF16 | 51.6 GB | H100 80 GB |
| gemma-4-E4B-it ↗ | 8.0B | BF16 | 16.0 GB | 2× RTX 3060 12 GB |
| gemma-4-E2B-it ↗ | 5.1B | BF16 | 10.2 GB | RTX 4060 Ti 16 GB |
| gemma-4-12B-it ↗ | 12.0B | BF16 | 23.9 GB | 2× RTX 4060 Ti 16 GB |
| gemma-4-31B ↗ | 32.7B | BF16 | 62.5 GB | A100 80 GB |
| gemma-4-26B-A4B ↗ | 26.5B | BF16 | 51.6 GB | H100 80 GB |
| Gemma-4-31B-IT-NVFP4 ↗ packaged by nvidia |
20.9B | NVFP4 | 32.6 GB | L40S 48 GB |
| Gemma-4-26B-A4B-NVFP4 ↗ packaged by NVIDIA |
26B A4B | NVFP4 | 18.8 GB | RTX 4090 24 GB |
| gemma-4-26B-A4B-it-GGUF ↗ packaged by unsloth 22 builds: F16 855 MB … BF16 51.4 GB |
GGUF | 16.9 GB | 2× RTX 3060 12 GB | |
| gemma-4-26B-A4B-it-FP8-dynamic (above) ↗ packaged by RedHatAI |
26.5B | FP8 | 28.6 GB | L40S 48 GB |
| gemma-4-31B-it-FP8-block ↗ packaged by RedHatAI |
31.3B | FP8 | 33.3 GB | L40S 48 GB |
| gemma-4-12B-it-FP8-Dynamic ↗ packaged by RedHatAI |
13.0B | FP8 | 15.0 GB | 2× RTX 3060 12 GB |
| gemma-4-E4B-it-unsloth-bnb-4bit ↗ packaged by unsloth |
8.0B | INT4 | 11.0 GB | RTX 4060 Ti 16 GB |
| gemma-4-E2B-it-NVFP4 ↗ packaged by unsloth |
4.6B | NVFP4 | 5.5 GB | RTX 3060 12 GB |
| gemma-4-26B-A4B-it-NVFP4 ↗ packaged by RedHatAI |
25.8B | NVFP4 | 16.4 GB | 2× RTX 3060 12 GB |
| gemma-4-E2B-it-unsloth-bnb-4bit ↗ packaged by unsloth |
5.1B | INT4 | 8.1 GB | RTX 3060 12 GB |
| gemma-4-E4B-it-NVFP4 ↗ packaged by unsloth |
6.9B | NVFP4 | 8.1 GB | RTX 3060 12 GB |
| gemma-4-E4B-it ↗ packaged by unsloth |
8.0B | BF16 | 16.0 GB | 2× RTX 3060 12 GB |
| gemma-4-12B-it-NVFP4 ↗ packaged by RedHatAI |
13.0B | NVFP4 | 10.3 GB | RTX 4060 Ti 16 GB |
| gemma-4-E2B-it ↗ packaged by unsloth |
5.1B | BF16 | 10.2 GB | RTX 4060 Ti 16 GB |
| gemma-4-12b-it ↗ packaged by unsloth |
12.0B | BF16 | 23.9 GB | 2× RTX 4060 Ti 16 GB |
| gemma-4-31B-it-NVFP4 ↗ packaged by RedHatAI |
32.7B | NVFP4 | 23.3 GB | L40S 48 GB |
| gemma-4-26B-A4B-it-NVFP4 ↗ packaged by unsloth |
15.6B | NVFP4 | 16.9 GB | 2× RTX 3060 12 GB |
| gemma-4-12b-it-NVFP4 ↗ packaged by unsloth |
8.2B | NVFP4 | 9.3 GB | RTX 4060 Ti 16 GB |
| gemma-4-26B-A4B-it ↗ packaged by unsloth |
26.5B | BF16 | 51.6 GB | H100 80 GB |
| gemma-4-31B-it-NVFP4 ↗ packaged by unsloth |
22.8B | NVFP4 | 24.8 GB | RTX 5090 32 GB |
| gemma-4-31B-it ↗ packaged by unsloth |
32.7B | BF16 | 62.5 GB | A100 80 GB |
| gemma-4-31B-it-unsloth-bnb-4bit ↗ packaged by unsloth |
31.3B | INT4 | 19.1 GB | 2× RTX 4060 Ti 16 GB |
| gemma-4-E4B-it ↗ packaged by RedHatAI |
8.0B | BF16 | 16.0 GB | 2× RTX 3060 12 GB |
| gemma-4-E2B-it ↗ packaged by RedHatAI |
5.1B | BF16 | 10.2 GB | RTX 4060 Ti 16 GB |
| gemma-4-12B-it ↗ packaged by RedHatAI |
12.0B | BF16 | 23.9 GB | 2× RTX 4060 Ti 16 GB |
| gemma-4-E4B-it-qat-q4_0-unquantized ↗ packaged by unsloth |
7.9B | BF16 | 15.9 GB | 2× RTX 3060 12 GB |
| gemma-4-26b-a4b-it-MLX-8bit ↗ packaged by unsloth |
7.7B | MLX | 28.0 GB | L40S 48 GB |
| gemma-4-26b-a4b-it-UD-MLX-3bit ↗ packaged by unsloth |
4.0B | MLX | 13.2 GB | 2× RTX 3060 12 GB |
From the model card
Gemma is a family of open models built by Google DeepMind. Gemma 4 models are multimodal, handling text and image input (with audio supported on E2B, E4B, and 12B) and generating text output. This release includes open-weights models in both pre-trained and instruction-tuned variants. Gemma 4 features a context window of up to 256K tokens and maintains multilingual support in over 140 languages.
Featuring both Dense and Mixture-of-Experts (MoE) architectures, Gemma 4 is well-suited for tasks like text generation, coding, and reasoning. The models are available in five distinct sizes: E2B, E4B, 12B, 26B A4B, and 31B. Their diverse sizes make them deployable in environments ranging from high-end phones to laptops and servers, democratizing access to state-of-the-art AI.
Gemma 4 introduces key capability and architectural advancements:
Reasoning – All models in the family are designed as highly capable reasoners, with configurable thinking modes.
Extended Multimodalities – Processes Text, Image with variable aspect ratio and resolution support (all models), Video, and Audio (featured natively on the E2B, E4B, and 12B models).
Diverse & Efficient Architectures – Offers Dense and Mixture-of-Experts (MoE) variants of different sizes for scalable deployment.
Optimized for On-Device – Smaller models are specifically designed for efficient local execution on laptops and mobile devices.
Increased Context Window – The small models feature a 128K context window, while the medium models support 256K.
Enhanced Coding & Agentic Capabilities – Achieves notable improvements in coding benchmarks alongside native function-calling support, powering highly capable autonomous agents.
Native System Prompt Support – Gemma 4 introduces native support for the system role, enabling more structured and controllable conversations.
Gemma 4 models are designed to deliver frontier-level performance at each size, targeting deployment scenarios from mobile and edge devices (E2B, E4B) to consumer GPUs and workstations (12B, 26B A4B, 31B). They are well-suited for reasoning, agentic workflows, coding, and multimodal understanding.
The models employ a hybrid attention mechanism that interleaves local sliding window attention with full global attention, ensuring the final layer is always global. This hybrid design delivers the processing speed and low memory footprint of a lightweight model without sacrificing the deep awareness required for complex, long-context tasks. To optimize memory for long contexts, global layers feature unified Keys and Values, and apply Proportional RoPE (p-RoPE).
| Property | E2B | E4B | 12B Unified | 31B Dense |
|---|---|---|---|---|
| Total Parameters | 2.3B effective (5.1B with embeddings) | 4.5B effective (8B with embeddings) | 11.95B | 30.7B |
| Layers | 35 | 42 | 48 | 60 |
| Sliding Window | 512 tokens | 512 tokens | 1024 tokens | 1024 tokens |
| Context Length | 128K tokens | 128K tokens | 256K tokens | 256K tokens |
| Vocabulary Size | 262K | 262K | 262K | 262K |
| Supported Modalities | Text, Image, Audio | Text, Image, Audio | Text, Image, Audio | Text, Image |
| Vision Encoder Parameters | ~150M | ~150M | - | ~550M |
| Audio Encoder Parameters | ~300M | ~300M | - | No Audio |
The "E" in E2B and E4B stands for "effective" parameters. The smaller models incorporate Per-Layer Embeddings (PLE) to maximize parameter efficiency in on-device deployments. Rather than adding more layers or parameters to the model, PLE gives each decoder layer its own small embedding for every token. These embedding tables are large but are only used for quick lookups, which is why the effective parameter count is much smaller than the total.
The "Unified" in Gemma 4 12B Unified refers to its encoder-free architecture. Other Gemma 4 models use dedicated encoders to process multimodal data before passing it to the LLM. Gemma 4 12B eliminates these encoders entirely, projecting raw image patches and audio waveforms directly into the LLM's embedding space through lightweight linear layers. This unified approach means all modalities flow straight into a single decoder-only transformer, reducing multimodal latency and allowing the entire model to be fine-tuned in one pass.
| Property | 26B A4B MoE |
|---|---|
| Total Parameters | 25.2B |
| Active Parameters | 3.8B |
| Layers | 30 |
| Sliding Window | 1024 tokens |
| Context Length | 256K tokens |
| Vocabulary Size | 262K |
| Expert Count | 8 active / 128 total and 1 shared |
| Supported Modalities | Text, Image |
| Vision Encoder Parameters | ~550M |
The "A" in 26B A4B stands for "active parameters" in contrast to the total number of parameters the model contains. By only activating a 4B subset of parameters during inference, the Mixture-of-Experts model runs much faster than its 26B total might suggest. This makes it an excellent choice for fast inference compared to the dense 31B model since it runs almost as fast as a 4B-parameter model.
These models were evaluated against a large collection of different datasets and metrics to cover different aspects of text generation. Evaluation results marked in the table are for instruction-tuned models.
| Gemma 4 31B | Gemma 4 26B A4B | Gemma 4 12B Unified | Gemma 4 E4B | Gemma 4 E2B | Gemma 3 27B (no think) | |
|---|---|---|---|---|---|---|
| MMLU Pro | 85.2% | 82.6% | 77.2% | 69.4% | 60.0% | 67.6% |
| AIME 2026 no tools | 89.2% | 88.3% | 77.5% | 42.5% | 37.5% | 20.8% |
| LiveCodeBench v6 | 80.0% | 77.1% | 72.0% | 52.0% | 44.0% | 29.1% |
| Codeforces ELO | 2150 | 1718 | 1659 | 940 | 633 | 110 |
| GPQA Diamond | 84.3% | 82.3% | 78.8% | 58.6% | 43.4% | 42.4% |
| Tau2 (average over 3) | 76.9% | 68. |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.