How to Deploy Gemma 4 26B A4B Locally
Gemma 4 26B A4B is a MoE model with 25.8B total parameters and 4B active per token. At Q4 it needs 18GB of VRAM to sit entirely on the GPU; with experts offloaded to system RAM it needs only 6GB of VRAM plus 13GB of RAM. The cheapest card that runs it today is the GeForce RTX 2080 Ti 22GB at about $387, at roughly 87.2 tokens/s. In offload mode the cheapest card that runs it is the Tesla V100 16GB, at roughly 41 tokens/s.
Gemma 4 26B A4B details
How much VRAM does Gemma 4 26B A4B need for local deployment?
MoE: all 25.8B parameters must stay resident in memory, while speed is set by the 4B active per token.
| Quantization | WeightsGB | Total at 8KGB | Total at 32KGB | Total at 128KGB |
|---|---|---|---|---|
| 1-bit | 6.1est. | 8.9 | 14.6 | 37.1 |
| 2-bit | 10.5GGUF | 12.5 | 18.1 | 40.6 |
| 3-bit | 12.9GGUF | 15.2 | 20.9 | 43.4 |
| 4-bit | 16.9GGUF | 17.3 | 22.9 | 45.4 |
| 5-bit | 21.2GGUF | 20.3 | 25.9 | 48.4 |
| 8-bit | 26.9GGUF | 29.6 | 35.3 | 57.8 |
| FP16 | 50.5GGUF | 53.4 | 59 | 81.5 |
Total = weights + KV cache (FP16) + 1GB runtime overhead. Weights marked GGUF are measured file sizes from the repository; the rest are estimated from bytes per parameter. Contexts beyond this model's 256K limit show a dash. Each tier takes whichever file of that bit width the repository has, preferring unsloth dynamic quants, so the exact file name varies by model.
Which GPUs can run Gemma 4 26B A4B?
Xianyu
| Device | VRAMGB | Price | Est. t/s | Suggested context |
|---|---|---|---|---|
| 22 | $3873 listings | 87.2 | 8K | |
| 32 | $4054 listings | 97.2 | 32K | |
| 32 | $47611 listings | 109.8 | 32K | |
| 20 | $63916 listings | 83 | 8K | |
| 24 | $78410 listings | 50.8 | 32K | |
| 24 | $86217 listings | 93.4 | 32K | |
| 24 | $1,20415 listings | 112.2 | 32K | |
| 32 | $1,4656 listings | 63.5 | 32K | |
| 32 | $1,6438 listings | 71.2 | 32K | |
| 40 | $1,6804 listings | 144 | 32K | |
| 32 | $1,8443 listings | 65.9 | 32K | |
| 64 | $2,0898 listings | 141.3 | 128K | |
| 24 | $2,32718 listings | 92.3 | 32K | |
| 64 | $2,75112 listings | 126.1 | 128K | |
| 48 | $3,2715 listings | 87.4 | 128K | |
| 24 | $3,49416 listings | 116.8 | 32K | |
| 24 | $3,55414 listings | 134.8 | 32K | |
| 32 | $3,84416 listings | 109.5 | 32K | |
| 48 | $3,9553 listings | 116.8 | 128K | |
| 40 | $4,6024 listings | 143.8 | 32K | |
| Mac Studio M4 Max 128GB | 128 | $4,78813 listings | 68 | 128K |
| 128 | $4,83231 listings | 48 | 128K | |
| 32 | $4,89213 listings | 152.3 | 32K | |
| MacBook Pro M4 Max 128GB | 128 | $5,2644 listings | 68 | 128K |
| Mac Studio M5 Max 128GB | 128 | $5,8816 listings | 73.9 | 128K |
| 32 | $6,51313 listings | 152.3 | 32K | |
| 48 | $6,95915 listings | 134.8 | 128K | |
| MacBook Pro M5 Max 128GB | 128 | $8,1487 listings | 73.9 | 128K |
| 72 | $9,66517 listings | 134.8 | 128K | |
| 84 | $10,11117 listings | 144.3 | 128K | |
| 96 | $18,4226 listings | 152.3 | 128K | |
| Mac Studio M3 Ultra 512GB | 512 | $19,3156 listings | 89.7 | 128K |
| 32 | —No listings | 63.5 | 32K | |
| 32 | —No listings | 97.6 | 32K | |
| 32 | —No listings | 108.3 | 32K | |
| 128 | —No listings | 34.3 | 128K |
Fits when weights + KV cache + runtime overhead is at or below usable memory, single card. "Offload" on MoE models means it runs with expert weights in system RAM (only attention layers and KV cache stay in VRAM); that speed assumes 70 GB/s RAM bandwidth. The context column is the largest tier that fits.
Recommended GPUs for Gemma 4 26B A4B with CPU/GPU offloading
Xianyu
Expert weights live in system RAM (needs at least 13 GB); VRAM holds only attention layers, shared experts and the KV cache, at least 6 GB at Q4. Speed is bound by RAM bandwidth (estimated at 70 GB/s) and is far slower than a full-VRAM setup.
| Device | VRAMGB | Price | RAM neededGB | Est. t/s |
|---|---|---|---|---|
| 16 | $131 | 13 | 40.5 | |
| 16 | $446 | 13 | 34.2 | |
| 16 | $461 | 13 | 35 | |
| 16 | $697 | 13 | 35 | |
| 16 | $907 | 13 | 35.2 | |
| 12 | $918 | 13 | 38.5 | |
| 16 | $1,152 | 13 | 38.9 | |
| 16 | $1,472 | 13 | 40.4 | |
| 16 | $1,851 | 13 | 40.9 |
Deploy Gemma 4 26B A4B locally with Ollama, llama.cpp or vLLM
The Ollama library has no official tag for it yet.
llama.cpp pulls the GGUF straight from Hugging Face; -c sets the context length.
llama-server -hf unsloth/gemma-4-26B-A4B-it-GGUF:Q4_K_M -c 8192
vLLM serves the original-precision weights, which needs far more memory than GGUF and usually more than one GPU.
vllm serve google/gemma-4-26B-A4B-it
File names follow that week's model-library snapshot; the definitions are in the methodology. Methodology
FAQ
How much VRAM does Gemma 4 26B A4B need?
At Q4_K_M with an 8K context Gemma 4 26B A4B needs about 18GB of VRAM; 24GB leaves comfortable headroom.
What is the cheapest GPU that runs Gemma 4 26B A4B?
The GeForce RTX 2080 Ti 22GB: 22GB of VRAM, currently about $387, at roughly 87.2 tokens/s.
Can you run Gemma 4 26B A4B with Ollama?
Not yet: the Ollama library has no official tag for it. You can load the GGUF with llama.cpp instead.