Gemma 4 31B
EstimatedNeeds at least 24GB memory (Q4_K_M, 19.5GB weights); 32GB recommended for comfortable headroom.
Params (Total / Active): 31B / 31B Architecture: dense License: Gemma Terms US Google Ads monthly search volume (2026-11-24): 1,900/mo
Quantization & memory footprint
| Quant | Weights | Min RAM | Recommended | Status |
|---|---|---|---|---|
| Q4_K_M | 19.5 GB | 24 GB | 32 GB | Estimated |
| Q8_0 | 34.4 GB | 48 GB | 56 GB | Estimated |
| FP16 | 65.1 GB | 80 GB | 96 GB | Estimated |
Throughput by device (tok/s)
No vendor-claimed or first-party measured runs recorded for this model yet. Use the hardware filter for bandwidth-based estimates.
| Hardware | Verdict | Quant | Speed | Status |
|---|---|---|---|---|
| Apple M1 8GB | Won't fit | Q4_K_M | ~2 tok/s | Estimated |
| Apple M4 16GB | Won't fit | Q4_K_M | ~4 tok/s | Estimated |
| RTX 3060 12GB | Won't fit | Q4_K_M | ~11 tok/s | Estimated |
| RTX 4090 24GB | Won't fit | Q4_K_M | ~32 tok/s | Estimated |
| Apple M4 Pro 24GB | Won't fit | Q4_K_M | ~8 tok/s | Estimated |
| RTX 5090 32GB | Tight | Q4_K_M | ~57 tok/s | Estimated |
| Mac Studio 64GB | Fits | Q4_K_M | ~12 tok/s | Estimated |
How to run locally
Ollama
ollama run gemma-4-31b
llama.cpp
llama-cli -hf <org>/gemma-4-31b-GGUF \ -ngl 99 -c 8192
LM Studio
lms get gemma-4-31b lms load gemma-4-31b --gpu max
KV cache & context memory
Official max context window and layer geometry are not yet verified (null). Estimate context overhead with our KV Cache Calculator.
Related models
Qwen 3.8 27B
dense · 27B Quant Q4_K_M
Weights 17GB
Min RAM 24GB
DeepSeek V4
moe · —Data pending: Official parameter count and weight files have not been independently confirmed. We never fabricate quantization sizes.
Llama 4
moe · —Data pending: Official parameter count and weight files have not been independently confirmed. We never fabricate quantization sizes.
Llama Community License Model details →