Chat & AssistantGoogle · Apr 2026

Gemma 4 31B Hardware Requirements

Google's biggest open model yet, and its first under Apache 2.0. Vision and video understanding built in, 256k context, and a top-3 LMArena debut. On a 24GB card this is the premium dense choice.

Vision + video inputApache 2.0 (first for Gemma)Top-3 arena debut

VRAM needed (Q4, 8k context)

21.9 GB

Cheapest GPU that runs it: RX 7900 XTX (~$838 used)

Check Price on Amazon

Updated July 2026. Estimates — see methodology below.

VRAM by Quantization

Weights + KV cache at 8k context + 1.2GB system overhead. Q4_K_M is the community default — quality loss is negligible for most use.

QuantizationWeightsKV cache (8k)Total VRAMCheapest GPU that fits
Q4_K_M

Recommended — near-lossless for most use, half the size of Q8

18.8 GB2.0 GB21.9 GBRX 7900 XTX (~$838 used)
Q5_K_M

Slightly higher quality than Q4 for ~18% more VRAM

22.1 GB2.0 GB25.2 GBRTX 5090 (from $2,800)
Q8_0

Effectively lossless — use if you have VRAM to spare

32.9 GB2.0 GB36.1 GBMulti-GPU / Mac territory
FP16

Full precision — only for fine-tuning or maximum fidelity

62.0 GB2.0 GB65.2 GBMulti-GPU / Mac territory

Longer context costs VRAM

KV cache grows linearly with context: 8k → 2.0 GB · 32k → 7.8 GB · 128k → 31.3 GB. If you plan to feed whole documents or codebases, size your GPU for the context you actually need, not just the weights.

Best GPUs for Gemma 4 31B

Best Value

AMD Radeon RX 7900 XTX

24GB · ~$838 used · ~26 tok/s

AMD Radeon RX 7900 XTX

The cheapest way to run Gemma 4 31B well. Expect fast responses at ~26 tokens/sec.

Best Performance

NVIDIA GeForce RTX 5090

32GB · $2,800–3,600 street · ~48 tok/s

NVIDIA GeForce RTX 5090

The fastest single-GPU experience for Gemma 4 31B. Expect fast responses at ~48 tokens/sec.

GPU Compatibility (Q4, 8k context)

Every GPU in our database, scored against Gemma 4 31B. Speed is estimated decode rate — memory-bandwidth-bound, so VRAM and bandwidth matter more than shader count.

GPUVRAMVerdictEst. speedPrice
RTX 509032 GBRuns great~48 tok/sFastfrom $2,800Check price
RX 7900 XTX24 GBTight fit~26 tok/sFast~$838 usedCheck price
RTX 309024 GBTight fit~25 tok/sFast~$1,150 usedCheck price
RTX 409024 GBTight fit~27 tok/sFast~$2,375 usedCheck price
RTX 306012 GBPartial offload~$238 used
Arc B58012 GBPartial offloadfrom $250
RX 6700 XT12 GBPartial offload~$315 used
Arc A77016 GBPartial offloadfrom $300
RX 7700 XT12 GBPartial offload~$415 used
RX 6800 XT16 GBPartial offload~$438 used
RX 7800 XT16 GBPartial offload~$488 used
RTX 407012 GBPartial offload~$500 used
RTX 4070 SUPER12 GBPartial offload~$563 used
RX 7900 XT20 GBPartial offload~$588 used
RTX 5060 Ti16 GBPartial offloadfrom $550
RX 907016 GBPartial offloadfrom $575
RTX 507012 GBPartial offloadfrom $600
RX 9070 XT16 GBPartial offloadfrom $600
RTX 4070 Ti SUPER16 GBPartial offload~$750 used
RTX 4080 SUPER16 GBPartial offload~$900 used
RTX 5070 Ti16 GBPartial offloadfrom $900
RTX 508016 GBPartial offloadfrom $1,250
Arc B57010 GBNot enough VRAMfrom $225
RTX 40608 GBNot enough VRAM~$275 used
RX 76008 GBNot enough VRAMfrom $250
RTX 4060 Ti8 GBNot enough VRAM~$338 used
RTX 30708 GBNot enough VRAM~$338 used
RTX 50608 GBNot enough VRAMfrom $325
RTX 308010 GBNot enough VRAM~$463 used

Frequently Asked Questions

How much VRAM do I need to run Gemma 4 31B?+

At the recommended Q4_K_M quantization with 8k context, Gemma 4 31B needs roughly 21.9GB of VRAM (18.8GB weights + KV cache + overhead). Q8 needs about 36.1GB and full FP16 about 65.2GB.

What is the cheapest GPU that runs Gemma 4 31B?+

AMD Radeon RX 7900 XTX (24GB, ~$838 used) is the cheapest current GPU in our database that runs Gemma 4 31B fully in VRAM at an estimated ~26 tokens/sec.

Can I run Gemma 4 31B on an RTX 3060?+

Only partially — the RTX 3060 12GB can offload some layers to system RAM, but expect a large speed penalty.

Can I run Gemma 4 31B on a Mac?+

Yes, if the Mac has enough unified memory: budget roughly 21.9GB of RAM for the Q4 version (plus what macOS itself uses). Apple Silicon runs GGUF models well via Ollama or LM Studio.

Can I run Gemma 4 31B on CPU only?+

Technically yes with enough system RAM, but a dense 31B model on CPU is slow — usually a few tokens/sec at best. Fine for testing, painful for daily use.

Is Gemma 4 31B free for commercial use?+

Yes. Gemma 4 31B is released under the Apache 2.0, which permits commercial use.

Related Models

How we calculate these numbers

VRAM = model weights (parameters × bits per weight ÷ 8) + KV cache (architecture-specific bytes per token × context length) + ~1.2GB runtime overhead. Speed estimates assume decode is memory-bandwidth-bound at ~50% utilization (lower for MoE models, which pay routing overhead), matching typical llama.cpp performance on consumer cards; real results vary with runtime, drivers, and settings. Quant sizes reflect GGUF K-quants, which keep some layers at higher precision. Figures are estimates for planning, not guarantees — when in doubt, buy more VRAM than you need today. Prices shown are launch MSRP; mid-2026 street prices often run well above MSRP due to the ongoing memory shortage, and used 24GB cards are holding their value unusually well.