RunsLocalGPU checkerLocal AI toolsv5.9 · data Nov 23, 2026

All models / Gemma 4 31B

What GPU do I need to run Gemma 4 31B?

Gemma 4 31B has 30.7B parameters. At Q4_K_M with 8K context it needs about 19.8 GB of memory. The smallest graphics card that runs it fully on the GPU is about 24 GB, such as the RTX 3090.

Check your own hardware

Memory by quantization (8K context)

QuantBits per weightMemory needed
Q8_08.533.8 GB
Q6_K6.5626.4 GB
Q5_K_M5.6923.0 GB
Q4_K_M4.8519.8 GB
Q3_K_M3.9116.2 GB
IQ2_M2.711.6 GB

Hardware that runs it fully in fast memory

HardwareMemoryBest quantEst. speed
RTX 409024 GBQ5_K_M28 tok/s
RTX 3090 Ti24 GBQ5_K_M28 tok/s
RX 7900 XTX24 GBQ5_K_M26 tok/s
RTX 309024 GBQ5_K_M26 tok/s
RTX 509032 GBQ6_K43 tok/s
Radeon AI PRO R9700 32GB32 GBQ6_K15 tok/s
Arc Pro B70 32GB32 GBQ6_K14 tok/s
M5 32GB32 GBQ5_K_M4.2 tok/s
M4 32GB32 GBQ5_K_M3.3 tok/s
M5 Max 36GB36 GBQ5_K_M13 tok/s
M4 Max 36GB36 GBQ5_K_M11 tok/s
M4 Pro 48GB48 GBQ8_05.0 tok/s
M5 Max 64GB64 GBQ8_011 tok/s
M4 Max 64GB64 GBQ8_010 tok/s
M5 Pro 64GB64 GBQ8_05.6 tok/s
DGX Spark 64GB64 GBQ8_05.0 tok/s
Ryzen AI Max+ 395 64GB64 GBQ8_04.7 tok/s
RTX PRO 5000 Blackwell 72GB72 GBQ8_025 tok/s
RTX PRO 5500 Blackwell84 GBQ8_026 tok/s
RTX PRO 6000 Blackwell96 GBQ8_033 tok/s
M3 Ultra 96GB96 GBQ8_015 tok/s
M5 Max 128GB128 GBQ8_011 tok/s
M4 Max 128GB128 GBQ8_010 tok/s
RTX Spark 128GB128 GBQ8_05.5 tok/s
DGX Spark 128GB128 GBQ8_05.0 tok/s
Ryzen AI Max+ 395 128GB128 GBQ8_04.7 tok/s
M3 Ultra 256GB256 GBQ8_015 tok/s
M3 Ultra 512GB512 GBQ8_015 tok/s

Runs with offload to system RAM (slower)

How much VRAM does Gemma 4 31B need?

With 8K context, Gemma 4 31B needs about 33.8 GB at Q8_0, 19.8 GB at Q4_K_M and 11.6 GB at IQ2_M (weights plus KV cache and about 0.5 GB overhead). Each extra 8K tokens of context adds about 0.7 GB.

Can I run Gemma 4 31B on a Mac?

Yes, on an Apple Silicon Mac with at least 32 GB of unified memory, such as the M5 32GB (Q5_K_M, about 4.2 tokens/sec). macOS lets the GPU use roughly 70-75% of unified memory, so smaller Macs can't hold it at Q4_K_M or better.

Similar-size models

Best models by VRAM

Assumes 32 GB of DDR5 system RAM for offload. Estimates only; real speeds usually land within about 20%.