Gemma 3 12B is Google's open-weight model from March 2025. It reads text and images, supports over 140 languages and has a 128K tokens token context window.
At Q4_K_M it needs about 8.9 GB with an 8K conversation. Gemma 3 keeps a full-length cache in only one of every six layers (the rest look at the last 1,024 tokens), so long conversations cost much less memory than on most 12B models.
mmproj file.gemma3:12b-it-qat, keeps quality close to BF16 at 4-bit.ollama run gemma3:12bGemma 3 uses Google's Gemma Terms of Use rather than an OSI licence. Commercial use is allowed, subject to Google's prohibited use policy.
Last reviewed · How we calculate
gemma3:12bThe upright line marks the memory your device can give the model. Everything left of it runs on the GPU.
At Q4_K_M the longest conversation this device can hold is about 46K tokens.
Total memory for weights, conversation cache and runtime. Pick the row your card can hold at the length you need.
| Quantization | File size | 4K | 8K | 16K | 32K | Quality |
|---|---|---|---|---|---|---|
| Q4_K_Mrecommended | 7.4 GB | 8.6 GB | 8.9 GB | 9.4 GB | 10.5 GB | Small loss, best default |
| Q5_K_M | 8.7 GB | 9.9 GB | 10.1 GB | 10.7 GB | 11.8 GB | Very close to Q8 |
| Q6_K | 10.0 GB | 11.2 GB | 11.5 GB | 12.0 GB | 13.1 GB | Hard to tell from Q8 |
| Q8_0 | 13.0 GB | 14.2 GB | 14.4 GB | 15.0 GB | 16.0 GB | Near full quality |
| F16 | 24.4 GB | 25.6 GB | 25.9 GB | 26.4 GB | 27.5 GB | Full quality |
| Device | At Q4_K_M | At Q8_0 | Memory | Speed | Longest chat |
|---|---|---|---|---|---|
| RTX 4060 8GB | Slow, uses RAM | Slow, uses RAM | about 16 tok/s | Doesn't fit | |
| RTX 3060 12GB | Runs well | Slow, uses RAM | about 32 tok/s | 46K | |
| RTX 4070 12GB | Runs well | Slow, uses RAM | about 44 tok/s | 46K | |
| RTX 4060 Ti 16GB | Runs well | Runs, tight | about 25 tok/s | 104K | |
| Radeon RX 7600 XT 16GB | Runs well | Runs, tight | about 25 tok/s | 104K | |
| RTX 5060 Ti 16GB | Runs well | Runs, tight | about 39 tok/s | 104K | |
| Intel Arc A770 16GB | Runs well | Runs, tight | about 49 tok/s | 104K | |
| Radeon RX 9070 XT 16GB | Runs well | Runs, tight | about 56 tok/s | 104K | |
| RTX 4070 Ti Super 16GB | Runs well | Runs, tight | about 59 tok/s | 104K | |
| RTX 4080 Super 16GB | Runs well | Runs, tight | about 65 tok/s | 104K | |
| RTX 5080 16GB | Runs well | Runs, tight | about 84 tok/s | 104K | |
| RTX 3090 24GB | Runs well | Runs well | about 82 tok/s | 128K, full | |
| Radeon RX 7900 XTX 24GB | Runs well | Runs well | about 84 tok/s | 128K, full | |
| RTX 4090 24GB | Runs well | Runs well | about 89 tok/s | 128K, full | |
| RTX 5090 32GB | Runs well | Runs well | about 157 tok/s | 128K, full | |
| Mac mini M4 16GB | Runs well | Won't run | about 11 tok/s | 36K | |
| Mac M4 Pro 24GB | Runs well | Runs well | about 24 tok/s | 118K | |
| Mac M4 Pro 48GB | Runs well | Runs well | about 24 tok/s | 128K, full | |
| Mac M4 Max 64GB | Runs well | Runs well | about 48 tok/s | 128K, full | |
| Mac M4 Max 128GB | Runs well | Runs well | about 48 tok/s | 128K, full |
These apps use the same GGUF files, so the memory numbers above apply to each.
ollama run gemma3:12b
Downloads the Q4_K_M file on first run. For a longer conversation type /set parameter num_ctx 16384 inside the chat.
The speeds on this page are estimates from memory bandwidth. Run the model, note the tokens per second your app reports, and your number replaces the estimate for everyone with your hardware.
Add the first benchmarkInstall Ollama 0.6 or newer and run ollama run gemma3:12b (about 8.1 GB). You can drag an image into the chat or pass its file path to ask about it.
In Ollama, no. In llama.cpp or LM Studio you need the vision projector (mmproj) file from the same GGUF repo, about 0.85 GB, and it adds to the memory needed.
Google trained a quantization-aware version so the 4-bit model keeps quality close to BF16. Run it with ollama run gemma3:12b-it-qat. It is a good choice for 8 to 12GB cards.
Yes. The Gemma Terms of Use allow commercial use and fine-tuning, as long as you follow Google's prohibited use policy and pass the terms on when you share the model.
Five of every six layers only look at the last 1,024 tokens, so only 8 of its 48 layers keep a cache for the whole conversation. Long chats cost far less KV-cache memory than on a standard 12B model.
About 8.9 GB at Q4_K_M with an 8K conversation, 10.1 GB at Q5_K_M, 14.4 GB at Q8_0 and 25.9 GB at full F16 precision. Longer conversations add about 0.9 GB for every 8,000 tokens.
Only partly. It doesn't fit in 8 GB, so part of it moves to system RAM and speed drops to roughly 16 tokens a second.
Yes. The RTX 3060 12GB runs Gemma 3 12B fully on the GPU at Q4_K_M at about 32 tokens a second.
Yes. The RTX 4060 Ti 16GB runs Gemma 3 12B fully on the GPU at Q4_K_M at about 25 tokens a second.
Yes. A Mac with 16 GB of memory runs it comfortably at Q4. macOS keeps about a third of memory for the system, so smaller Macs may only manage short conversations.