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 the UK that runs Gemma 4 12B fully in memory at 128k context is the Intel Arc A770 16GB, £364 at eBay, at about 23 tok/s (estimated).

Updated . Speeds are estimates; how they are worked out.

Cheapest way to run it in the UK 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.

£313

In stock, checked

What to run it on in the UK

Fully in memory at 128k context, priced at retailers today.

All hardware that runs it

Everything we price, best value first. Two cards split the model by layers.

HardwareQuantFitsDecodePricetok/s per 1,000
Intel Arc A770 16GBQ6_Kfits23 tok/s£36462.7
NVIDIA GeForce RTX 3060 12GBQ4_K_Mfits23 tok/s£40058.0
NVIDIA GeForce RTX 4070Q4_K_Mfits33 tok/s£56857.2
AMD Radeon RX 9060 XT 16GBQ6_Kfits14 tok/s£63022.7
AMD Radeon RX 9070Q6_Kfits29 tok/s£68042.2
Mac mini M4 16GBQ4_K_Mfits8 tok/s£68511.8
NVIDIA GeForce RTX 5060 Ti 16GBQ6_Kfits23 tok/s£69032.8
Intel Arc B580Q4_K_Mfits24 tok/s£70033.9
NVIDIA GeForce RTX 5070Q4_K_Mfits43 tok/s£70062.0
Intel Arc Pro B50Q6_Kfits9 tok/s£74412.2
AMD Radeon RX 9070 XTQ6_Kfits29 tok/s£75038.3
NVIDIA Tesla P40Q8_0fits14 tok/s£78018.2
AMD Radeon RX 7800 XTQ6_Kfits28 tok/s£80035.0
AMD Radeon RX 7900 XTQ8_0fits29 tok/s£82935.0
NVIDIA RTX PRO 2000 BlackwellQ6_Kfits15 tok/s£85017.2
Intel Arc Pro B60Q8_0fits15 tok/s£94415.9
NVIDIA GeForce RTX 4060 Ti 16GBQ6_Kfits15 tok/s£97714.9
NVIDIA GeForce RTX 4070 SuperQ4_K_Mfits33 tok/s£98333.1
NVIDIA GeForce RTX 5070 TiQ6_Kfits45 tok/s£1,00045.3
NVIDIA GeForce RTX 4070 Ti SuperQ6_Kfits34 tok/s£1,32925.6
NVIDIA GeForce RTX 3090Q8_0fits38 tok/s£1,33028.8
AMD Radeon RX 7900 XTXQ8_0fits35 tok/s£1,39924.9
Intel Arc Pro B70Q8_0fits20 tok/s£1,42214.1
NVIDIA GeForce RTX 4080 SuperQ6_Kfits37 tok/s£1,43026.0
NVIDIA GeForce RTX 5080Q6_Kfits49 tok/s£1,47033.0
AMD Radeon AI PRO R9700Q8_0fits23 tok/s£1,60014.5
Mac mini M4 32GBQ8_0fits5 tok/s£1,6493.1
NVIDIA GeForce RTX 3090 TiQ8_0fits41 tok/s£2,19918.7
Mac Studio M4 Max 64GBQ8_0fits23 tok/s£3,2997.1
Mac mini M4 Pro 64GBQ8_0fits12 tok/s£3,3493.5
GMKtec EVO-X2 Ryzen AI Max+ 395 128GBQ8_0fits9 tok/s£3,5002.7
NVIDIA RTX PRO 4500 BlackwellQ8_0fits37 tok/s£4,5878.0
Mac Studio M3 Ultra 96GBQ8_0fits35 tok/s£4,9497.1
NVIDIA GeForce RTX 5090Q8_0fits73 tok/s£5,00014.7
NVIDIA GeForce RTX 4090Q8_0fits41 tok/s£5,0918.1
ASUS Ascent GX10 128GBQ8_0fits11 tok/s£5,2992.1
AMD Radeon PRO W7900Q8_0fits31 tok/s£5,7855.4
Lenovo ThinkStation PGX GB10 128GBQ8_0fits11 tok/s£5,9441.9
NVIDIA RTX PRO 5000 Blackwell 48GBQ8_0fits55 tok/s£7,3007.5
Mac Studio M3 Ultra 256GBQ8_0fits35 tok/s£8,2494.3
NVIDIA RTX A6000Q8_0fits31 tok/s£9,0003.5
NVIDIA RTX 6000 Ada GenerationQ8_0fits39 tok/s£11,2633.5
NVIDIA RTX PRO 6000 BlackwellQ8_0fits73 tok/s£13,5875.4
Mac Studio M4 Max 128GBQ8_0fits23 tok/s––
Framework Desktop Ryzen AI Max+ 395 128GBQ8_0fits9 tok/s––
Mac Studio M3 Ultra 512GBQ8_0fits35 tok/s––
NVIDIA DGX Spark 128GBQ8_0fits11 tok/s––
Mac mini M4 Pro 48GBQ8_0fits12 tok/s––
Framework Desktop Ryzen AI Max+ 395 64GBQ8_0fits9 tok/s––
AMD Radeon RX 7600 XTQ6_Kfits13 tok/s––
NVIDIA RTX PRO 4000 BlackwellQ8_0fits28 tok/s––
NVIDIA RTX PRO 4000 Blackwell SFF EditionQ8_0fits18 tok/s––
Minisforum MS-S1 Max Ryzen AI Max+ 395 128GBQ8_0fits9 tok/s––
NVIDIA RTX PRO 5000 Blackwell 72GBQ8_0fits55 tok/s––
Dell Pro Max with GB10 128GBQ8_0fits11 tok/s––
Beelink GTR9 Pro Ryzen AI Max+ 395 128GBQ8_0fits9 tok/s––
NVIDIA GeForce RTX 4060Q4_K_Moffload10 tok/s£37926.9
NVIDIA GeForce RTX 5050Q4_K_Moffload11 tok/s£38028.7
Intel Arc B570Q4_K_Moffload15 tok/s£39636.6
NVIDIA GeForce RTX 5060Q4_K_Moffload12 tok/s£40030.3
NVIDIA GeForce RTX 4060 Ti 8GBQ4_K_Moffload11 tok/s£40725.8
NVIDIA GeForce RTX 5060 Ti 8GBQ4_K_Moffload12 tok/s£47525.5
NVIDIA GeForce RTX 3080 10GBQ4_K_Moffload26 tok/s£59144.5

