Models › Gemma

Google · 12.2B

Can I run Gemma 3 12B locally?

Gemma 3 12B needs about 8.8 GB at Q4_K_M with 8K context, so it fits fully on a 10 GB GPU.

Check it on your rig

Model facts

Parameters12.2B paramsIncludes the vision/audio encoder.
Max context131,072 tokens
Attention8 full-attention, 40 sliding-window (1024 tokens) layers
Good forChat, Vision
Sourcegoogle/gemma-3-12b-it

Quick answer

Smallest GPU that holds it fully: 10 GB (Q4_K_M, 8K context)

Consumer GPUs that fit it fully: 31 of 39

With partial offload (32 GB RAM): 8 more

Fitting fully is what you want: offloading works, but generation speed drops to what your system RAM can deliver.

Memory needed by quant and context

Total estimate: weights + KV cache (FP16) + runtime buffer. Pick a row whose number is below your VRAM (or about 2/3 of a Mac's memory). To try another quant, context length or KV cache precision, open Gemma 3 12B in the VRAM calculator.

Gemma 3 12B: memory needed at 8K context, by quant
  1. Q8_013.9 GB
  2. Q6_K11.2 GB
  3. Q5_K_M9.9 GB
  4. Q4_K_M8.8 GB
  5. Q3_K_M7.4 GB

Dashed lines mark common card or memory sizes in GB.

Quant4K ctx8K ctx32K ctx128K ctxQuality
Q8_013.7 GB13.9 GB15.4 GB21.4 GBnear-lossless
Q6_K10.9 GB11.2 GB12.7 GB18.7 GBvery close to full quality
Q5_K_M9.7 GB9.9 GB11.4 GB17.4 GBsmall quality loss
Q4_K_M8.5 GB8.8 GB10.3 GB16.3 GBthe usual sweet spot
Q3_K_M7.2 GB7.4 GB8.9 GB14.9 GBnoticeable quality loss

GPUs that run Gemma 3 12B

At 8K context with 32 GB of DDR5 system RAM for offload. Speeds are estimates.

GPUVRAMVerdictQuantSpeed (est.)
GeForce RTX 509032 GBFits on GPUQ8_065–100 tok/s
GeForce RTX 508016 GBFits on GPUQ8_035–55 tok/s
GeForce RTX 5070 Ti16 GBFits on GPUQ8_035–50 tok/s
GeForce RTX 507012 GBFits on GPUQ6_K30–50 tok/s
GeForce RTX 5060 Ti 16GB16 GBFits on GPUQ8_017–25 tok/s
GeForce RTX 5060 Ti 8GB8 GBPartial offloadQ4_K_M15–25 tok/s
GeForce RTX 50608 GBPartial offloadQ4_K_M15–25 tok/s
GeForce RTX 409024 GBFits on GPUQ8_035–60 tok/s
GeForce RTX 4080 Super16 GBFits on GPUQ8_025–45 tok/s
GeForce RTX 408016 GBFits on GPUQ8_025–40 tok/s
GeForce RTX 4070 Ti Super16 GBFits on GPUQ8_025–40 tok/s
GeForce RTX 4070 Ti12 GBFits on GPUQ6_K25–40 tok/s
GeForce RTX 4070 Super12 GBFits on GPUQ6_K25–40 tok/s
GeForce RTX 407012 GBFits on GPUQ6_K25–40 tok/s
GeForce RTX 4060 Ti 16GB16 GBFits on GPUQ8_011–17 tok/s
GeForce RTX 4060 Ti 8GB8 GBPartial offloadQ4_K_M12–20 tok/s
GeForce RTX 40608 GBPartial offloadQ4_K_M12–19 tok/s
GeForce RTX 3090 Ti24 GBFits on GPUQ8_035–60 tok/s
GeForce RTX 309024 GBFits on GPUQ8_035–55 tok/s
GeForce RTX 3080 Ti12 GBFits on GPUQ6_K45–70 tok/s
GeForce RTX 3080 10GB10 GBFits on GPUQ4_K_M45–75 tok/s
GeForce RTX 30708 GBPartial offloadQ4_K_M15–25 tok/s
GeForce RTX 3060 Ti8 GBPartial offloadQ4_K_M15–25 tok/s
GeForce RTX 3060 12GB12 GBFits on GPUQ6_K17–25 tok/s
GeForce RTX 2080 Ti11 GBFits on GPUQ5_K_M35–55 tok/s
GeForce RTX 2060 6GB6 GBPartial offloadQ4_K_M8–14 tok/s
Radeon RX 9070 XT16 GBFits on GPUQ8_019–35 tok/s
Radeon RX 907016 GBFits on GPUQ8_019–35 tok/s
Radeon RX 9060 XT 16GB16 GBFits on GPUQ8_010–17 tok/s
Radeon RX 7900 XTX24 GBFits on GPUQ8_030–50 tok/s
Radeon RX 7900 XT20 GBFits on GPUQ8_025–40 tok/s
Radeon RX 7900 GRE16 GBFits on GPUQ8_017–30 tok/s
Radeon RX 7800 XT16 GBFits on GPUQ8_018–30 tok/s
Radeon RX 7700 XT12 GBFits on GPUQ6_K16–30 tok/s
Radeon RX 76008 GBPartial offloadQ4_K_M11–19 tok/s
Radeon RX 6800 XT16 GBFits on GPUQ8_015–25 tok/s
Radeon RX 6700 XT12 GBFits on GPUQ6_K15–25 tok/s
Arc B58012 GBFits on GPUQ6_K15–25 tok/s
Arc A770 16GB16 GBFits on GPUQ8_015–25 tok/s

Macs and unified-memory PCs

The smallest memory configuration that holds it fully at 8K context.

ChipMemory neededQuantSpeed (est.)
Apple M116 GBQ5_K_M2.6–6 tok/s
Apple M1 Pro16 GBQ5_K_M8–16 tok/s
Apple M1 Max32 GBQ8_010–20 tok/s
Apple M1 Ultra64 GBQ8_020–45 tok/s
Apple M216 GBQ5_K_M4–8 tok/s
Apple M2 Pro16 GBQ5_K_M8–16 tok/s
Apple M2 Max32 GBQ8_010–20 tok/s
Apple M2 Ultra64 GBQ8_020–45 tok/s
Apple M316 GBQ5_K_M4–8 tok/s
Apple M3 Pro18 GBQ6_K5–11 tok/s
Apple M3 Max (40-core GPU)48 GBQ8_010–20 tok/s
Apple M3 Ultra96 GBQ8_020–45 tok/s
Apple M416 GBQ5_K_M5–10 tok/s
Apple M4 Pro24 GBQ8_07–15 tok/s
Apple M4 Max (16-core CPU)48 GBQ8_014–30 tok/s
Apple M516 GBQ5_K_M6–13 tok/s
AMD Ryzen AI Max+ 39564 GBQ8_08–13 tok/s
NVIDIA DGX Spark128 GBQ8_010–16 tok/s

Parameter count and architecture come from the model's Hugging Face page and config.json. Memory and speed are calculated; see methodology.