llamaperf

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 4GenerationBy engine
26B · 4B active 5-bit129.0 t/sone report, 256K contextprompt 5600.0 t/s (one report)
llama.cpp 129.0 t/s (1)
26B · 4B active 4-bit149.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.

SizeQ8_0Q6_KQ5_K_MQ4_K_MQ3_K_M
26B · 4B active28 GBtoo big23 GBtight20 GBfits17 GBfits14 GBfits
31B33 GBtoo big28 GBtoo big24 GBtoo big20 GBfits16 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.

Filter these reports on the homepage

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.