GPUs tracked45Price history8 dayssince Sep 3, 2026Price points (24h)6,955 pointsBiggest 24h dropMac Studio M4 Max 128GB-6.7%Biggest 24h riseGeForce RTX 5070 Ti+21.0%Data updated

How to Deploy Gemma 4 31B Locally

Gemma 4 31B is a dense model with 31.3B parameters. At Q4 it needs at least 26GB of VRAM, and 32GB is the comfortable amount for an 8K context. The cheapest card that runs it today is the Instinct MI50 32GB at about $405, at roughly 23.3 tokens/s.

Gemma 4 31B details

Launch dateMar 11, 2026
Hugging Face repogoogle/gemma-4-31B-it
Revision
LicenseApache-2.0
ArchitectureDense
Ollama tag
Min VRAM at Q426 GB · Q4_K_M · 8K
Parameters31.3B
Layers60
Hidden size5,376
KV heads16
Head dim256
Max context256K
VendorGoogle DeepMind

How much VRAM does Gemma 4 31B need for local deployment?

QuantizationWeightsGBTotal at 8KGBTotal at 32KGBTotal at 128KGB
1-bit7.3est.15.838.3128.3
2-bit11.8GGUF20.142.6132.6
3-bit15.4GGUF23.546136
4-bit18.3GGUF25.948.4138.4
5-bit21.7GGUF29.652.1142.1
8-bit32.6GGUF40.963.4153.4
FP1661.4GGUF69.792.2182.2

Total = weights + KV cache (FP16) + 1GB runtime overhead. Weights marked GGUF are measured file sizes from the repository; the rest are estimated from bytes per parameter. Contexts beyond this model's 256K limit show a dash. Each tier takes whichever file of that bit width the repository has, preferring unsloth dynamic quants, so the exact file name varies by model.

Which GPUs can run Gemma 4 31B?

Xianyu
DeviceVRAMGBPriceEst. t/sSuggested context
Instinct MI50 32GB32$4054 listings23.38K
Tesla V100 32GB32$47611 listings28.58K
Arc Pro B7032$1,4656 listings12.68K
Radeon AI PRO R970032$1,6438 listings14.78K
CMP 170HX 40GB40$1,6804 listings48.68K
Radeon PRO W780032$1,8443 listings13.28K
CMP 170HX 64GB64$2,0898 listings46.632K
Instinct MI21064$2,75112 listings36.932K
Radeon PRO W790048$3,2715 listings19.78K
RTX PRO 4500 Blackwell32$3,84416 listings28.48K
GeForce RTX 4090 48GB48$3,9553 listings31.98K
A100 40GB PCIe40$4,6024 listings48.58K
Mac Studio M4 Max 128GB128$4,78813 listings13.832K
DGX Spark 128GB128$4,83231 listings8.832K
GeForce RTX 5090 D32$4,89213 listings55.68K
MacBook Pro M4 Max 128GB128$5,2644 listings13.832K
Mac Studio M5 Max 128GB128$5,8816 listings15.532K
GeForce RTX 509032$6,51313 listings55.68K
RTX PRO 5000 Blackwell 48GB48$6,95915 listings42.18K
MacBook Pro M5 Max 128GB128$8,1487 listings15.532K
RTX PRO 5000 Blackwell 72GB72$9,66517 listings42.132K
RTX PRO 6000D84$10,11117 listings48.932K
RTX PRO 6000 Blackwell96$18,4226 listings55.632K
Mac Studio M3 Ultra 512GB512$19,3156 listings20.5128K
Arc Pro B6532No listings12.68K
GeForce RTX 4080 SUPER 32GB32No listings23.48K
Instinct MI10032No listings27.88K
Ryzen AI Max+ 395 128GB128No listings5.932K

Fits when weights + KV cache + runtime overhead is at or below usable memory, single card. "Offload" on MoE models means it runs with expert weights in system RAM (only attention layers and KV cache stay in VRAM); that speed assumes 70 GB/s RAM bandwidth. The context column is the largest tier that fits.

Deploy Gemma 4 31B locally with Ollama, llama.cpp or vLLM

Ollama

The Ollama library has no official tag for it yet.

llama.cpp

llama.cpp pulls the GGUF straight from Hugging Face; -c sets the context length.

llama-server -hf unsloth/gemma-4-31B-it-GGUF:Q4_K_M -c 8192
vLLM

vLLM serves the original-precision weights, which needs far more memory than GGUF and usually more than one GPU.

vllm serve google/gemma-4-31B-it

File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology

FAQ

How much VRAM does Gemma 4 31B need?

At Q4_K_M with an 8K context Gemma 4 31B needs about 26GB of VRAM; 32GB leaves comfortable headroom.

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

The Instinct MI50 32GB: 32GB of VRAM, currently about $405, at roughly 23.3 tokens/s.

Can you run Gemma 4 31B with Ollama?

Not yet: the Ollama library has no official tag for it. You can load the GGUF with llama.cpp instead.