Views
No views yet
| Property | Value |
|---|---|
| Architecture | Gemma4ForConditionalGeneration |
| Effective Parameters | 2.3B (5.1B with embeddings) |
| Layers | 35 |
| Sliding Window | 512 tokens |
| Context Length | 128K tokens |
| Vocabulary Size | 262K |
| Supported Modalities | Text, Image, Audio |
| Vision Encoder Parameters | ~150M |
| Audio Encoder Parameters | ~300M |
| Attention | Hybrid (sliding window + global, every 5th layer) |
| RoPE | Proportional RoPE (p-RoPE) on global layers |
| File | Format | Size | Description |
|---|---|---|---|
gemma-4-E2B-it-qat-Q4_0.gguf | Q4_0 | 3.2G | QAT Q4_0 — native QAT quantization |
gemma-4-E2B-it-qat-Q4_K_M.gguf | Q4_K_M | 3.2G | K-quant, medium |
gemma-4-E2B-it-qat-Q4_K_S.gguf | Q4_K_S | 3.2G | K-quant, small |
gemma-4-E2B-it-qat-Q5_K_M.gguf | Q5_K_M | 3.4G | K-quant, medium |
gemma-4-E2B-it-qat-Q5_K_S.gguf | Q5_K_S | 3.4G | K-quant, small |
gemma-4-E2B-it-qat-Q6_K.gguf | Q6_K | 3.6G | K-quant, higher precision |
gemma-4-E2B-it-qat-Q8_0.gguf | Q8_0 | 4.7G | 8-bit, highest GGUF precision |
gemma-4-E2B-it-qat-bf16.gguf | bf16 | 8.7G | Full bfloat16 (unquantized) |
gemma-4-E2B-it-qat-bf16-Q4_0.gguf | Q4_0 | 42M | Q4_0 weights only (no embeddings) |
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.
1# Run text inference
2./llama-cli \
3 -m gemma-4-E2B-it-qat-Q4_0.gguf \
4 -p "Explain quantum computing in simple terms." \
5 --temp 1.0 --top-k 64 --top-p 0.951./llama-server \
2 -m gemma-4-E2B-it-qat-Q4_0.gguf \
3 --host 0.0.0.0 --port 8080Modality 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 IDs | 1, 106, 50 |
| Pad Token ID | 0 |
<|think|> token at the start of the system prompt.<|channel>thought
[Internal reasoning]
<channel|>
[Final answer]<|think|> token. For the E2B variant, thinking is fully off when disabled (no empty thought block is generated).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}