Advisor / Models / Gemma 4 E4B

Gemma 4 E4B: VRAM requirements & speed

Gemma 4 E4B (8B dense, apache-2.0). Native context 128k. Smallest GGUF: 4.98 GB.

4.98 GBsmallest quant file
28hardware pages that fit it fully
0run with offload
0measured data points

Memory needed by quantization and context

GGUF file size plus f16 KV cache (and fixed overhead of ~1 GB per GPU not shown). Source: unsloth/gemma-4-E4B-it-GGUF.

QuantFile+8k ctx+32k ctx+128k ctx
Q4_K_M4.98 GB5.1 GB5.5 GB7.1 GB
Q5_K_M5.48 GB5.6 GB6.0 GB7.6 GB
Q6_K7.07 GB7.2 GB7.6 GB9.2 GB
Q8_08.19 GB8.3 GB8.7 GB10.4 GB

KV cache size by context length

Computed from the model's attention layout (sliding-window layers capped at their window).

Contextf16q8_0q4_0
8k0.16 GB0.08 GB0.04 GB
32k0.56 GB0.30 GB0.16 GB
128k2.17 GB1.15 GB0.61 GB

Which hardware runs Gemma 4 E4B? · 16k context

HardwareQuantFitMemoryTok/sSpeed source
RTX 5090 32GBQ8_0fits fully8.5 GB177scaled from measured
RTX PRO 6000 96GBQ8_0fits fully8.5 GB174scaled from measured
RTX 5080 16GBQ8_0fits fully8.5 GB105scaled from measured
RTX 5070 Ti 16GBQ8_0fits fully8.5 GB99scaled from measured
RTX 3090 24GBQ8_0fits fully8.5 GB97scaled from measured
RTX 4090 24GBQ8_0fits fully8.5 GB96scaled from measured
Mac Studio M5 Ultra 256GBQ8_0fits fully8.5 GB91estimated
Mac Studio M5 Ultra 512GB (ships late Oct 2026)Q8_0fits fully8.5 GB91estimated
2x RTX 3090 (48GB total)Q8_0fits fully8.5 GB78estimated
RTX 5070 12GBQ8_0fits fully8.5 GB77scaled from measured
RTX 4070 12GBQ8_0fits fully8.5 GB58scaled from measured
RTX 5060 Ti 16GBQ8_0fits fully8.5 GB52scaled from measured
8GB VRAM class (RTX 4060 8GB, 32GB RAM)Q5_K_Mfits fully5.8 GB47scaled from measured
Mac Studio M5 Max 128GBQ8_0fits fully8.5 GB46scaled from measured
MacBook Pro 14/16 M5 Max 128GBQ8_0fits fully8.5 GB46scaled from measured
RTX 3060 12GB (32GB RAM)Q8_0fits fully8.5 GB42scaled from measured
Mac Studio (2025) M3 Ultra 96GBQ8_0fits fully8.5 GB39scaled from measured
16GB VRAM class (RTX 4060 Ti 16GB, 32GB RAM)Q8_0fits fully8.5 GB35scaled from measured
MacBook Pro 14/16 (2024) M4 Max 128GBQ8_0fits fully8.5 GB32scaled from measured
AMD RX 7900 XTX 24GBQ8_0fits fully8.5 GB29scaled from measured
NVIDIA DGX Spark 128GBQ8_0fits fully8.5 GB29scaled from measured
AMD Ryzen AI Max+ PRO 495 (Ryzen AI Halo) 192GBQ8_0fits fully8.5 GB27estimated
MacBook Pro 14/16 M5 Pro 48GBQ8_0fits fully8.5 GB26scaled from measured
AMD Ryzen AI Max+ 395 (Strix Halo) 128GBQ5_K_Mfits fully5.8 GB19scaled from measured
Mac mini (2024) M4 Pro 64GBQ8_0fits fully8.5 GB19scaled from measured
MacBook Air M5 32GBQ5_K_Mfits fully5.8 GB18scaled from measured
Mac mini M6 32GBQ6_Kfits fully7.4 GB17scaled from measured
Mac mini / iMac M4 16GBQ4_K_Mfits fully5.3 GB16scaled from measured

Discrete GPUs are modelled with 32 GB of system RAM available for offload. Fits (at least with offload) on every listed configuration.

MLX conversions for Apple Silicon

RepoBitsSizeRuns with
mlx-community/gemma-4-e4b-it-4bit4-bit (4bit)5.1 GBmlx-vlm
mlx-community/gemma-4-e4b-it-8bit8-bit (8bit)8.9 GBmlx-vlm

Verified via the Hugging Face API on 2026-10-20. Compare with the GGUF sizes above (Q4_K_M 4.98 GB, Q8_0 8.19 GB). Mac hardware pages show the MLX command; there are no MLX speeds on this site yet. MLX vs GGUF.

Links

Model card · GGUF files · Open in the advisor · last verified 2026-10-20

FAQ

How much VRAM does Gemma 4 E4B need?

The smallest quant (Q4_K_M) is 4.98 GB, so you need roughly 6 GB for an 8k context including KV cache and overhead. At 128k context the f16 KV cache alone is 2.2 GB.

Can I run Gemma 4 E4B on a RTX 5090 32GB?

Yes: on RTX 5090 32GB it fits fully as Q8_0 at about 177 tok/s (scaled from measured). 28 of 28 hardware configurations fit it fully at 16k context.

What is the maximum context for Gemma 4 E4B?

128k tokens natively. Memory, not the model, is usually the limit: see the KV cache table above.

All models: model index · by memory: 8 GB · 12 GB · 16 GB · 24 GB · 32 GB · 48 GB · 64 GB · 96 GB · 128 GB · 192 GB · 256 GB · 512 GB. Numbers use the same fit math as the advisor; sources and methods.