RigBaseBuildsGPUsCan it run?GuidesBest rig for…By budgetRent before you buySubmit a buildNewsletterAdvertise

Best home rig for Gemma 4 31B

Will it fit my GPU? Best value GPU per euro →

Real, measured generation speeds for Gemma 4 31B on home hardware, fastest first. Different quants/engines aren't directly comparable.

BuildQuantEnginetok/sCost
RTX 5090: 2026 models (llamabench community)llama-bench tg128 (quant per result)llama.cpp70.0source
RTX 4090: 2026 models (llamabench community)llama-bench tg128 (quant per result)llama.cpp43.8source
HP ZBook Ultra G1a (Strix Halo laptop, 128 GB): Qwen3.6 35B-A3B at 59.4 tok/s, gpt-oss 120B at 44.74-bitOllama 0.34.08.8source
Rent before you buy: try this model on a cloud GPU for a few dollars first: Runpod (referral link; sign up with Google to get the new-user bonus)

Memory math: how much VRAM / RAM does Gemma 4 31B need?

Gemma 4 31B has 30.7B parameters (source: GGUF param count via llamabench.ai). Weight size = parameters × bits-per-weight ÷ 8, before context (KV cache) and runtime overhead.

FormatBits/weightWeightsSmallest common memory size that holds the weights alone
Q8_08.5032.6 GB48 GB
Q6_K6.5625.2 GB32 GB
Q5_K_M5.7021.9 GB24 GB
Q4_K_M4.8918.8 GB24 GB
Q3_K_M4.0015.3 GB16 GB
Q2_K3.1612.1 GB16 GB

Bits-per-weight for GGUF quants are llama.cpp's own figures (llama.cpp quantize README). "As measured" rows apply the source's stated bits-per-weight to the parameter count; real files differ slightly because some layers stay at higher precision. Try other combinations in the VRAM calculator.

FAQ

How much VRAM does Gemma 4 31B need?

The weights are about 18.8 GB at Q4_K_M (30.7B params × 4.89 bits ÷ 8, before context/KV cache). Add memory for context (KV cache) and the runtime. The smallest-memory setup with a measured result here, fully in memory, is RTX 4090 (24 GB) at 43.8 tok/s.

What is the fastest measured hardware for Gemma 4 31B?

RTX 5090: 70.0 tok/s generation (llama.cpp, llama-bench tg128 (quant per result)), from https://llamabench.ai/browse/rtx5090.

Which GPUs have measured results for Gemma 4 31B?

RTX 4090, RTX 5090, Strix Halo (Radeon 8060S).

Can it run on… RTX 4090 · RTX 5090 · Strix Halo (Radeon 8060S)

Related: what GPU do you need for 2026 models · all builds