llamaperf

Gemma 4 31B

on NVIDIA RTX 5090 · Ollama · 32,768 ctx

NVIDIA hardware
Oct 8, 2026
Throughput
64.0 t/s gen
Quant
Q4_K_M (GGUF)
VRAM reported
32 GB

Use cases

agentictool-use

Summary

User benchmarks 18 tool-calling models on 33 recorded DevOps failure scenarios on a single RTX 5090 32GB, reporting gemma4:31b at 64 tokens/s with a 94% pass rate and 23.1 GiB measured VRAM. Setup is Ollama 0.35.0 with each model's default build (Q4_K_M, except gpt-oss:20b at MXFP4), 32k context, temperature 0, one run each; VRAM is what nvidia-smi showed for the Ollama process. The top six models tie between 88% and 94%, separated by speed and memory; the fastest model on the card (nemotron-3.5-lightning:30b at 427 tokens/s) passes 52%, and gemma4:12b passes 88% in 9.2 GiB. Ollama's own ollama ps size under-reported real GPU usage by 0.6 to 4.2 GiB for 17 of 18 models. north-mini-code-1.0 could not run due to a CUDA illegal memory access error. Nothing spilled to CPU.

Download this model

Gemma 4 31B on Hugging Face in the quant this report ran, Q4_K_M. The report doesn't say whose upload it used, so these are the most downloaded ones.

Compare this run

Medians of plain runs: one device, one request, no speculative decoding, the whole model in the device's memory. The report above is one setup, so read it beside them and not as one of them.

Gemma 4 31B at 4-bit by hardware

Bars are medians on one scale, 0 to 64.0 tokens/s. Press ▶ to watch text arrive at a row's speed.

Models most run on the NVIDIA RTX 5090

Bars are medians on one scale, 0 to 352.1 tokens/s. Each dot is one run and opens its report. Press ▶ to watch text arrive at a row's speed.

Everything reported on the NVIDIA RTX 5090 →Every Gemma 4 report →Estimate Gemma 4 on this card →