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 $551, 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?
eBay
| Device | VRAMGB | Price | Est. t/s | Suggested context |
|---|---|---|---|---|
| 22 | $5513 listings | 87.2 | 8K | |
| 20 | $70024 listings | 83 | 8K | |
| 32 | $72023 listings | 109.8 | 32K | |
| 32 | $7687 listings | 97.2 | 32K | |
| 24 | $99925 listings | 93.4 | 32K | |
| 32 | $9997 listings | 108.3 | 32K | |
| 24 | $1,55080 listings | 112.2 | 32K | |
| 24 | $2,9503 listings | 92.3 | 32K | |
| 24 | $3,19940 listings | 116.8 | 32K | |
| 48 | $3,4953 listings | 87.4 | 128K | |
| 32 | $4,3003 listings | 109.5 | 32K | |
| 40 | $4,89913 listings | 143.8 | 32K | |
| 64 | $5,04611 listings | 126.1 | 128K | |
| MacBook Pro M4 Max 128GB | 128 | $5,5493 listings | 68 | 128K |
| 32 | $6,50012 listings | 152.3 | 32K | |
| Mac Studio M4 Max 128GB | 128 | $6,5474 listings | 68 | 128K |
| MacBook Pro M5 Max 128GB | 128 | $7,2505 listings | 73.9 | 128K |
| 96 | $16,9854 listings | 152.3 | 128K | |
| Mac Studio M3 Ultra 512GB | 512 | $22,00011 listings | 89.7 | 128K |
| 24 | —No listings | 50.8 | 32K | |
| 24 | —No listings | 134.8 | 32K | |
| 32 | —No listings | 63.5 | 32K | |
| 32 | —No listings | 63.5 | 32K | |
| 32 | —No listings | 97.6 | 32K | |
| 32 | —No listings | 152.3 | 32K | |
| 32 | —No listings | 71.2 | 32K | |
| 32 | —No listings | 65.9 | 32K | |
| 40 | —No listings | 144 | 32K | |
| 48 | —No listings | 116.8 | 128K | |
| 48 | —No listings | 134.8 | 128K | |
| 64 | —No listings | 141.3 | 128K | |
| 72 | —No listings | 134.8 | 128K | |
| 84 | —No listings | 144.3 | 128K | |
| 128 | —No listings | 48 | 128K | |
| Mac Studio M5 Max 128GB | 128 | —No listings | 73.9 | 128K |
| 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
eBay
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 | $305 | 13 | 40.5 | |
| 16 | $500 | 13 | 34.2 | |
| 16 | $568 | 13 | 35 | |
| 16 | $700 | 13 | 35 | |
| 12 | $775 | 13 | 38.5 | |
| 16 | $795 | 13 | 35.2 | |
| 16 | $1,200 | 13 | 40.4 | |
| 16 | $1,263 | 13 | 38.9 | |
| 16 | $1,800 | 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 $551, 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.