Gemma 4 12B
12B parameters · 256k context · apache-2.0 · released 2026-05-23
chatcodingvision
In short
Gemma 4 12B is an open model from Google with 12B parameters. At Q4_K_M, Gemma 4 12B needs about 8 GB of memory at 8k context and 10 GB at 128k, counting the weights, the KV cache and runtime buffers. The cheapest hardware in Canada that runs Gemma 4 12B fully in memory at 128k context is the NVIDIA GeForce RTX 3060 12GB, $563 at Amazon, at about 23 tok/s (estimated).
Updated . Speeds are estimates; how they are worked out.
Cheapest way to run it in Canada today
NVIDIA GeForce RTX 3060 12GB, used at eBay
Runs Gemma 4 12B at Q4_K_M fully in memory at 128k context, about 23 tok/sest.
$499
In stock, checked
What to run it on in Canada
Fully in memory at 128k context, priced at retailers today.
Cheapest
NVIDIA GeForce RTX 3060 12GB23tok/sest.Q4_K_M
$563
Best value
NVIDIA GeForce RTX 3060 12GB23tok/sest.Q4_K_M
$563
Fastest
NVIDIA GeForce RTX 509073tok/sest.Q8_0
$12,300
Mac
Mac Studio M3 Ultra 512GB35tok/sest.Q8_0
$28,000
All hardware that runs it
Everything we price, best value first. Two cards split the model by layers.
Memory needed
Weights, KV cache and runtime buffers at each context length (KV cache at fp16).
| Quant | File | @8k | @32k | @64k | @128k |
|---|---|---|---|---|---|
| Q4_K_Mgguf | 6.6 GB | 7.8 GB | 8.3 GB | 9.0 GB | 10.4 GB |
| mlx-4bitmlx | 6.3 GB | 7.5 GB | 8.0 GB | 8.7 GB | 10.0 GB |
| Q5_K_Mgguf | 7.8 GB | 9.0 GB | 9.5 GB | 10.2 GB | 11.6 GB |
| Q6_Kgguf | 9.1 GB | 10.3 GB | 10.8 GB | 11.5 GB | 12.9 GB |
| Q8_0gguf | 11.8 GB | 13.0 GB | 13.5 GB | 14.2 GB | 15.6 GB |
| mlx-8bitmlx | 11.8 GB | 13.0 GB | 13.5 GB | 14.2 GB | 15.6 GB |
Run it
Copy a command for the runtime you use.
- Q4_K_M
- Ollama
ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q4_K_M - LM Studio
lms get unsloth/gemma-4-12b-it-GGUF@q4_k_m - llama.cpp
llama-server -hf unsloth/gemma-4-12b-it-GGUF:Q4_K_M
- Ollama
- mlx-4bit
- LM Studio
lms get mlx-community/gemma-4-12B-it-4bit - MLX
mlx_lm.server --model mlx-community/gemma-4-12B-it-4bit
- LM Studio
- Q5_K_M
- Ollama
ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q5_K_M - LM Studio
lms get unsloth/gemma-4-12b-it-GGUF@q5_k_m - llama.cpp
llama-server -hf unsloth/gemma-4-12b-it-GGUF:Q5_K_M
- Ollama
- Q6_K
- Ollama
ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q6_K - LM Studio
lms get unsloth/gemma-4-12b-it-GGUF@q6_k - llama.cpp
llama-server -hf unsloth/gemma-4-12b-it-GGUF:Q6_K
- Ollama
- Q8_0
- Ollama
ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q8_0 - LM Studio
lms get unsloth/gemma-4-12b-it-GGUF@q8_0 - llama.cpp
llama-server -hf unsloth/gemma-4-12b-it-GGUF:Q8_0
- Ollama
- mlx-8bit
- LM Studio
lms get mlx-community/gemma-4-12B-it-8bit - MLX
mlx_lm.server --model mlx-community/gemma-4-12B-it-8bit
- LM Studio
Questions
- How much VRAM does Gemma 4 12B need?
- At Q4_K_M, Gemma 4 12B needs about 8 GB of memory at 8k context and 10 GB at 128k, counting the weights, the KV cache and runtime buffers.
- What is the best GPU for running Gemma 4 12B locally?
- The cheapest hardware in Canada that runs Gemma 4 12B fully in memory at 128k context is the NVIDIA GeForce RTX 3060 12GB, $563 at Amazon, at about 23 tok/s (estimated). The fastest we price is the NVIDIA GeForce RTX 5090, at about 73 tok/s.
- What is the cheapest way to run Gemma 4 12B in Canada today?
- The NVIDIA GeForce RTX 3060 12GB, $499 used at eBay, in stock: it runs Gemma 4 12B at Q4_K_M fully in memory at 128k context, at about 23 tok/s (estimated).
- Can I run Gemma 4 12B on a 16 GB GPU?
- Yes: at Q6_K it fits fully in 16 GB at 128k context. On the NVIDIA GeForce RTX 5080 it runs at about 49 tok/s (estimated).
- Can I run Gemma 4 12B on a 24 GB GPU?
- Yes: at Q8_0 it fits fully in 24 GB at 128k context. On the NVIDIA GeForce RTX 3090 Ti it runs at about 41 tok/s (estimated).
- How do I run Gemma 4 12B locally?
- With Ollama: ollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q4_K_M (the Q4_K_M build). LM Studio and llama.cpp commands are on this page.
- What licence is Gemma 4 12B released under?
- apache-2.0, which allows commercial use.