THE BENCHMARQUE

Can I run Gemma 4 31B locally?

Gemma 4 31B needs about 21.1 GB of graphics memory at 4-bit (Q4_K_M). The cheapest card that holds it at today's prices is the GeForce RTX 4090 24GB at $4,799 from Best Buy, in a $5,802.94 complete build. On a Mac or another unified-memory computer, get at least 32 GB.

$4,799GeForce RTX 4090 24GB, Best Buy, December 5, 2026

Affiliate disclosure: Links to stores below may earn The Benchmarque a commission at no extra cost to you.

See the GeForce RTX 4090 24GB on AmazonOpen the $5,802.94 build

Memory needed by quantization

FileSizeGraphics memoryMac (unified)Cheapest card
3-bit (Q3_K_M)14.7 GB17 GB32 GBGeForce RTX 4090 24GB, $4,799
4-bit (Q4_K_M)18.3 GB21.1 GB32 GBGeForce RTX 4090 24GB, $4,799
5-bit (Q5_K_M)21.7 GB25 GB48 GBGeForce RTX 5090 32GB, $7,000
6-bit (Q6_K)25.2 GB29 GB48 GBGeForce RTX 5090 32GB, $7,000
8-bit (Q8_0)33.2 GB38.2 GB64 GB3 × Radeon RX 9060 XT 16GB, $2,249.97
16-bit (BF16)62.4 GB71.8 GB96 GB3 × GeForce RTX 4090 24GB, $14,397

Speed: we found no published measurement for Gemma 4 31B on these cards, so we don't give one.

Questions

How much VRAM does Gemma 4 31B need?

3-bit (Q3_K_M): 17 GB; 4-bit (Q4_K_M): 21.1 GB; 5-bit (Q5_K_M): 25 GB; 6-bit (Q6_K): 29 GB; 8-bit (Q8_0): 38.2 GB; 16-bit (BF16): 71.8 GB. That is the model file plus 15% for context and runtime.

What is the cheapest GPU for Gemma 4 31B?

The cheapest card that holds it at today's prices is the GeForce RTX 4090 24GB at $4,799 from Best Buy, in a $5,802.94 complete build.

Can Gemma 4 31B run on a Mac?

Yes, with at least 32 GB of unified memory at 4-bit (Q4_K_M). macOS lets the graphics side use about two thirds of memory up to 36 GB and about three quarters above that.

Builds for local AI: under $1,500 · under $2,000 · under $2,500 · under $4,000 · Other models: gpt-oss-20b · gpt-oss-120b · Qwen3 8B · Qwen3 14B · Qwen3 30B-A3B · Qwen3 32B · all

File sizes: unsloth/gemma-4-31B-it-GGUF on Hugging Face, checked 2026-12-04. Parameters: official model card. Graphics memory = file size + 15% for context and runtime; long contexts need more. Several cards: llama.cpp splits the layers across them; card prices only, and the motherboard and power supply must take that many cards. Prices as Best Buy showed them on the date given. Links may earn us a commission.