Gemma 4 26B-A4B: VRAM requirements & speed
Gemma 4 26B-A4B (25.81B MoE, 3.8B active, apache-2.0). Native context 256k. Smallest GGUF: 16.95 GB.
Memory needed by quantization and context
GGUF file size plus f16 KV cache (and fixed overhead of ~1 GB per GPU not shown). Source: unsloth/gemma-4-26B-A4B-it-GGUF.
| Quant | File | +8k ctx | +32k ctx | +128k ctx | +256k ctx |
|---|---|---|---|---|---|
| Q4_K_M UD-Q4_K_M | 16.95 GB | 17.3 GB | 17.8 GB | 19.8 GB | 22.5 GB |
| Q5_K_M UD-Q5_K_M | 21.15 GB | 21.5 GB | 22.0 GB | 24.0 GB | 26.7 GB |
| Q6_K UD-Q6_K | 23.17 GB | 23.5 GB | 24.1 GB | 26.1 GB | 28.7 GB |
| Q8_0 | 26.86 GB | 27.2 GB | 27.7 GB | 29.8 GB | 32.4 GB |
KV cache size by context length
Computed from the model's attention layout (sliding-window layers capped at their window).
| Context | f16 | q8_0 | q4_0 |
|---|---|---|---|
| 8k | 0.38 GB | 0.20 GB | 0.11 GB |
| 32k | 0.88 GB | 0.47 GB | 0.25 GB |
| 128k | 2.89 GB | 1.54 GB | 0.81 GB |
| 256k | 5.58 GB | 2.96 GB | 1.57 GB |
Which hardware runs Gemma 4 26B-A4B? · 16k context
| Hardware | Quant | Fit | Memory | Tok/s | Speed source |
|---|---|---|---|---|---|
| RTX 5090 32GB Amazon | Q8_0 | fits fully | 27.4 GB | 217 | measured |
| RTX PRO 6000 96GB Amazon | Q8_0 | fits fully | 27.4 GB | 214 | measured |
| Mac Studio M5 Ultra 256GB | Q8_0 | fits fully | 27.4 GB | 156 | estimated |
| Mac Studio M5 Ultra 512GB (orderable since Oct 28 2026) | Q8_0 | fits fully | 27.4 GB | 156 | estimated |
| AMD RX 7900 XTX 24GB Amazon | UD-Q5_K_M | fits fully | 21.7 GB | 141 | estimated |
| RTX 4090 24GB Amazon | UD-Q5_K_M | fits fully | 21.7 GB | 135 | scaled from measured |
| 2x RTX 3090 (48GB total) Amazon | Q8_0 | fits fully | 27.4 GB | 123 | estimated |
| RTX 3090 24GB Amazon | UD-Q5_K_M | fits fully | 21.7 GB | 112 | scaled from measured |
| RTX 5080 16GB | UD-Q4_K_M | MoE offload to CPU | 17.5 GB | 103 | estimated |
| RTX 5070 Ti 16GB | UD-Q4_K_M | MoE offload to CPU | 17.5 GB | 100 | estimated |
| RTX 5060 Ti 16GB | UD-Q4_K_M | MoE offload to CPU | 17.5 GB | 81 | estimated |
| 16GB VRAM class (RTX 4060 Ti 16GB, 32GB RAM) | UD-Q4_K_M | MoE offload to CPU | 17.5 GB | 68 | estimated |
| Mac Studio (2025) M3 Ultra 96GB Amazon | Q8_0 | fits fully | 27.4 GB | 62 | estimated |
| Mac Studio M5 Max 128GB Amazon | Q8_0 | fits fully | 27.4 GB | 58 | scaled from measured |
| MacBook Pro 14/16 M5 Max 128GB Amazon | Q8_0 | fits fully | 27.4 GB | 58 | scaled from measured |
| NVIDIA DGX Spark 128GB Amazon | Q8_0 | fits fully | 27.4 GB | 54 | scaled from measured |
| NVIDIA DGX Spark 64GB Amazon | Q8_0 | fits fully | 27.4 GB | 54 | scaled from measured |
| MacBook Pro 14/16 (2024) M4 Max 128GB Amazon | Q8_0 | fits fully | 27.4 GB | 49 | estimated |
| RTX 5070 12GB | UD-Q4_K_M | MoE offload to CPU | 17.5 GB | 48 | estimated |
| NVIDIA RTX Spark N1X 128GB | Q8_0 | fits fully | 27.4 GB | 47 | estimated |
| RTX 4070 12GB | UD-Q4_K_M | MoE offload to CPU | 17.5 GB | 46 | estimated |
| AMD Ryzen AI Max+ 395 (Strix Halo) 128GB Amazon | Q8_0 | fits fully | 27.4 GB | 43 | measured |
| AMD Ryzen AI Max+ PRO 495 (Ryzen AI Halo) 192GB | Q8_0 | fits fully | 27.4 GB | 43 | estimated |
| MacBook Pro 14/16 M5 Pro 48GB Amazon | Q8_0 | fits fully | 27.4 GB | 41 | estimated |
| 8GB VRAM class (RTX 4060 8GB, 32GB RAM) | UD-Q4_K_M | MoE offload to CPU | 17.5 GB | 30 | estimated |
| Mac mini (2024) M4 Pro 64GB Amazon | Q8_0 | fits fully | 27.4 GB | 30 | estimated |
| RTX 3060 12GB (32GB RAM) | UD-Q4_K_M | MoE offload to CPU | 17.5 GB | 27 | estimated |
| Mac mini M6 32GB Amazon | UD-Q5_K_M | fits fully | 21.7 GB | 27 | estimated |
| MacBook Pro 14 M6 32GB Amazon | UD-Q5_K_M | fits fully | 21.7 GB | 27 | estimated |
| MacBook Air M5 32GB Amazon | UD-Q5_K_M | fits fully | 21.7 GB | 24 | estimated |
| Mac mini / iMac M4 16GB | - | does not fit | - | - |
Discrete GPUs are modelled with 32 GB of system RAM available for offload. Does not fit even with offload: Mac mini / iMac M4 16GB. Rent instead: Vast.ai / RunPod. We may earn a referral credit if you sign up through these links.
MLX conversions for Apple Silicon
| Repo | Bits | Size | Runs with |
|---|---|---|---|
| mlx-community/gemma-4-26b-a4b-it-4bit | 4-bit (4bit) | 15.3 GB | mlx-vlm |
| mlx-community/gemma-4-26b-a4b-it-8bit | 8-bit (8bit) | 28 GB | mlx-vlm |
Verified via the Hugging Face API on 2026-11-30. Compare with the GGUF sizes above (Q4_K_M 16.95 GB, Q8_0 26.86 GB). Mac hardware pages show the MLX command; there are no MLX speeds on this site yet. MLX vs GGUF.
Links
Model card · GGUF files · Open in the advisor · last verified 2026-11-30
Can it run? Gemma 4 26B-A4B on: RTX 4090 24GB · RTX 3090 24GB · RTX 5090 32GB (all pairs)
FAQ
How much VRAM does Gemma 4 26B-A4B need?
The smallest quant (Q4_K_M) is 16.95 GB, so you need roughly 18 GB for an 8k context including KV cache and overhead. At 256k context the f16 KV cache alone is 5.6 GB.
Can I run Gemma 4 26B-A4B on a RTX 5090 32GB?
Yes: on RTX 5090 32GB it fits fully as Q8_0 at about 217 tok/s (measured). 22 of 31 hardware configurations fit it fully at 16k context.
What is the maximum context for Gemma 4 26B-A4B?
256k tokens natively. Memory, not the model, is usually the limit: see the KV cache table above.
All models: model index · by memory: 8 GB · 12 GB · 16 GB · 24 GB · 32 GB · 48 GB · 64 GB · 96 GB · 128 GB · 192 GB · 256 GB · 512 GB. Numbers use the same fit math as the advisor; sources and methods.