Gemma 4 E4B 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
An 8.00B checkpoint. The model card calls 4.5B of that effective and the rest embeddings. Q4_K_M is 4.98 GB, and most layers only look at the last 512 tokens.
At Q4_K_M and 8k context it needs about 5.7 GB: 5.0 GB of weights, 0.2 GB of KV cache and 0.6 GB of runtime overhead. It is dense, so every token reads all 5.0 GB of weights; speed scales with memory bandwidth. 35 of its 42 layers use a 512-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-E4B-it-GGUF on the Hugging Face API. KV cache costs 0.086 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 | 4.1 GBVerified | 4.8 GB | 5.3 GB | 7.5 GB | — | Fits |
| Q4_K_M | 4.85 | 5.0 GBVerified | 5.7 GB | 6.2 GB | 8.4 GB | — | Fits |
| Q5_K_M | 5.69 | 5.5 GBVerified | 6.2 GB | 6.7 GB | 8.9 GB | — | Fits |
| Q6_K | 6.56 | 7.1 GBVerified | 7.8 GB | 8.3 GB | 10.5 GB | — | Fits |
| Q8_0 | 8.50 | 8.2 GBVerified | 8.9 GB | 9.4 GB | 11.6 GB | — | Fits |
| F16 | 16.00 | 15.1 GBVerified | 15.8 GB | 16.3 GB | 18.5 GB | reference | Fits |
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 | 209.4Estimate | ±25% | llama.cpp (estimate) |
| 2× RTX 5090 64 GB | Fits | 209.4Estimate | ±25% | llama.cpp (estimate) |
| NVIDIA RTX PRO 6000 Blackwell 96 GB | Fits | 209.4Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 4090 24 GB | Fits | 117.8Estimate | ±25% | llama.cpp (estimate) |
| Radeon RX 7900 XTX 24 GB | Fits | 112.2Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5080 16 GB | Fits | 112.2Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 3090 24 GB (used) | Fits | 109.4Estimate | ±25% | llama.cpp (estimate) |
| 2× RTX 3090 (used) 48 GB | Fits | 109.4Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Ultra (base) | Fits | 105.2Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Ultra · 512 GB | Fits | 105.2Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5070 Ti 16 GB | Fits | 104.7Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 4080 Super 16 GB | Fits | 86.0Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5070 12 GB | Fits | 78.5Estimate | ±25% | llama.cpp (estimate) |
| Radeon RX 9070 XT 16 GB | Fits | 74.8Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Max · 128 GB | Fits | 53.8Estimate | ±25% | llama.cpp (estimate) |
| Intel Arc B580 12 GB | Fits | 53.3Estimate | ±25% | llama.cpp (estimate) |
| Intel Arc Pro B60 24 GB | Fits | 53.3Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 5060 Ti 16 GB | Fits | 52.4Estimate | ±25% | llama.cpp (estimate) |
| MacBook Pro M4 Max 40c · 128 GB | Fits | 47.9Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 3060 12 GB (used) | Fits | 42.1Estimate | ±25% | llama.cpp (estimate) |
| Mac Studio M5 Max (base) | Fits | 40.3Estimate | ±25% | llama.cpp (estimate) |
| Radeon RX 9060 XT 16 GB | Fits | 37.4Estimate | ±25% | llama.cpp (estimate) |
| GeForce RTX 4060 Ti 16 GB | Fits | 33.7Estimate | ±25% | llama.cpp (estimate) |
| MacBook Pro M5 Pro · 48 GB | Fits | 26.9Estimate | ±25% | llama.cpp (estimate) |
| Intel Arc Pro B50 16 GB | Fits | 26.2Estimate | ±25% | llama.cpp (estimate) |
| Mac mini M4 Pro · 48 GB | Fits | 23.9Estimate | ±25% | llama.cpp (estimate) |
| NVIDIA DGX Spark FE 128 GB | Fits | 23.9Estimate | ±25% | llama.cpp (estimate) |
| Ryzen AI Max+ 395 mini PC 64 GB | Fits | 22.4Estimate | ±25% | llama.cpp (estimate) |
| Ryzen AI Max+ 395 mini PC 128 GB | Fits | 22.4Estimate | ±25% | llama.cpp (estimate) |
| Mac mini M4 · 16 GB | Fits | 10.5Estimate | ±25% | llama.cpp (estimate) |
| MacBook Air M4 · 24 GB | Fits | 10.5Estimate | ±25% | llama.cpp (estimate) |
| CPU only · Ryzen 9 9950X + 128 GB DDR5 | Fits | 8.7Estimate | ±25% | llama.cpp (estimate) |
Compare with similar-sized models
Model | Parameters | Quality score | Licence |
|---|---|---|---|
| Gemma 4 E4B IT | 8.0 B | Not yet measuredNot yet measured | Apache-2.0 |
| Qwen3 4B | 4.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 | 8.00 BVerifiedsafetensors.total / 1e9 = 7.996, rounded to 2 decimals. Source |
|---|---|
Parameters, active per token | 8.00 BVerifiedDense: all parameters active. The model card describes 4.5B as effective and 8B with embeddings; the fit formula uses the full checkpoint. Source |
Layers | 42VerifiedSource |
Query heads | 8VerifiedSource |
KV heads (GQA) | 2Verifiednum_kv_shared_layers is 18, so some layers reuse KV. The fit formula does not share that cache. Full-attention layers also use a different global head shape. Source |
Head dimension | 256VerifiedSource |
Hidden size | 2560VerifiedSource |
Sliding window | 512 tokensVerifiedLocal attention window. Source |
Sliding-window layers | 35 of 42VerifiedCount of layer_types entries equal to sliding_attention (35 of 42). Source |
Operating conditions
Max context | 131,072 tokensVerifiedmax_position_embeddings. The model card calls the E4B context 128K. Source |
|---|---|
Licence | Apache-2.0VerifiedSource |
Weights | google/gemma-4-E4B-it |
GGUF files | unsloth/gemma-4-E4B-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