Gemma 4 on the NVIDIA RTX 4090
On the NVIDIA RTX 4090, Gemma 4 26B · 4B active at 5-bit generates a median 129.0 tokens per second, from 1 plain run (256K context).
Speed by size and quant on the NVIDIA RTX 4090
Plain runs only: one card, one request, no speculative decoding, the whole model in memory. Each row is one model size at one bit class. Context length and build still differ between runs, and each row shows its own.
| Gemma 4 | Generation | By engine |
|---|---|---|
| 26B · 4B active 5-bit | 129.0 t/sone report, 256K contextprompt 5600.0 t/s (one report) | llama.cpp 129.0 t/s (1) |
| 26B · 4B active 4-bit | 149.6 t/sone report, context not stated | Ollama 149.6 t/s (1) |
Memory Gemma 4 needs on the NVIDIA RTX 4090
The NVIDIA RTX 4090 gives a model 24 GB. Each figure is the memory a size reported on this card needs at one quant with an 8k context, cache and buffers included, from the VRAM calculator. It is for one card holding the whole model. Gemma 4 memory on every card.
| Size | Q8_0 | Q6_K | Q5_K_M | Q4_K_M | Q3_K_M |
|---|---|---|---|---|---|
| 26B · 4B active | 28 GBtoo big | 23 GBtight | 20 GBfits | 17 GBfits | 14 GBfits |
| 31B | 33 GBtoo big | 28 GBtoo big | 24 GBtoo big | 20 GBfits | 16 GBfits |
5 reports of Gemma 4 on the NVIDIA RTX 4090
Newest first. A run on several cards, with speculative decoding, with part of the model in system RAM or with batched requests says so, since each describes a different setup. Prompt processing is how fast the input is read, not how long you wait for the first word. How to measure time to first token.
- 31B · QAT46.0 t/s
- 26B · 4B active · QAT · Ollama170.0 t/s
- 26B · 4B active · Q5_K_M · llama.cpp129.0 t/s
- 26B · 4B active138.0 t/s
- 26B · 4B active · Q4_K_M · Ollama149.6 t/s
Frequently asked
How fast is Gemma 4 on the NVIDIA RTX 4090?
On the NVIDIA RTX 4090, Gemma 4 26B · 4B active at 5-bit generates a median 129.0 tokens per second, from 1 plain run (256K context).
Does Gemma 4 fit on the NVIDIA RTX 4090?
The NVIDIA RTX 4090 gives a model 24 GB. With an 8k context, the 26B · 4B active model fits at Q5_K_M (about 20 GB), the 31B model fits at Q4_K_M (about 20 GB). The figures are the VRAM calculator's, for one card with the whole model in its memory.