Gemma 4 26B-A4B VRAM Requirements

Gemma 4 26B-A4B needs about 15.6 GB of VRAM at Q4_K_M with an 8K context: 14.2 GB for weights, 0.4 GB for the KV cache and 1.0 GB of runtime overhead. At Q8_0 it needs 26.3 GB and at full FP16 precision 48.3 GB. The smallest GPU that runs it fully is the Apple M4 Pro 24GB.

By Google · Updated October 14, 2026 · Values from config.json on Hugging Face

15.6 GB VRAM

Gemma 4 26B-A4B at Q4_K_M with 8K context and the KV cache in FP16.

  • Weights 14.2 GB
  • KV cache 0.4 GB
  • Runtime overhead 1.0 GB

Mixture of experts: all 25.2B parameters need memory, but only 3.8B are read per token, so it runs at the speed of a much smaller model.

Which GPUs can run it

Gemma 4 26B-A4B VRAM by quantization

Total memory with an FP16 KV cache. "Smallest tier" is the smallest standard VRAM size with a 6% safety margin at 8K.

QuantizationBits/weightWeightsTotal at 8KTotal at 32KSmallest tier
Q4_K_M4.8514.2 GB15.6 GB16.1 GB20 GB
Q5_K_M5.6916.7 GB18.1 GB18.6 GB20 GB
Q6_K6.5919.3 GB20.7 GB21.2 GB24 GB
Q8_08.5024.9 GB26.3 GB26.8 GB32 GB
FP16 / BF1616.0046.9 GB48.3 GB48.8 GB64 GB
Q3_K_M3.9111.5 GB12.9 GB13.3 GB16 GB
Q2_K3.008.8 GB10.2 GB10.7 GB12 GB

VRAM by context length

At Q4_K_M. 25 of 30 layers use a 1,024-token sliding window. The 5 global layers keep the full context with only 2 KV heads of 512 dimensions, so each extra 1,000 tokens costs only about 20 MB in FP16. Figures assume separate keys and values; runtimes that store Gemma 4's unified key-value once need even less.

ContextKV cache (FP16)KV cache (Q8_0)Total, FP16 cacheTotal, Q8_0 cache
4K tokens0.3 GB0.1 GB15.5 GB15.4 GB
8K tokens0.4 GB0.2 GB15.6 GB15.5 GB
32K tokens0.8 GB0.4 GB16.1 GB15.7 GB
128K tokens2.7 GB1.4 GB18.0 GB16.7 GB
256K tokens5.2 GB2.8 GB20.5 GB18.0 GB

GPUs that can run Gemma 4 26B-A4B

At Q4_K_M with 8K context. "Best quant" is the highest-quality format that fits fully; "max context" is at Q4_K_M.

GPUUsable memoryStatusBest quantMax contextSpeed
Apple M4 Pro 24GB16.0 GBTight fitIQ4_XS–~57 tok/s
RTX 4060 Ti 16GB16.0 GBTight fitIQ4_XS–~59 tok/s
Radeon RX 9060 XT 16GB16.0 GBTight fitIQ4_XS–~56 tok/s
Tesla T4 16GB16.0 GBTight fitIQ4_XS–~65 tok/s
RTX 5060 Ti 16GB16.0 GBTight fitIQ4_XS–~84 tok/s
Radeon RX 6800 XT 16GB16.0 GBTight fitIQ4_XS–~82 tok/s
Intel Arc A770 16GB16.0 GBTight fitIQ4_XS–~81 tok/s
Radeon RX 7800 XT 16GB16.0 GBTight fitIQ4_XS–~95 tok/s
Radeon RX 9070 XT 16GB16.0 GBTight fitIQ4_XS–~96 tok/s
RTX 4070 Ti Super 16GB16.0 GBTight fitIQ4_XS–~112 tok/s
RTX 4080 16GB16.0 GBTight fitIQ4_XS–~117 tok/s
RTX 4080 Super 16GB16.0 GBTight fitIQ4_XS–~119 tok/s
RTX 5070 Ti 16GB16.0 GBTight fitIQ4_XS–~134 tok/s
RTX 5080 16GB16.0 GBTight fitIQ4_XS–~140 tok/s
RTX 2060 12GB12.0 GB72% on GPUQ2_K–~35 tok/s
RTX 3060 12GB12.0 GB72% on GPUQ2_K–~35 tok/s
RTX 3080 12GB12.0 GB72% on GPUQ2_K–~43 tok/s
RTX 4070 12GB12.0 GB72% on GPUQ2_K–~39 tok/s
RTX 4070 Super 12GB12.0 GB72% on GPUQ2_K–~39 tok/s
RTX 4070 Ti 12GB12.0 GB72% on GPUQ2_K–~39 tok/s

About Gemma 4 26B-A4B

Google's first Gemma mixture-of-experts: 128 experts plus a shared expert, 8 routed per token, about 3.8B active. It runs at small-model speed and just squeezes onto a 16 GB card at Q4_K_M; IQ4_XS leaves more room. Long contexts are cheap thanks to sliding-window layers and very lean global layers.

SpecValue
Parameters25.2B total, 3.8B active (MoE)
Layers30
Hidden size2816
Attention heads / KV heads16 / 8 (varies by layer)
Head dimension256
Vocabulary262,144
Max context (used here)256K tokens
Layers with a growing cache5 of 30
KV cache per token (FP16)20 KB
Released2026-04
LicenseApache 2.0

Gemma 4 26B-A4B VRAM: common questions

Can Gemma 4 26B-A4B run on a 16GB GPU?

Just. At Q4_K_M it needs about 15.6 GB with an 8K context, which is tight on 16 GB; IQ4_XS is more comfortable. The small cache means a 32K context adds only about 0.5 GB.

How much VRAM does Gemma 4 26B-A4B need?

About 15.6 GB at Q4_K_M with an 8K context, 26.3 GB at Q8_0 and 48.3 GB at FP16. Longer contexts add 0.02 GB per 1,000 tokens with an FP16 cache.

What is the cheapest GPU that can run Gemma 4 26B-A4B?

The smallest listed device that fits it fully at Q4_K_M with 8K context is the Apple M4 Pro 24GB (16.0 GB usable).

Does Gemma 4 26B-A4B need VRAM for all 25.2B parameters?

Yes. All experts must be loaded because any token can use any expert. Only 3.8B parameters are read per token, so it generates text about as fast as a 4B dense model.

Related