Gemma 4 12B IT
Data checked: 2026-11-25. Review interval shown below. Prices need review after 30 days; specifications and benchmark collections after 90 days. Dates describe the recorded check, not a live retailer quote.
- Verified Checked against the primary source (for example the model’s config.json on Hugging Face).
- Sourced Taken from a cited source; not yet independently checked.
- Estimate Calculated with the published formulas; not a measurement.
- Sample Placeholder data for layout; not a real figure.
- Not yet measured No public, citable score found for this benchmark yet. We never fill the gap with a guess.
Verified metadata is not a measured performance result. Only cited runs matching model, device, quant and recorded context can replace speed estimates. Estimates assume one stream and F16 KV cache, with a ±25% uncertainty band. A published run applies only to its recorded runtime and conditions; missing settings are unknown.
Evidence labels · Freshness policy · Calculation methodology
At a glance
12.0B dense, with Q4_K_M at 7.12 GB, so a 16 GB card has room for context. Forty of forty-eight layers use a 1,024-token window.
At Q4_K_M and 8k context it needs about 8.6 GB: 7.1 GB of weights, 0.9 GB of KV cache and 0.6 GB of runtime overhead. It is dense, so every token reads all 7.1 GB of weights; speed scales with memory bandwidth. 40 of its 48 layers use a 1,024-token sliding window, which keeps the cache small at long context.
Estimated setup
Quant | Q4_K_M |
|---|---|
Smallest standard card size at 8k | 16 GB |
Max context, 24 GB card | 128k |
Runtimes | llama.cpp, Ollama, LM Studio, MLX |
Quantization options
Total memory = weights + KV cache (F16) + runtime overhead. File sizes marked Verified are the sum of GGUF files from unsloth/gemma-4-12B-it-GGUF on the Hugging Face API. KV cache costs 0.393 MB per token before sliding-window savings.
Quant | bpw | File | At 8k | At 32k | At 128k | KL-divergence | 24 GB card, 8k |
|---|---|---|---|---|---|---|---|
| Q3_K_M | 3.91 | 5.7 GBVerified | 7.1 GB | 8.9 GB | 16.1 GB | — | Fits |
| Q4_K_M | 4.85 | 7.1 GBVerified | 8.6 GB | 10.4 GB | 17.5 GB | — | Fits |
| Q5_K_M | 5.69 | 8.4 GBVerified | 9.8 GB | 11.6 GB | 18.8 GB | — | Fits |
| Q6_K | 6.56 | 9.8 GBVerified | 11.2 GB | 13.0 GB | 20.2 GB | — | Fits |
| Q8_0 | 8.50 | 12.7 GBVerified | 14.1 GB | 15.9 GB | 23.1 GB | — | Fits |
| F16 | 16.00 | 23.8 GBVerified | 25.3 GB | 27.1 GB | 34.3 GB | reference | Needs offload |
Why this matters: What is quantization? · What is a KV cache?
Decode speed by device
Q4_K_M, single stream, 8k context. Estimates use the decode formula (η × bandwidth ÷ bytes per token; see methodology) and are ±25% until measured.
Speed table
Device | Verdict | Decode, tok/s | Range | Runtime |
|---|---|---|---|---|
| GeForce RTX 5090 32 GB | Fits | 134.5Estimate | ±25% | llama.cpp (estimate) |
| 2× RTX 5090 64 GB | Fits | 134.5Estimate | ±25% | llama.cpp (estimate) |
| NVIDIA RTX PRO 6000 Blackwell 96 GB | Fits | 134.5Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 4090 24 GB | Fits | 75.7Estimate | ±25% | llama.cpp (estimate) |
| Radeon RX 7900 XTX 24 GB | Fits | 72.1Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5080 16 GB | Fits | 72.1Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 3090 24 GB (used) | Fits | 70.3Estimate | ±25% | llama.cpp (estimate) |
| 2× RTX 3090 (used) 48 GB | Fits | 70.3Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Ultra (base) | Fits | 67.6Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Ultra · 512 GB | Fits | 67.6Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5070 Ti 16 GB | Fits | 67.3Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 4080 Super 16 GB | Fits | 55.3Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5070 12 GB | Fits | 50.4Estimate | ±25% | llama.cpp (estimate) |
| Radeon RX 9070 XT 16 GB | Fits | 48.0Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Max · 128 GB | Fits | 34.6Estimate | ±25% | llama.cpp (estimate) |
| Intel Arc B580 12 GB | Fits | 34.2Estimate | ±25% | llama.cpp (estimate) |
| Intel Arc Pro B60 24 GB | Fits | 34.2Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5060 Ti 16 GB | Fits | 33.6Estimate | ±25% | llama.cpp (estimate) |
| MacBook Pro M4 Max 40c · 128 GB | Fits | 30.7Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 3060 12 GB (used) | Fits | 27.0Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Max (base) | Fits | 25.9Estimate | ±25% | llama.cpp (estimate) |
| Radeon RX 9060 XT 16 GB | Fits | 24.0Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 4060 Ti 16 GB | Fits | 21.6Estimate | ±25% | llama.cpp (estimate) |
| MacBook Pro M5 Pro · 48 GB | Fits | 17.3Estimate | ±25% | llama.cpp (estimate) |
| Intel Arc Pro B50 16 GB | Fits | 16.8Estimate | ±25% | llama.cpp (estimate) |
| Mac mini M4 Pro · 48 GB | Fits | 15.4Estimate | ±25% | llama.cpp (estimate) |
| NVIDIA DGX Spark FE 128 GB | Fits | 15.4Estimate | ±25% | llama.cpp (estimate) |
| Ryzen AI Max+ 395 mini PC 64 GB | Fits | 14.4Estimate | ±25% | llama.cpp (estimate) |
| Ryzen AI Max+ 395 mini PC 128 GB | Fits | 14.4Estimate | ±25% | llama.cpp (estimate) |
| Mac mini M4 · 16 GB | Fits | 6.8Estimate | ±25% | llama.cpp (estimate) |
| MacBook Air M4 · 24 GB | Fits | 6.8Estimate | ±25% | llama.cpp (estimate) |
| CPU only · Ryzen 9 9950X + 128 GB DDR5 | Fits | 5.6Estimate | ±25% | llama.cpp (estimate) |
Compare with similar-sized models
Model | Parameters | Quality score | Licence |
|---|---|---|---|
| Gemma 4 12B IT | 12.0 B | Not yet measuredNot yet measured | Apache-2.0 |
| Gemma 4 E4B IT | 8.0 B | Not yet measuredNot yet measured | Apache-2.0 |
| Llama 3.1 8B Instruct | 8.0 B | 1,187Sourced | Llama 3.1 Community License |
No exact match in the LMArena text overall board (lmarena-ai/leaderboard-dataset, published 2026-11-22). Checked 2026-11-25. Dataset
llama-perplexity --kl-divergence on a fixed corpus. Speed and quality are never merged into one score. Sample values are illustrative and must not be used to select a model.Architecture
Parameters, total | 11.96 BVerifiedsafetensors.total from the HF API. The model card lists 11.95B. Source |
|---|---|
Parameters, active per token | 11.96 BVerifiedDense: all parameters active. Source |
Layers | 48VerifiedSource |
Query heads | 16VerifiedSource |
KV heads (GQA) | 8VerifiedSliding-window layers use this KV shape. Full-attention layers use num_global_key_value_heads (1) and global_head_dim 512. The fit formula applies this shape to every layer. Source |
Head dimension | 256VerifiedSource |
Hidden size | 3840VerifiedSource |
Sliding window | 1,024 tokensVerifiedLocal attention window. Source |
Sliding-window layers | 40 of 48VerifiedCount of layer_types entries equal to sliding_attention (40 of 48). Source |
Operating conditions
Max context | 262,144 tokensVerifiedmax_position_embeddings. The model card calls this a 256K context. Source |
|---|---|
Licence | Apache-2.0VerifiedSource |
Weights | google/gemma-4-12B-it |
GGUF files | unsloth/gemma-4-12B-it-GGUF |
Usable memory, discrete | VRAM − 0.5 GB2 |
Usable memory, unified | RAM × 0.752 |
Fits when | total ≤ 90% of usable2 |
1 Estimates: decode ≈ η × bandwidth ÷ (active weights + KV cache), η 0.60 discrete / 0.45 unified / 0.50 CPU (see methodology). Not measurements.
2 Fit rules (see methodology), including the 0.75 unified-memory factor used by canirun.ai.
Flags: Verified = checked against config.json / HF API; Sourced = from a cited source; Estimate = formula; Sample = placeholder. Markdown · JSON · Report a problem