Xylolabs

Gemma 4 12B Unified GGUF text decoder

Base model Formats License Code

GGUF quants of google/gemma-4-12B-it for llama.cpp, on CUDA, Metal or CPU. The vision and audio encoders are left out.

Files

How to run

Needs llama.cpp b8753 or newer.

llama-cli -m gemma-4-12B-it-Q5_K_M.gguf -c 2048 -n 32 --temp 0 --jinja \
  --chat-template-kwargs '{"enable_thinking":false}' \
  --single-turn -p "Name the capital of France. Reply with only the city."

Accuracy

Mean KL divergence and top-1 agreement against BF16 on 8 English and Korean chat conversations.

Quant Size Mean KL top-1
Q3_K_M-imat 6.087 GB 0.220635 84.198%
IQ4_XS-imat 6.635 GB 0.081309 90.386%
IQ4_XS 6.691 GB 0.153501 85.396%
Q5_K_M 8.547 GB 0.044045 92.661%
gemma-4-12B-it-GGUF mean KL divergence gemma-4-12B-it-GGUF top-1 accuracy

Which file for your hardware

Hardware Memory Recommended file Context that fits Notes
RTX 4090 / RTX 3090 24 GB gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
RTX 5090 32 GB gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
RTX 6000 Ada, or 2 x 24 GB 48 GB gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K Two 24 GB cards need the layers split across them.
One H100 80 GB gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
RTX PRO 6000 Blackwell (GDDR7) 96 GB gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
DGX Spark 128 GB unified gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
Mac Studio M5 Max 128 GB unified gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
One H200 (HBM3e) 141 GB gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
One B200 192 GB gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
Mac Studio M5 Ultra 256 GB unified gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
Mac Studio M5 Ultra 512 GB unified gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K
One B300 (HBM3e) 288 GB gemma-4-12B-it-Q5_K_M.gguf (8.5 GB) 256K

License

Apache 2.0, as declared by the original Unified model card and its Google license link. Full standard terms are in LICENSE, and NOTICE identifies the source and text conversion.

Citation

Cite the original Gemma 4 12B Unified model card and its linked Gemma 4 technical report.

Updates

  • 2026-11-27: KL re-measured on chat-template text; earlier values used a faulty reference.
  • 2026-11-23: Added a hardware recommendation table.
  • 2026-11-14: First release.
Downloads last month
3,750
GGUF
Model size
12B params
Architecture
gemma4
Hardware compatibility
Log In to add your hardware

3-bit

4-bit

5-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Xylolabs/gemma-4-12B-it-GGUF

Quantized
(421)
this model

Collections including Xylolabs/gemma-4-12B-it-GGUF