What Models?

Pick the right model for your GPU — in seconds.

Gemma 4 31B VRAM requirements: which GPUs can run it locally?

31B params 256K max context VisionTool useReasoning

The smallest GPU memory that runs Gemma 4 31B well is 20 GB (Q4_K_M, e.g. RTX 4000 Ada). 47 of 132 GPUs run it well.

MMLU 85.2

VRAM needed per quantization

QuantizationWeights16K context32K contextFull 256K
Q4_K_M17.1 GB18.3 GB19.5 GB36.5 GB
Q8_030.4 GB31.6 GB32.8 GB49.8 GB

Weights plus fp16 KV cache. Leave ~1 GB headroom for the inference engine.

Run it locally

Each command downloads the GGUF from Hugging Face, then Ollama starts a chat and llama.cpp starts an OpenAI-compatible server with a web UI on port 8080. Both fetch the vision projector (mmproj) automatically.

Ollama ollama run hf.co/unsloth/gemma-4-31B-it-GGUF:Q4_K_M
llama.cpp llama-server -hf unsloth/gemma-4-31B-it-GGUF:Q4_K_M
Ollama ollama run hf.co/unsloth/gemma-4-31B-it-GGUF:Q8_0
llama.cpp llama-server -hf unsloth/gemma-4-31B-it-GGUF:Q8_0

Cheapest GPUs that can run Gemma 4 31B

Lowest launch MSRP among GPUs that run its smallest quantization (Q4_K_M) well, with at least 16K context.

As an Amazon Associate, I earn from qualifying purchases.

GPUs that can run Gemma 4 31B

Best quantization that fits on each GPU, with the context and speed it gets. For chips with several memory sizes, the smallest that works is shown.

NVIDIA

AMD

Intel

Apple

  • M2 24 GB Q4_K_M 91K context · ~5 tok/s
  • M3 24 GB Q4_K_M 91K context · ~5 tok/s
  • M4 24 GB Q4_K_M 91K context · ~6 tok/s
  • M4 Pro 24 GB Q4_K_M 91K context · ~14 tok/s
  • M5 24 GB Q4_K_M 91K context · ~8 tok/s
  • M5 Pro 24 GB Q4_K_M 91K context · ~16 tok/s
  • M6 24 GB Q4_K_M 91K context · ~9 tok/s
  • M1 Max 32 GB Q8_0 21K context · ~12 tok/s
  • M1 Pro 32 GB Q8_0 21K context · ~6 tok/s
  • M2 Max 32 GB Q8_0 21K context · ~12 tok/s
  • M2 Pro 32 GB Q8_0 21K context · ~6 tok/s
  • M3 Max 36 GB Q8_0 73K context · ~9 tok/s
  • M3 Pro 36 GB Q8_0 73K context · ~4 tok/s
  • M4 Max 36 GB Q8_0 73K context · ~12 tok/s
  • M5 Max 36 GB Q8_0 73K context · ~14 tok/s
  • M1 Ultra 64 GB Q8_0 256K context · ~17 tok/s
  • M2 Ultra 64 GB Q8_0 256K context · ~17 tok/s
  • M3 Ultra 96 GB Q8_0 256K context · ~17 tok/s
  • M5 Ultra 96 GB Q8_0 256K context · ~25 tok/s
Check your exact setup in the full tool →