llamaperf

llama.cpp on the NVIDIA RTX 4090

On the NVIDIA RTX 4090, llama.cpp runs Qwen3.8 27B at 4-bit at a median 40.0 tokens per second for generation, from 3 plain runs (8K to 194K context).

Speed by model on the NVIDIA RTX 4090

Plain runs only: one device, one request, no speculative decoding, the whole model in memory. Each row is one model size at one bit class, with the other engines' plain runs of the same model on this card beside it. Context length and build still differ between runs, and each side shows its own.

Modelllama.cppOther engines
Qwen3.8 27B 4-bit40.0 t/smedian of 3, 8K to 194K contextno other engine reported
Gemma 4 26B · 4B active 5-bit129.0 t/sone report, 256K contextno other engine reported
Qwen2.5 7B 4-bit158.9 t/sone report, context not statedno other engine reported

16 llama.cpp reports 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 llama.cpp on the NVIDIA RTX 4090?

On the NVIDIA RTX 4090, llama.cpp runs Qwen3.8 27B at 4-bit at a median 40.0 tokens per second for generation, from 3 plain runs (8K to 194K context).