← All modelsMODEL CHECK

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

Parameters12B
Context window256K tokens
ProviderGoogle
LicenseApache 2.0
Released2026-04
Best forChat, Coding, Reasoning, Vision

Size by quantization

QuantizationBits/weightDownloadMin RAMQuality
Q2_K3.355.0 GB8 GBNoticeable loss
Q4_K_MRecommended4.857.3 GB12 GBRecommended
Q5_K_M5.658.5 GB16 GBHigh
Q8_08.512.8 GB24 GBNear-original
F161624.0 GB32 GBOriginal

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

ContextKV 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

HardwareBandwidth~Speed
NVIDIA RTX 3060 12GB360 GB/s~42 tok/s
NVIDIA RTX 4090 24GB1008 GB/s~118 tok/s
Apple M-series (base)100 GB/s~12 tok/s
Apple M-series Pro270 GB/s~32 tok/s
Apple M-series Max410 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:12b

Frequently asked questions

Gemma 4 12B System Requirements β€” Can I Run It Locally?