Gemma 4 E2B VRAM Requirements

Gemma 4 E2B needs about 4.0 GB of VRAM at Q4_K_M with an 8K context: 2.9 GB for weights, 54 MB for the KV cache and 1.0 GB of runtime overhead. At Q8_0 it needs 6.1 GB and at full FP16 precision 10.6 GB. The smallest GPU that runs it fully is the RTX 3050 8GB.

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

4.0 GB VRAM

Gemma 4 E2B at Q4_K_M with 8K context and the KV cache in FP16.

  • Weights 2.9 GB
  • KV cache 54 MB
  • Runtime overhead 1.0 GB

Which GPUs can run it

Gemma 4 E2B 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.852.9 GB4.0 GB4.1 GB6 GB
Q5_K_M5.693.4 GB4.5 GB4.6 GB6 GB
Q6_K6.593.9 GB5.0 GB5.1 GB6 GB
Q8_08.505.0 GB6.1 GB6.3 GB8 GB
FP16 / BF1616.009.5 GB10.6 GB10.7 GB12 GB
Q3_K_M3.912.3 GB3.4 GB3.5 GB4 GB
Q2_K3.001.8 GB2.9 GB3.0 GB4 GB

VRAM by context length

At Q4_K_M. Only 15 of 35 layers have their own KV cache; the last 20 reuse caches from earlier layers. Of those 15, 12 use a 512-token sliding window and 3 keep the full context (1 KV head, 512-dimension keys and values), so the cache is tiny.

ContextKV cache (FP16)KV cache (Q8_0)Total, FP16 cacheTotal, Q8_0 cache
4K tokens30 MB16 MB3.9 GB3.9 GB
8K tokens54 MB29 MB4.0 GB3.9 GB
32K tokens0.2 GB0.1 GB4.1 GB4.0 GB
128K tokens0.8 GB0.4 GB4.7 GB4.3 GB

GPUs that can run Gemma 4 E2B

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
RTX 3050 8GB8.0 GBFitsQ8_0128K~46 tok/s
RTX 4060 8GB8.0 GBFitsQ8_0128K~56 tok/s
RTX 4060 Ti 8GB8.0 GBFitsQ8_0128K~59 tok/s
Radeon RX 7600 8GB8.0 GBFitsQ8_0128K~50 tok/s
RTX 3060 Ti 8GB8.0 GBFitsQ8_0128K~90 tok/s
RTX 3070 8GB8.0 GBFitsQ8_0128K~90 tok/s
RTX 5060 8GB8.0 GBFitsQ8_0128K~90 tok/s
RTX 5060 Ti 8GB8.0 GBFitsQ8_0128K~90 tok/s
RTX 3070 Ti 8GB8.0 GBFitsQ8_0128K~121 tok/s
Intel Arc B570 10GB10.0 GBFitsQ8_0128K~60 tok/s
RTX 3080 10GB10.0 GBFitsQ8_0128K~150 tok/s
Apple M4 16GB10.7 GBFitsQ8_0128K~25 tok/s
RTX 2080 Ti 11GB11.0 GBFitsQ8_0128K~123 tok/s
RTX 2060 12GB12.0 GBFitsFP16 / BF16128K~68 tok/s

About Gemma 4 E2B

An on-device model with about 2.3B effective parameters. The file holds 5.1B parameters because each layer has its own small per-layer embedding table; runtimes can keep those tables in system memory, so real GPU use can be lower than shown here. It accepts text, images and audio.

SpecValue
Parameters5.1B
Layers35
Hidden size1536
Attention heads / KV heads8 / 1 (varies by layer)
Head dimension256
Vocabulary262,144
Max context (used here)128K tokens
Layers with a growing cache3 of 35
KV cache per token (FP16)6 KB
Released2026-04
LicenseApache 2.0

Gemma 4 E2B VRAM: common questions

Why is Gemma 4 E2B bigger than 2B?

The E stands for effective. It has 2.3B parameters in the compute path plus per-layer embedding tables, for 5.1B in total. The tables are cheap lookups, so speed is like a 2B model.

How much VRAM does Gemma 4 E2B need?

About 4.0 GB at Q4_K_M with an 8K context, 6.1 GB at Q8_0 and 10.6 GB at FP16. Longer contexts add 0.01 GB per 1,000 tokens with an FP16 cache.

What is the cheapest GPU that can run Gemma 4 E2B?

The smallest listed device that fits it fully at Q4_K_M with 8K context is the RTX 3050 8GB (8.0 GB usable).

Related