Can I run Gemma 4 12B?
Gemma 4 12B by Google needs around 12 GB of RAM at the recommended 4-bit quantization (7.3 GB download). Your hardware is checked below β instantly, nothing leaves your browser. Expect roughly ~42 tok/s on a NVIDIA RTX 3060 12GB.
Reading your hardware signalsβ¦
Real-world notes
Gemma 4 12B is a dense 12B vision-capable model for chat, coding, and reasoning, aimed at people who want one capable local assistant that also reads images. At a 4-bit quant it lands around 7.3 GB, so it fits on a 12 GB card like an RTX 3060 with room for context, and sits comfortably in unified memory on an Apple Silicon Mac. The model needs about 12 GB of RAM minimum to load. If you are tight, the 2-bit build drops to roughly 5 GB, though you trade quality for the squeeze.
In daily use it streams at about 42 tok/s on an RTX 3060, fast enough to read along with, and around 48 tok/s on an M-series Max. An RTX 4090 pushes it past 100. The 256K context window is generous, but treat it as headroom, not a default. Even at 128K context the model plus KV cache climbs to roughly 27.4 GB total, well beyond a single 12 GB card, so you will spill to system memory or slow down hard. Keep working context to a few thousand tokens on consumer hardware.
Against the lighter Gemma 3 4B, the 12B generally holds up better on multi-step reasoning and coding, which is the trade you make for the extra memory; Gemma 3 4B is the pick if you are constrained or only need chat and vision. The standout here is that vision and solid text reasoning ship in one model that still runs on a mid-range GPU. License is clean too: Apache 2.0 means you can use it commercially and in production without provider-specific strings.
Specifications
Size by quantization
| Quantization | Bits/weight | Download | Min RAM | Quality |
|---|---|---|---|---|
| Q2_K | 3.35 | 5.0 GB | 8 GB | Noticeable loss |
| Q4_K_MRecommended | 4.85 | 7.3 GB | 12 GB | Recommended |
| Q5_K_M | 5.65 | 8.5 GB | 16 GB | High |
| Q8_0 | 8.5 | 12.8 GB | 24 GB | Near-original |
| F16 | 16 | 24.0 GB | 32 GB | Original |
Sizes are estimates from parameter count Γ bits per weight; real GGUF builds vary slightly. Β· Data updated: 2026-06-11 Β· How we calculate these numbers β
Memory needed by context length
| Context | KV cache (est.) | Total memory (Q4) |
|---|---|---|
| 4K tokens | ~0.6 GB | ~7.9 GB |
| 8K tokens | ~1.3 GB | ~8.6 GB |
| 32K tokens | ~5.0 GB | ~12.3 GB |
| 128K tokens | ~20.1 GB | ~27.4 GB |
The KV cache grows with context length β a model that fits at 4K can run out of memory at 32K. Estimates assume an FP16 cache with grouped-query attention; actual usage varies by runtime.
Estimated speed by hardware
| Hardware | Bandwidth | ~Speed |
|---|---|---|
| NVIDIA RTX 3060 12GB | 360 GB/s | ~42 tok/s |
| NVIDIA RTX 4090 24GB | 1008 GB/s | ~118 tok/s |
| Apple M-series (base) | 100 GB/s | ~12 tok/s |
| Apple M-series Pro | 270 GB/s | ~32 tok/s |
| Apple M-series Max | 410 GB/s | ~48 tok/s |
| CPU only (dual-channel DDR5) | 60 GB/s | ~7 tok/s |
Token generation is memory-bandwidth bound: tok/s β bandwidth Γ 0.85 Γ· model size at Q4. Real-world numbers vary by runtime and context length.
Run it locally
The easiest path is Ollama β one command and you're chatting:
ollama run gemma4:12bSources & downloads