How Much VRAM Does Gemma 4 12B Need to Run Locally?
See devices that run itGemma 4 12B is a dense model with 12B parameters. At Q4 it needs at least 11GB of VRAM, and 16GB is the comfortable amount for an 8K context. The cheapest device that holds it is the GeForce RTX 2080 Ti, with no used-price data yet, at roughly 49.8 tokens/s.
Gemma 4 12B details
VRAM needed for Gemma 4 12B by quantization and context
Total at 8K| Quantization | WeightsGB | Total at 8KGB | Total at 32KGB | Total at 128KGB |
|---|---|---|---|---|
| Q4_K_M | 7.1GGUF | 10.7 | 19.7 | 55.7 |
| Q5_K_M | 8.4GGUF | 12.1 | 21.1 | 57.1 |
| Q8_0 | 12.7GGUF | 16.4 | 25.4 | 61.4 |
| FP16 | 23.8GGUF | 27.4 | 36.4 | 72.4 |
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.
Which GPUs can run Gemma 4 12B?
Q4_K_M · 8K context · sorted by eBay used price| Device | VRAMGB | Used price | Est. t/s | Suggested context |
|---|---|---|---|---|
| 11 | —No listings | 49.8 | 8K | |
| 16 | —No listings | 57.6 | 8K | |
| 16 | —No listings | 71.1 | 8K | |
| 16 | —No listings | 75.9 | 8K | |
| 16 | —No listings | 36.4 | 8K | |
| 16 | —No listings | 37.3 | 8K | |
| 16 | —No listings | 71.4 | 8K | |
| 20 | —No listings | 46.3 | 32K | |
| 24 | —No listings | 24.2 | 32K | |
| 24 | —No listings | 74.1 | 32K | |
| 24 | —No listings | 79.4 | 32K | |
| 24 | —No listings | 103.7 | 32K | |
| 24 | —No listings | 55.2 | 32K | |
| 24 | —No listings | 54.1 | 32K | |
| 32 | —No listings | 32.1 | 32K | |
| 32 | —No listings | 32.1 | 32K | |
| 32 | —No listings | 59 | 32K | |
| 32 | —No listings | 134.6 | 32K | |
| 32 | —No listings | 134.6 | 32K | |
| 32 | —No listings | 69.7 | 32K | |
| 32 | —No listings | 37.3 | 32K | |
| 32 | —No listings | 33.7 | 32K | |
| 32 | —No listings | 71.1 | 32K | |
| 32 | —No listings | 71.4 | 32K | |
| 40 | —No listings | 118.5 | 32K | |
| 40 | —No listings | 118.8 | 32K | |
| 48 | —No listings | 79.4 | 32K | |
| 48 | —No listings | 49.9 | 32K | |
| 48 | —No listings | 103.7 | 32K | |
| 64 | —No listings | 114.2 | 128K | |
| 64 | —No listings | 91.3 | 128K | |
| 72 | —No listings | 103.7 | 128K | |
| 84 | —No listings | 119.4 | 128K | |
| 96 | —No listings | 134.6 | 128K | |
| Mac Studio M4 Max 128GB | 128 | —No listings | 35.1 | 128K |
| Mac Studio M5 Max 128GB | 128 | —No listings | 39.3 | 128K |
| MacBook Pro M4 Max 128GB | 128 | —No listings | 35.1 | 128K |
| MacBook Pro M5 Max 128GB | 128 | —No listings | 39.3 | 128K |
| Mac Studio M3 Ultra 512GB | 512 | —No listings | 51.9 | 128K |
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.
Run Gemma 4 12B with Ollama, llama.cpp or vLLM
The Ollama library has no official tag for it yet.
llama.cpp pulls the GGUF straight from Hugging Face; -c sets the context length.
llama-server -hf unsloth/gemma-4-12B-it-GGUF:Q4_K_M -c 8192
vLLM serves the original-precision weights, which needs far more memory than GGUF and usually more than one GPU.
vllm serve google/gemma-4-12B-it
File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
FAQ
How much VRAM does Gemma 4 12B need?
At Q4_K_M with an 8K context Gemma 4 12B needs about 11GB of VRAM; 16GB leaves comfortable headroom.
What is the cheapest GPU that runs Gemma 4 12B?
The GeForce RTX 2080 Ti: 11GB of VRAM at roughly 49.8 tokens/s. We have no used-price data for it yet.
Can you run Gemma 4 12B with Ollama?
Not yet: the Ollama library has no official tag for it. You can load the GGUF with llama.cpp instead.