Gemma 4 26B (MoE)
Gemma 4 26B (MoE) needs roughly 17.6 GB VRAM at Q4_K_M quantization (56.9 GB at FP16). 91 GPUs we track can run it fully in VRAM at 8k context.
91 GPUs run this natively · 14 with CPU offload
- Q4_K_M total
- 17.6 GB
- at 8k context
- Smallest GPU
- 20 GB
- NVIDIA RTX 4000 Ada, at Q4_K_M
- KV cache, full context
- 5.6 GB
- 5 of 30 layers grow with context, 25 capped at 1,024 tokens
- Inputs
- Text · Image
- Apache 2.0, released April 2026
- Active experts
- 8 of 128 + 1 shared
- ~3.8B active per token
- Attention pattern
- 5 local : 1 global
- 1,024-token sliding window
Gemma 4 26B (MoE) is a Mixture of Experts (MoE) model with 25.2B total parameters but only 3.8B active per token developed by Google. Released 2 April 2026 under Apache 2.0, this MoE variant activates roughly 3.8B of its 25.2B parameters per token by routing through 8 of 128 experts plus one always-on shared expert (Google brands the release "26B"; its own model card lists 25.2B total). Its 30 attention layers keep Gemma 3's local:global pattern: five sliding-window layers (1,024-token lookback) for every one full-attention layer. Context is 262,144 tokens natively, and the same checkpoint accepts text and image input.
To run Gemma 4 26B (MoE) locally: A Q4_K_M GGUF is roughly 15.3GB of weights, so about 17.6GB in total at 8k context; a 20GB+ card is the practical floor, since the weights alone already exceed a 16GB budget once overhead is added. The sliding-window attention is what keeps long context affordable: filling the full 262,144-token window costs only about 23.4GB total, comfortably inside a 32GB card (a 24GB card needs a sliver of CPU offload right at the top of that window). Vision uses a separate encoder, and Google's own GGUF quants (e.g. via Unsloth) are the most reliable route for llama.cpp/Ollama. As a MoE model, inference speed depends on active parameters (3.8B) rather than total size.
Google reports MMLU-Pro 82.6, GPQA Diamond 82.3, and LiveCodeBench v6 77.1, a profile that lands within a few points of the dense 31B sibling despite loading fewer active parameters per token. These are the vendor's own published figures; independent replication was still thin shortly after launch.
Five sliding-window layers for every one full-attention layer
Gemma 4 26B routes each token through 8 of 128 experts, plus one "shared" expert that runs every time: that routing is what keeps only about 3.8B parameters active per token even though all 26B have to sit in memory to make the routing fast. Separately, its 30 attention layers aren't all the same shape either: the stack repeats a block of five sliding-window layers followed by one full-attention layer, five times over, the same 5-local-to-1-global pattern Google used in Gemma 3. A sliding-window layer can only look back across the most recent 1,024 tokens, however long the conversation gets; a full-attention layer can look all the way back to the first token. Both keep a real KV cache (this isn't the fixed-state linear-attention trick some other 2026 models use); the difference is how far back each layer is allowed to look.
5 of 30 layers keep a KV cache that grows with the full context. 25 more cap their cache at a fixed 1,024-token window, no matter how long the context gets.
Once a conversation passes 1,024 tokens, the 25 sliding-window layers stop growing: their cache stays capped at that window no matter how much further the context goes. Only the 5 full-attention layers keep accumulating, and Google gave them a narrower key/value width too (2 KV heads × 512 dim, versus 8 × 256 for the sliding-window layers), so even those five layers cost less per token than a same-sized full-attention layer normally would.
What a full 262,144-token context actually costs
Long context is usually where a local setup falls apart: the KV cache grows with every token fed to it, and on a conventional model it can overtake the weights long before the advertised window is full. Capping 25 of 30 layers at a 1,024-token window is what keeps that bill under control here.
KV cache only, at FP16. Weights and activation overhead sit on top of these figures.
Filling the whole 262,144-token window costs 5.6 GB of KV cache instead of 64.4 GB. Add 15.3 GB of Q4_K_M weights and the full-context total is about 23.4 GB, right at the edge of a 24 GB card's real usable capacity (rated VRAM always leaves a little overhead), so it tips into a sliver of CPU offload there, while a 32 GB card holds it outright. The non-split version of the same model would have wanted 89.3 GB, squarely datacenter territory.
VRAM at each quantization
Calculated at 8k context. Because only part of this model's stack keeps a growing KV cache, longer sessions cost far less extra VRAM than a full-attention model of the same size.
| Quant | Weights | KV cache | Total |
|---|---|---|---|
| FP32 | 100.8 GB | 0.38 GB | 113.3 GB |
| BF16 | 50.4 GB | 0.38 GB | 56.9 GB |
| FP16 | 50.4 GB | 0.38 GB | 56.9 GB |
| Q8_0 | 26.8 GB | 0.38 GB | 30.4 GB |
| Q6_K | 20.7 GB | 0.38 GB | 23.6 GB |
| Q5_K_M | 17.9 GB | 0.38 GB | 20.5 GB |
| Q4_K_Mrec | 15.3 GB | 0.38 GB | 17.6 GB |
| Q3_K_M | 12.1 GB | 0.38 GB | 14.0 GB |
| Q2_K | 9.6 GB | 0.38 GB | 11.2 GB |
| NVFP4cuda | 12.6 GB | 0.38 GB | 14.5 GB |
Shown at 8k context with FP16 KV cache. NVFP4 needs a CUDA GPU to run. Toggle TurboQuant in the calculator to view compressed KV cache numbers.
Quantization × context: where it fits
The table above holds context fixed at 8k. Add context as a second axis and the picture barely moves for this model: that flatness is the sliding-window cap paying off. Pick the row you can download, then the column you actually need.
| Quant | 8k ctx | 32k ctx | 128k ctx | 256k ctx |
|---|---|---|---|---|
| Q8_0 | 30.4 GB32 GB card | 31.0 GB32 GB card | 33.2 GB48 GB card | 36.3 GB48 GB card |
| Q6_K | 23.6 GB24 GB card | 24.2 GB32 GB card | 26.4 GB32 GB card | 29.4 GB32 GB card |
| Q5_K_M | 20.5 GB24 GB card | 21.1 GB24 GB card | 23.3 GB24 GB card | 26.3 GB32 GB card |
| Q4_K_Mrec | 17.6 GB24 GB card | 18.2 GB24 GB card | 20.4 GB24 GB card | 23.4 GB24 GB card |
| Q3_K_M | 14.0 GB16 GB card | 14.6 GB16 GB card | 16.8 GB24 GB card | 19.8 GB24 GB card |
Benchmarks
GPUs that run Gemma 4 26B (MoE) natively (91)
- NVIDIA RTX 5090NVFP4 · 173.6 t/s
- NVIDIA RTX 5080NVFP4 · 93 t/s
- NVIDIA RTX 5070 TiNVFP4 · 86.8 t/s
- NVIDIA RTX 5070Q2_K · 83.9 t/s
- NVIDIA RTX 5060 Ti 16GBNVFP4 · 43.4 t/s
Show 86 more
- NVIDIA RTX 4090Q5_K_M · 69.7 t/s
- NVIDIA RTX 4080Q3_K_M · 72 t/s
- NVIDIA RTX 4070 Ti SUPERQ3_K_M · 67.5 t/s
- NVIDIA RTX 4070 TiQ2_K · 63 t/s
- NVIDIA RTX 4070 SUPERQ2_K · 63 t/s
- NVIDIA RTX 4070Q2_K · 63 t/s
- NVIDIA RTX 4060 Ti 16GBQ3_K_M · 28.9 t/s
- NVIDIA RTX 3090Q5_K_M · 64.7 t/s
- NVIDIA RTX 3090 TiQ5_K_M · 69.7 t/s
- NVIDIA RTX 3060 12GBQ2_K · 45 t/s
- NVIDIA B300 288GBBF16 · 202.2 t/s
- NVIDIA B200 180GBBF16 · 202.2 t/s
- NVIDIA H200 141GBBF16 · 121.3 t/s
- NVIDIA H100 80GBBF16 · 84.7 t/s
- NVIDIA A100 80GBBF16 · 51.5 t/s
- NVIDIA A100 40GBQ8_0 · 73 t/s
- NVIDIA L40SQ8_0 · 40.6 t/s
- NVIDIA RTX A6000Q8_0 · 36.1 t/s
- NVIDIA RTX 4000 AdaQ4_K_M · 25.7 t/s
- NVIDIA RTX 4500 AdaQ5_K_M · 29.9 t/s
- NVIDIA RTX 5000 AdaQ6_K · 34.7 t/s
- NVIDIA RTX 6000 AdaQ8_0 · 45.1 t/s
- NVIDIA RTX Pro 6000BF16 · 34 t/s
- NVIDIA DGX Spark (128GB)BF16 · 6.9 t/s
- AMD Radeon RX 7900 XTXQ5_K_M · 66.4 t/s
- AMD Radeon RX 7900 XTQ4_K_M · 64.3 t/s
- AMD Radeon RX 7900 GREQ3_K_M · 57.9 t/s
- AMD Radeon RX 6800 XTQ3_K_M · 51.4 t/s
- AMD Radeon PRO W7800Q6_K · 34.7 t/s
- AMD Radeon PRO W7900Q8_0 · 40.6 t/s
- AMD Instinct MI300XBF16 · 134 t/s
- AMD Radeon AI PRO R9700 32GBQ6_K · 38.6 t/s
- AMD Strix Halo (128GB)BF16 · 6.5 t/s
- AMD Strix Halo (96GB)BF16 · 6.5 t/s
- AMD Strix Halo (64GB)Q8_0 · 12 t/s
- AMD Strix Halo (32GB)Q6_K · 15.4 t/s
- Apple M5 Ultra (512GB)BF16 · 37.3 t/s
- Apple M5 Ultra (256GB)BF16 · 37.3 t/s
- Apple M5 Ultra (96GB)BF16 · 37.3 t/s
- Apple M5 Max (128GB)BF16 · 19.1 t/s
- Apple M5 Max (64GB)Q8_0 · 35.5 t/s
- Apple M5 Max (48GB)Q8_0 · 35.5 t/s
- Apple M5 Max (36GB)Q6_K · 34.1 t/s
- Apple M5 Pro (64GB)Q8_0 · 17.7 t/s
- Apple M5 Pro (48GB)Q8_0 · 17.7 t/s
- Apple M5 Pro (24GB)Q3_K_M · 38 t/s
- Apple M5 (32GB)Q6_K · 11.4 t/s
- Apple M6 (32GB)Q6_K · 12.6 t/s
- Apple M4 Max (128GB)BF16 · 17 t/s
- Apple M4 Max (64GB)Q8_0 · 31.6 t/s
- Apple M4 Max (48GB)Q8_0 · 31.6 t/s
- Apple M4 Max (36GB)Q6_K · 30.4 t/s
- Apple M4 Pro (48GB)Q8_0 · 15.8 t/s
- Apple M4 Pro (24GB)Q3_K_M · 33.8 t/s
- Apple M4 (32GB)Q6_K · 8.9 t/s
- Apple M3 Ultra (512GB)BF16 · 25.5 t/s
- Apple M3 Ultra (256GB)BF16 · 25.5 t/s
- Apple M3 Ultra (96GB)BF16 · 25.5 t/s
- Apple M3 Max (128GB)BF16 · 12.4 t/s
- Apple M3 Max (96GB)BF16 · 9.3 t/s
- Apple M3 Max (64GB)Q8_0 · 23.1 t/s
- Apple M3 Max (48GB)Q8_0 · 23.1 t/s
- Apple M3 Max (36GB)Q6_K · 22.3 t/s
- Apple M3 Pro (36GB)Q6_K · 11.1 t/s
- Apple M3 (24GB)Q3_K_M · 12.4 t/s
- Apple M2 Ultra (192GB)BF16 · 24.9 t/s
- Apple M2 Ultra (64GB)Q8_0 · 46.2 t/s
- Apple M2 Max (96GB)BF16 · 12.4 t/s
- Apple M2 Max (64GB)Q8_0 · 23.1 t/s
- Apple M2 Max (32GB)Q6_K · 29.7 t/s
- Apple M2 Pro (32GB)Q6_K · 14.8 t/s
- Apple M2 (24GB)Q3_K_M · 12.4 t/s
- Apple M1 Ultra (128GB)BF16 · 24.9 t/s
- Apple M1 Ultra (64GB)Q8_0 · 46.2 t/s
- Apple M1 Max (64GB)Q8_0 · 23.1 t/s
- Apple M1 Max (32GB)Q6_K · 29.7 t/s
- Apple M1 Pro (32GB)Q6_K · 14.8 t/s
- Intel Arc B580 12GBQ2_K · 57 t/s
- Intel Arc Pro B70 32GBQ6_K · 36.7 t/s
- Intel Arc Pro B60 24GBQ5_K_M · 26.3 t/s
- Intel Arc Pro B50 16GBQ3_K_M · 22.5 t/s
- Intel Arc A770 16GBQ3_K_M · 56.3 t/s
- Intel Arc Pro A60 12GBQ2_K · 48 t/s
- Intel Data Center GPU Max 1550BF16 · 82.8 t/s
- Intel Data Center GPU Max 1100Q8_0 · 57.7 t/s
- Intel Arc 140V (32GB)Q6_K · 8.3 t/s
Plus 14 GPUs that run it with CPU offload (slower)
- NVIDIA RTX 5060 Ti 8GBNVFP4 · 8 t/s
- NVIDIA RTX 5060NVFP4 · 8 t/s
- NVIDIA RTX 5050NVFP4 · 7.7 t/s
- NVIDIA RTX 4060Q8_0 · 2.4 t/s
- NVIDIA RTX 3080 10GBQ8_0 · 2.7 t/s
- Intel Arc B570 10GBQ8_0 · 2.6 t/s
- Intel Arc A770 8GBQ8_0 · 2.4 t/s
- Intel Arc A750 8GBQ8_0 · 2.4 t/s
- Intel Arc A580 8GBQ8_0 · 2.4 t/s
- Intel Arc A380 6GBQ8_0 · 2.2 t/s
- Intel Arc A310 4GBQ6_K · 2.6 t/s
- Intel Arc Pro A50 6GBQ8_0 · 2.2 t/s
- Intel Arc Pro A40 6GBQ8_0 · 2.2 t/s
- CPU only (system RAM)Q6_K · 3.7 t/s
Notes
MoE architecture (128 experts, 8 routed + 1 shared active per token) optimizing latency, activating ~3.8B parameters.
Compare Gemma 4 26B (MoE) with other models
How to run Gemma 4 26B (MoE) locally
Q4_K_M needs 17.6 GB: fits a single high-end consumer GPU (24 GB).
llama.cpp
./llama-server \
-hf unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q4_K_M \
-c 131072 -ngl 99 \
--temp 1.0 --top-p 0.95 --top-k 64Ollama
ollama run hf.co/unsloth/gemma-4-26B-A4B-it-GGUF:UD-Q4_K_MLM Studio: Search for 'Gemma 4 26B' and take the UD-Q4_K_M build. Vision works out of the box, but audio is not supported on this variant; only the E2B/E4B/12B siblings ship an audio encoder.
Why this quantization? Q4_K_M puts the weights at roughly 15.3 GB, already past what a 16 GB card can hold once KV cache and overhead are added, so 20 GB+ is the practical floor. Because 25 of its 30 attention layers cap their KV cache at a 1,024-token window, context barely adds to that bill until the full 262,144-token window is close: a 24 GB card holds Q4_K_M comfortably out past 100k tokens, and only needs to spill into system RAM right at the very top of the window.
Who is Gemma 4 26B (MoE) for?
Owners of a single 20-24 GB GPU who want fast, general-purpose local inference with very long context headroom, without needing the full 26B loaded to feel slow; the MoE routing keeps decode closer to a dense ~4B model's speed.
Best for
- Long-document summarization and multi-turn chat that stays well under the native 262k window
- General-purpose assistant tasks where decode speed matters more than frontier-tier reasoning
- Image understanding via the built-in vision encoder
- Budget-conscious local setups where a 20-24 GB card is the whole GPU budget
Not ideal for
- 16 GB GPUs, where even Q4_K_M weights alone leave little room for KV cache or overhead
- Audio input, use the E2B, E4B, or 12B Gemma 4 siblings instead
- Filling the entire 262,144-token window on a 24 GB card without any CPU offload
- Anyone who needs the vendor-reported benchmark scores independently verified before relying on them
So should you run it?
On a single 24 GB card this is a comfortable pick for most conversations: Q4_K_M holds well past 100k of context with no offloading. Push all the way to the full 262,144-token window and even this model needs a sliver of CPU offload on 24 GB; step up to a 32 GB card if you routinely fill the window. The MoE routing means decode stays closer to a dense ~4B model's speed than a dense 26B's, even though the full 26B has to be resident in memory to make that routing fast.
Continue reading
Frequently asked questions
- What are the VRAM requirements for Gemma 4 26B (MoE)?
- Gemma 4 26B (MoE) requires approximately 17.6 GB of VRAM at Q4_K_M quantization, 30.4 GB at Q8, and 56.9 GB at FP16. These numbers assume 8k context window; its hybrid attention stack caches far fewer than all layers, so VRAM grows much slower than linearly with context.
- How many parameters does Gemma 4 26B (MoE) have?
- Gemma 4 26B (MoE) has 25.2 billion total parameters, but only 3.8 billion are active per token thanks to its Mixture of Experts (MoE) architecture. This makes inference significantly faster than the total parameter count suggests.
- How capable is Gemma 4 26B (MoE)?
- Gemma 4 26B (MoE) achieves an MMLU-Pro score of 82.6, placing it among the most capable open-weight models available, competitive with frontier systems on general knowledge and reasoning.
- Can Gemma 4 26B (MoE) run on a 16 GB GPU?
- No. At Q4_K_M, Gemma 4 26B (MoE) needs 17.6 GB of VRAM, more than 16 GB. You will need a 24 GB GPU like the RTX 4090 or RTX 3090.
- Can Gemma 4 26B (MoE) run on a 24 GB GPU?
- Yes. Gemma 4 26B (MoE) fits in a 24 GB GPU at Q4_K_M, requiring 17.6 GB VRAM. GPUs with 24 GB include the RTX 4090, RTX 3090, and RTX 3090 Ti.
- What is the smallest quantization for Gemma 4 26B (MoE) that fits in 24 GB of VRAM?
- At NVFP4, Gemma 4 26B (MoE) needs 14.5 GB, the highest-quality quantization that fits in 24 GB of VRAM.
- What GPU do I need to run Gemma 4 26B (MoE) locally?
- A 24 GB GPU is the minimum. At Q4_K_M, Gemma 4 26B (MoE) needs 17.6 GB VRAM. Good options: RTX 4090 (24 GB), RTX 3090 (24 GB).