Gemma 4 26B VRAM Requirements: What GPU Do You Actually Need?

Gemma 4 26B needs about 21.5 GB of GPU memory to run its 4-bit QAT file with the full 256K context window, image input and a draft head, by our estimate. One 32 GB RTX 5090 holds that with around 10 GB to spare, and our pods generate 175 tokens per second on that card. A 16 GB card cannot hold the model file.
The rest of this page shows where the 21.5 GB goes, why the context window costs so little memory on this model, why 4-bit is the right format, and what to expect from each GPU size. The figures are for Gemma4-26B-A4B Uncensored as OpenLLM Buddy runs it; the refusal removal does not change the memory picture.
The short answer by GPU
| GPU | Memory | Does 4-bit QAT with 256K fit? | What is known |
|---|---|---|---|
| Any 16 GB card | 16 GB | No | The model file alone is 16.8 GB |
| RTX 4090 | 24 GB | On paper, with about 2.5 GB spare | 112 tokens per second measured by us |
| RTX 5090 | 32 GB | Yes, with about 10.5 GB spare | 175 tokens per second on our pods |
| RTX PRO 6000 | 96 GB | Yes, with a large margin | Offered on our pods; speed not yet measured |
| H100 (80 GB) and larger | 80 GB and up | Yes by memory | Not a configuration we run for this model; not measured |
If you want one line: buy or rent 32 GB and stop thinking about it. 24 GB works but is tight. Below 24 GB you are no longer running the model fully on the GPU.
The memory budget at 256K
Our estimate for a 32 GB RTX 5090 serving the full 262,144-token context:
| Part | What it is | Memory |
|---|---|---|
| Model file | All 25.2B parameters, 4-bit QAT | 16.8 GB |
| Vision projector | Turns an image into tokens the model can read | 1.2 GB |
| MTP draft head | Small extra head that drafts tokens ahead for speed | about 0.5 GB |
| Context cache (KV cache) | Saved work for every token already in the conversation | about 3 GB |
| Total | about 21.5 GB |
Three of the four lines are fixed. The model file, the vision projector and the draft head take the same memory whether your prompt is ten tokens or two hundred thousand. Only the context cache grows with the window you configure.
A note on the first line. 25.2 billion parameters at exactly 4 bits each would be 12.6 GB. The file is larger because 4-bit formats keep some parts of a model at higher precision, where rounding would hurt most. So "4-bit" describes the bulk of the weights, not every one.
You can drop two lines if you do not need them. Serving text only removes the 1.2 GB vision projector, and running without the draft head removes about 0.5 GB, at a cost in speed: the build's author reports about 35% faster generation with the draft head on, with identical output.
Why the context cache is so small
On most models, a long context window is the expensive part. While generating, a model saves intermediate results (keys and values) for every token it has already seen, in every layer, so that it does not redo that work for each new token. This is the KV cache. Its size scales with two things: how many tokens are in the window, and how many layers store them.
Gemma 4 26B breaks the second half of that rule. Of its 30 layers, only 5 keep the full context. The cache those 5 layers build for 256K tokens comes to about 3 GB by our estimate.
Compare that with Qwen3.8-27B Uncensored, a dense model of similar total size with 64 layers. For the same 256K window, on the same RTX 5090, its cache takes about 9.5 GB even when stored in 8-bit form. That is three times the memory for the same number of tokens.
What this means when you size a GPU:
- Context is cheap here. You do not have to choose between a long window and fitting on the card. The full 256K comes along for about 3 GB.
- Shrinking the window saves little. On many models, people cut context to squeeze onto a smaller GPU. Here the cache is the smallest of the large items, so that trick buys very little. The 16.8 GB model file is the cost you cannot avoid.
- The headroom is real. On a 32 GB card about a third of the memory is still unused at full context.
A small cache says nothing about speed at long context: a prompt of 200,000 tokens still has to be read before the first word comes out. How AI caching works and why context length matters cover that side.
Why 4-bit is the format to run: QAT
With most open models, the 4-bit file is a trade. Someone takes the finished full-precision weights, rounds them to 4 bits, and accepts a small loss in accuracy in exchange for a file that fits on a consumer GPU. People with more memory then reach for 5-bit, 6-bit or 8-bit files to get closer to the original.
Gemma 4 does not work that way. It is quantization-aware trained (QAT) for 4-bit: during training, the model already operates under simulated 4-bit rounding, so the weights it learns are ones that still work after rounding. Google's position is that the 4-bit file is the intended one, not a compromise.
Two practical consequences:
- You do not need a bigger GPU to get the "real" model. The 4-bit QAT file is the real model as its maker meant it to be run.
- The memory budget above is the one to plan around. There is no hidden step up in quality that a 48 GB or 80 GB card would unlock through a larger file. Extra memory buys headroom, not a better Gemma.
We have no verified sizes or quality figures for higher-precision Gemma 4 26B files, so this guide does not quote any.
A4B: total parameters set the memory, active parameters set the speed
The "A4B" in the model's full name means about 4 billion active parameters. Gemma 4 26B is a mixture-of-experts model with 128 experts, and it routes each token through 8 of them, so about 3.8B of the 25.2B parameters do work on any one token.
A common mistake is to read that as "it only needs memory for a 4B model". It does not. The router can pick any expert for the next token, so all 128 must be loaded and ready. Memory follows the total: 25.2B parameters, 16.8 GB.
What the active count changes is speed. Each token costs the GPU roughly the arithmetic of a 4B model, which is why a 25B-class model reaches 175 tokens per second on an RTX 5090, against 79 for the dense Qwen3.8-27B on the same card. The Gemma4-26B-A4B Uncensored guide explains the design in more depth.
Why smaller GPUs fail
16 GB and below. The model file is 16.8 GB, which is already more than the card holds before the vision projector, draft head or any context is counted. Software such as llama.cpp can keep part of a model in system RAM and run those layers on the CPU, so the model will load, but the layers left off the GPU run far slower. We have no measured speed for a split setup, so no figure is given here.
24 GB. By the same estimate the model needs 21.5 GB, which leaves roughly 2.5 GB on an RTX 4090. That fits on paper, and we have measured 112 tokens per second on that card. The margin is the issue on a desktop: your display, browser and other apps also take GPU memory, and anything that claims more than the spare 2.5 GB pushes the model out. If it fails to load at full context, drop the vision projector or lower the context window slightly. On a headless machine the margin is easier to keep.
32 GB. Nothing to manage. Full context, vision and the draft head all fit with about 10.5 GB unused.
Which setups work, and the trade-off
- RTX 5090 (32 GB). The configuration we measure and recommend. 175 tokens per second, full 256K, everything switched on.
- RTX 4090 (24 GB). Works with a thin margin. 112 tokens per second in our measurement, so the 5090 is about 56% faster.
- RTX PRO 6000 (96 GB). Offered on OpenLLM Buddy for this model. It has far more memory than the model needs. Speed on this card is not yet measured, so we do not claim it is faster or slower than the 5090.
- Data-centre GPUs (H100, H200, B200). They have the memory, but Gemma 4 26B does not need it, and we do not run this model on them. Paying for 80 GB or more to hold 21.5 GB makes sense only if you already own the card.
Running it yourself versus renting a pod
If you have a 24 GB or 32 GB card, running Gemma 4 26B at home is realistic. What it involves:
- Download. The 4-bit QAT model file (16.8 GB), the vision projector (1.2 GB) and the draft head (about 0.5 GB): roughly 18.5 GB in all.
- Drivers and runtime. A current NVIDIA driver and a GPU-enabled build of llama.cpp. The draft head needs a build recent enough to support multi-token prediction.
- Serving flags. You have to ask for the full context, push every layer to the GPU, load the vision projector and enable the chat template that makes tool calls work.
- Exposure. If anything outside your machine will call it, you also need HTTPS and an API key in front.
A typical llama.cpp launch looks like this. Flag names vary between versions, so check yours:
llama-server \
-m ./gemma-4-26b-a4b-qat-q4.gguf \
--mmproj ./gemma-4-26b-mmproj.gguf \
-c 262144 \
-ngl 99 \
--jinja \
--host 127.0.0.1 --port 8080 \
--api-key YOUR_API_KEY
The file names above are placeholders for whatever your downloaded files are called.
| Your own GPU | A rented OpenLLM Buddy pod | |
|---|---|---|
| Hardware | You buy and power a 24 GB or 32 GB card | One dedicated RTX 5090 or RTX PRO 6000 |
| Setup | Download, drivers, flags, HTTPS | A base URL and an API key in your console |
| Context | 256K if your margin holds | Full 256K |
| Speed we measured | 112 tok/s (RTX 4090), 175 tok/s (RTX 5090) | 175 tok/s (RTX 5090) |
| Vision and tool calls | You enable them | Already on |
| Paying | Up front, plus electricity | Time packs: 11 hours, 24 hours, 1 week or 1 month |
Renting makes sense when you do not own a suitable card, when you need the model for a project and not permanently, or when you want it reachable over HTTPS without running a server. The pod is dedicated to you, prompts and outputs stay on it, and you pay for pod time with no per-token billing. Current prices are on the Deploy page, and Gemma 4 26B API vs self-hosted gives a break-even formula for owning against renting.
Deploy Gemma4-26B-A4B Uncensored
If your goal is automation and not chat, the Gemma 4 and n8n agent tutorial shows the pod in a working workflow. If you are choosing between the two models that fit this class of GPU, see Qwen3.8 27B vs Gemma 4 26B.
FAQ
How much VRAM does Gemma 4 26B need?
About 21.5 GB for the 4-bit QAT file with the full 256K context, by our estimate: 16.8 GB for the model, 1.2 GB for vision, about 0.5 GB for the draft head and about 3 GB of context cache. A 32 GB card holds it comfortably.
Can Gemma 4 26B run on an RTX 4090?
Yes. We measured 112 tokens per second on an RTX 4090. The estimated 21.5 GB leaves only about 2.5 GB of the card's 24 GB, so other programs using the GPU can push it over the limit.
Can I run Gemma 4 26B on 16 GB of VRAM?
Not fully on the GPU. The model file alone is 16.8 GB, so part of it has to sit in system RAM and run on the CPU, which is much slower. We have no measured speed for that setup.
What is Gemma 4 QAT?
QAT is quantization-aware training. Google trained Gemma 4 with 4-bit rounding simulated during training, so the 4-bit file is the intended format and not a reduced-quality copy.
Does A4B mean Gemma 4 26B only needs 4B of memory?
No. A4B means about 4 billion parameters are active for each token, which makes it fast. All 25.2B parameters still have to be loaded, so memory follows the total size.
Why does Gemma 4 26B use so little memory for context?
Only 5 of its 30 layers keep the full context, so the cache for 256K tokens is about 3 GB by our estimate. A dense model such as Qwen3.8-27B needs about 9.5 GB for the same window.


