Views
No views yet
| Property | Value |
|---|---|
| Architecture | Gemma4ForConditionalGeneration |
| Parameters | 12B |
| Layers | 48 |
| Embedding Dimension | 3840 |
| Feed Forward Length | 15360 |
| Attention Heads | 16 |
| Sliding Window | 1024 tokens |
| Context Length | 256K tokens (262144) |
| Vocabulary Size | 262K (262144) |
| Supported Modalities | Text, Image, Audio |
| Attention | Hybrid (sliding window + global, every 6th layer) |
| RoPE | Proportional RoPE (p-RoPE) on global layers |
| Logit Softcapping | 30.0 |
| File | Format | Size | Description |
|---|---|---|---|
gemma-4-12b-it-qat-Q4_0.gguf | Q4_0 | 6.5G | QAT Q4_0 — native QAT quantization |
gemma-4-12b-it-qat-Q4_K_M.gguf | Q4_K_M | 6.9G | K-quant, medium |
gemma-4-12b-it-qat-Q4_K_S.gguf | Q4_K_S | 6.6G | K-quant, small |
gemma-4-12b-it-qat-Q5_K_M.gguf | Q5_K_M | 8.0G | K-quant, medium |
gemma-4-12b-it-qat-Q5_K_S.gguf | Q5_K_S | 7.8G | K-quant, small |
gemma-4-12b-it-qat-Q6_K.gguf | Q6_K | 9.2G | K-quant, higher precision |
gemma-4-12b-it-qat-Q8_0.gguf | Q8_0 | 12G | 8-bit, highest GGUF precision |
gemma-4-12b-it-qat-bf16.gguf | bf16 | 23G | Full bfloat16 (unquantized) |
mmproj.gguf | — | 168M | Multimodal projector (vision + audio) |
chat_template.jinja file is also provided for use with chat-based inference.Note on QAT: The Q4_0 file is the native QAT quantization. The K-quant and Q8_0 variants are additional GGUF quantizations produced from the QAT checkpoint. The QAT optimization preserves quality close to bfloat16 while dramatically reducing memory requirements.
Note on mmproj: Themmproj.gguffile contains the vision and audio projectors needed for multimodal (image/audio) inference. It is shared across all quantization variants.
1# Run text-only inference
2./llama-cli \
3 -m gemma-4-12b-it-qat-Q4_0.gguf \
4 -p "Explain quantum computing in simple terms." \
5 --temp 1.0 --top-k 64 --top-p 0.951# Text-only
2./llama-server \
3 -m gemma-4-12b-it-qat-Q4_0.gguf \
4 --host 0.0.0.0 --port 8080
5
6# Multimodal (image + audio)
7./llama-server \
8 -m gemma-4-12b-it-qat-Q4_0.gguf \
9 --mmproj mmproj.gguf \
10 --host 0.0.0.0 --port 8080llama-server or llama-cli with the --mmproj flag pointing to mmproj.gguf. Refer to your inference engine's documentation for passing image/audio data alongside text prompts.Modality order tip: For best results, place image content before text and audio content after text in your prompt.
generation_config.json:| Parameter | Value |
|---|---|
| Temperature | 1.0 |
| Top-K | 64 |
| Top-P | 0.95 |
| BOS Token ID | 2 |
| EOS Token ID | 1 |
| Pad Token ID | 0 |
| Mask Token ID | 4 |
<|think|> token at the start of the system prompt.<|channel>thought
[Internal reasoning]
<channel|>
[Final answer]<|think|> token.Many libraries like Transformers and llama.cpp handle the chat template complexities automatically.
system role for structured conversations1@misc{gemmateam2026gemma4,
2 title={Gemma 4 Technical Report},
3 author={Gemma Team},
4 year={2026},
5 eprint={2607.02770},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2607.02770},
9}