Can I Run Gemma 4 on 24 GB system RAM?

Written by Jakub Rusinowski · Last updated June 3, 2026

Yes, but it is tight

Yes, but it is tight — Gemma 4 26B-A4B at Q4_K_M needs about 18.2 GB of the 19.2 GB usable on 24 GB system RAM, leaving only ~1 GB before the runtime starts swapping. Expect ~19.6 tok/s (estimated), with room for about 8,192 tokens of context.

Confidence: low · Recommended quantization: Q4_K_M · Estimated speed: ~19.6 tok/s

24 GB system RAM — what it gives a model

Usable memory for models19.2 GB
Memory bandwidth90 GB/s

Gemma 4 on 24 GB system RAM: memory by quantization

QuantMemory neededFits 19.2 GB?Max contextEst. speedDownload
F1654.5 GB✗ No52 GB
Q8_030.1 GB✗ No27.6 GB
Q6_K23.8 GB✗ No21.3 GB
Q5_K_M20.9 GB✗ No18.4 GB
Q4_K_M18.2 GB✓ Yes8K~19.6 tok/s15.7 GB
Q3_K_M13.6 GB✓ Yes32K~24.8 tok/s11.1 GB
Q2_K11.1 GB✓ Yes32K~28.9 tok/s8.5 GB

Which Gemma 4 sizes fit

VariantNeeds at Q4_K_MFits?Est. speed
Gemma 4 31B21.3 GB✗ Too large
Gemma 4 26B-A4B18.2 GB✓ Fits~19.6 tok/s
Gemma 4 12B (Unified)9.4 GB✓ Fits~8.3 tok/s
Gemma 4 E4B6.8 GB✓ Fits~12.1 tok/s
Gemma 4 E2B4.9 GB✓ Fits~18 tok/s

What to watch out for

Recommended setup

llama.cpp (CPU build) or Ollama — both run without a GPU

How these numbers are calculated

FAQ

Can I run Gemma 4 on 24 GB system RAM?

Yes, but it is tight — Gemma 4 26B-A4B at Q4_K_M needs about 18.2 GB of the 19.2 GB usable on 24 GB system RAM, leaving only ~1 GB before the runtime starts swapping. Expect ~19.6 tok/s (estimated), with room for about 8,192 tokens of context.

Which quantization of Gemma 4 should I use on 24 GB system RAM?

Q4_K_M — it needs about 18.2 GB of the 19.2 GB available, downloads as roughly 15.7 GB, and runs at an estimated 19.6 tokens/sec with up to 8K of context.

What limits Gemma 4 on 24 GB system RAM?

Nothing binding — the model fits with headroom and generates at a usable speed on this hardware.

Which runtime should I use?

llama.cpp (CPU build) or Ollama — both run without a GPU

Other RAM Capacities

Other Models on 24 GB system RAM

Gemma 4 on GPUs

What This Model Is Good At

Model & Tools

← Can I Run It? | Gemma 4 model page | Check your hardware