Google · released 2026-03-11
Gemma 4 26B-A4B
Gemma 4 mixture-of-experts with 3.8B active parameters, giving near-31B quality at much higher speed on GPUs and Macs.
- Parameters
- 26B
- Active / token
- 3.8B
- Context
- 256K
- Memory at Q4
- 16.9 GB
- License
- apache-2.0
- Images
- Yes
- Thinking mode
- Yes
Cheapest ways to use it $0.07 in / $0.34 out per 1M tokens via DeepInfra (9 providers) · or free on RTX 4060 Ti 16GB or better
Official size: 25.2B total / 3.8B active. We size memory from the actual files on Hugging Face.
Get started
1 · Try it now
Use via API from $0.07/1M on DeepInfraFree online chats are the quickest way to see if a model suits you before downloading anything.
2 · Download the files
You’ll need about 16.9 GB of memory at 4-bit. Check your machine →
3 · Run it on your machine
For a Linux GPU server, serving an OpenAI-compatible API:
vllm serve google/gemma-4-26B-A4B-itWill it run on my computer?
Gemma 4 26B-A4B needs roughly 16.9 GB of GPU memory at the usual Q4 quality, but only 3.8B parameters are used per token, so it runs faster than its size suggests and copes better with spilling into system RAM. Check your exact machine →
| Machine | Best file | Fit | Est. speed |
|---|---|---|---|
| RTX 4060 | Q4_K_M | Spills to RAM | ~22 tok/s · Usable |
| RTX 3060 12GB | Q4_K_M | Spills to RAM | ~32 tok/s · Fast |
| RTX 4060 Ti 16GB | Q3_K_M | Fits in memory | ~70 tok/s · Very fast |
| RTX 3090 | Q5_K_M | Fits in memory | ~125 tok/s · Very fast |
| RTX 4090 | Q5_K_M | Fits in memory | ~131 tok/s · Very fast |
| RTX 5090 | Q5_K_M | Fits in memory | ~179 tok/s · Very fast |
| M4 · 16 GB | — | Too big | — |
| M4 Pro · 48 GB | Q5_K_M | Fits in memory | ~44 tok/s · Fast |
| M4 Max · 128 GB | Q5_K_M | Fits in memory | ~78 tok/s · Very fast |
| M3 Ultra · 512 GB | Q5_K_M | Fits in memory | ~105 tok/s · Very fast |
| DGX Spark | Q5_K_M | Fits in memory | ~50 tok/s · Fast |
| Ryzen AI Max+ 395 | Q5_K_M | Fits in memory | ~39 tok/s · Fast |
PCs assume 64 GB system RAM. Estimates, not measurements — method.
Ways to run it
Use it through an API 9 providers
Heads up: providers serve this model at different compression levels (fp8, fp4, bf16). 4-bit versions are cheaper to run and can be slightly worse.
| Provider | Input / 1M | Output / 1M | Stated precision | Context | |
|---|---|---|---|---|---|
| DeepInfra | $0.07 | $0.34 | fp8 | 256K | source ↗ |
| Featherless | $0.07 | $0.34 | not stated | 32K | source ↗ |
| Cloudflare Workers AI | $0.10 | $0.30 | not stated | — | source ↗ |
| OVHcloud AI Endpoints | $0.10 | $0.41 | fp4 | 250K | source ↗ |
| Amazon Bedrock | $0.13 | $0.40 | not stated | — | source ↗ |
| Parasail | $0.13 $0.05 cached | $0.40 | not stated | — | source ↗ |
| Venice | $0.13 $0.05 cached | $0.40 | bf16 | 250K | source ↗ |
| SiliconFlow | $0.14 $0.05 cached | $0.40 | not stated | 256K | source ↗ |
| Google Vertex AI (Model Garden MaaS) | $0.15 $0.015 cached | $0.60 | not stated | — | source ↗ |
Prices in USD from each provider’s own pricing page, checked 2026-12-04. Cheapest highlighted.
Rent a GPU and run it yourself
| Setup | From | Per hour | File | Est. speed | Per 1M tokens* |
|---|---|---|---|---|---|
| 1× RTX A5000 24GB | RunPod community | $0.16 | 4-bit 16.9 GB | ~122 tok/s | $0.36 |
| 1× RTX 3090 24GB | Vast.ai marketplace | $0.21 | 4-bit 16.9 GB | ~138 tok/s | $0.42 |
| 1× RTX 3090 Ti 24GB | Vast.ai marketplace | $0.27 | 4-bit 16.9 GB | ~144 tok/s | $0.52 |
| 1× L4 24GB | Vast.ai marketplace | $0.32 | 4-bit 16.9 GB | ~61 tok/s | $1.45 |
*For one conversation at a time. Serving many users at once (batching, e.g. with vLLM) cuts the cost per token by 10× or more, which is how API providers get so cheap. Rental prices checked 2026-12-04. All GPU prices →
On your own machine
Free after the hardware. See the table above for which GPUs and Macs can run it, or check your exact machine. Easiest apps: Ollama and LM Studio.
Memory by quality level
| File | Quality | Weights | + 8K context | Total |
|---|---|---|---|---|
| Q3_K_M | Noticeably worse | 12.6 GB | 0.2 GB | 13.7 GB |
| Q4_K_M | Good — the usual pick | 15.6 GB | 0.2 GB | 16.9 GB |
| Q5_K_M | Very close to full | 18.4 GB | 0.2 GB | 19.7 GB |
| Q6_K | Near lossless | 21.3 GB | 0.2 GB | 22.7 GB |
| Q8_0 | Practically lossless | 27.4 GB | 0.2 GB | 29.0 GB |
| FP16 | Full precision | 51.6 GB | 0.2 GB | 53.9 GB |
Test answers
Gemma 4 26B-A4B is queued for our test suite. See tested models →