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-nvfp4.gguf | NVFP4 | 6.5G | NVIDIA 4-bit float — primary QAT quantization |
mmproj.gguf | — | 168M | Multimodal projector (vision + audio) |
chat_template.jinja file is also provided for use with chat-based inference.About NVFP4: NVFP4 is NVIDIA's 4-bit floating-point format (E2M1) with microscaled per-block scaling factors. It offers significant memory savings while preserving quality close to bfloat16. NVFP4 inference is accelerated on NVIDIA Blackwell GPUs and supported via llama.cpp on compatible hardware.
Note on mmproj: Themmproj.gguffile contains the vision and audio projectors needed for multimodal (image/audio) inference. It is shared across both quantization variants.
1# Run text-only inference
2./llama-cli \
3 -m gemma-4-12b-it-qat-nvfp4.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-nvfp4.gguf \
4 --host 0.0.0.0 --port 8080
5
6# Multimodal (image + audio)
7./llama-server \
8 -m gemma-4-12b-it-qat-nvfp4.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}