Memory needed

Weights, KV cache and runtime buffers at each context length (KV cache at fp16).

QuantFile@8k@32k@64k@128k
Q4_K_Mgguf6.6 GB7.8 GB8.3 GB9.0 GB10.4 GB
mlx-4bitmlx6.3 GB7.5 GB8.0 GB8.7 GB10.0 GB
Q5_K_Mgguf7.8 GB9.0 GB9.5 GB10.2 GB11.6 GB
Q6_Kgguf9.1 GB10.3 GB10.8 GB11.5 GB12.9 GB
Q8_0gguf11.8 GB13.0 GB13.5 GB14.2 GB15.6 GB
mlx-8bitmlx11.8 GB13.0 GB13.5 GB14.2 GB15.6 GB

Run it

Copy a command for the runtime you use.

  • Q4_K_M
    • Ollamaollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q4_K_M
    • LM Studiolms get unsloth/gemma-4-12b-it-GGUF@q4_k_m
    • llama.cppllama-server -hf unsloth/gemma-4-12b-it-GGUF:Q4_K_M
  • mlx-4bit
    • LM Studiolms get mlx-community/gemma-4-12B-it-4bit
    • MLXmlx_lm.server --model mlx-community/gemma-4-12B-it-4bit
  • Q5_K_M
    • Ollamaollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q5_K_M
    • LM Studiolms get unsloth/gemma-4-12b-it-GGUF@q5_k_m
    • llama.cppllama-server -hf unsloth/gemma-4-12b-it-GGUF:Q5_K_M
  • Q6_K
    • Ollamaollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q6_K
    • LM Studiolms get unsloth/gemma-4-12b-it-GGUF@q6_k
    • llama.cppllama-server -hf unsloth/gemma-4-12b-it-GGUF:Q6_K
  • Q8_0
    • Ollamaollama run hf.co/unsloth/gemma-4-12b-it-GGUF:Q8_0
    • LM Studiolms get unsloth/gemma-4-12b-it-GGUF@q8_0
    • llama.cppllama-server -hf unsloth/gemma-4-12b-it-GGUF:Q8_0
  • mlx-8bit
    • LM Studiolms get mlx-community/gemma-4-12B-it-8bit
    • MLXmlx_lm.server --model mlx-community/gemma-4-12B-it-8bit

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 the UK that runs Gemma 4 12B fully in memory at 128k context is the Intel Arc A770 16GB, £364 at eBay, 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 the UK today?
The NVIDIA GeForce RTX 3060 12GB, £313 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.

More hardware for local AI