Can I run Gemma 4 26B A4B?
Gemma 4 26B A4B by Google needs around 24 GB of RAM at the recommended 4-bit quantization (15.3 GB download). Your hardware is checked below — instantly, nothing leaves your browser. Expect roughly ~151 tok/s on a Apple M-series Max.
Reading your hardware signals…
Real-world notes
Gemma 4 26B A4B is Google's mixture-of-experts entry, and the trick behind it is the naming: it holds 25.2B parameters total but only routes 3.8B of them per token. That means it generates at the speed of a small model while needing memory for the whole thing. At a 4-bit quant it lands around 15.3 GB, and you want at least 24 GB of RAM to load it comfortably. That rules out a 12 GB card like the RTX 3060, where it simply does not fit, and points you at a 24 GB GPU or an Apple Silicon machine with generous unified memory.
In daily use the MoE design pays off. On an RTX 4090 it runs at roughly 372 tokens per second, which is well past the point of streaming faster than you can read, and an M-series Max still turns in about 151 tok/s. CPU-only on DDR5 drops to around 22 tok/s, usable for batch work but not interactive chat. The context window is a generous 256K, but treat that as a ceiling: at 128K of context the full memory footprint climbs to about 43.4 GB, so on a 24 GB setup you keep working context modest unless you drop to the 10.6 GB q2 build.
Against Mistral Small 3.1 24B, a similarly-sized dense vision model, Gemma 4 generally feels quicker per token thanks to the sparse routing, though dense models of that class can hold an edge on the hardest single-pass reasoning. Its standout trait is that speed-to-capability ratio plus genuine vision and coding support in one package. The license is Apache 2.0, so you can use it commercially and in production without provider-specific restrictions, which is rare at this size and a real point in its favor. Pull it with ollama as gemma4:26b.
Specifications
Size by quantization
| Quantization | Bits/weight | Download | Min RAM | Quality |
|---|---|---|---|---|
| Q2_K | 3.35 | 10.6 GB | 16 GB | Noticeable loss |
| Q4_K_MRecommended | 4.85 | 15.3 GB | 24 GB | Recommended |
| Q5_K_M | 5.65 | 17.8 GB | 24 GB | High |
| Q8_0 | 8.5 | 26.8 GB | 48 GB | Near-original |
| F16 | 16 | 50.4 GB | 96 GB | Original |
Sizes are estimates from parameter count × bits per weight; real GGUF builds vary slightly. · Data updated: 2026-06-11 · How we calculate these numbers →
Memory needed by context length
| Context | KV cache (est.) | Total memory (Q4) |
|---|---|---|
| 4K tokens | ~0.9 GB | ~16.2 GB |
| 8K tokens | ~1.8 GB | ~17.1 GB |
| 32K tokens | ~7.0 GB | ~22.3 GB |
| 128K tokens | ~28.1 GB | ~43.4 GB |
The KV cache grows with context length — a model that fits at 4K can run out of memory at 32K. Estimates assume an FP16 cache with grouped-query attention; actual usage varies by runtime.
Estimated speed by hardware
| Hardware | Bandwidth | ~Speed |
|---|---|---|
| NVIDIA RTX 3060 12GB | 360 GB/s | Won't fit in VRAM |
| NVIDIA RTX 4090 24GB | 1008 GB/s | ~372 tok/s |
| Apple M-series (base) | 100 GB/s | ~37 tok/s |
| Apple M-series Pro | 270 GB/s | ~100 tok/s |
| Apple M-series Max | 410 GB/s | ~151 tok/s |
| CPU only (dual-channel DDR5) | 60 GB/s | ~22 tok/s |
Token generation is memory-bandwidth bound: tok/s ≈ bandwidth × 0.85 ÷ model size at Q4. Real-world numbers vary by runtime and context length.
Run it locally
The easiest path is Ollama — one command and you're chatting:
ollama run gemma4:26bSources & downloads