llamaperf

Gemma 4 31B

on AMD RX 7900 XTX · llama.cpp · 32,768 ctx

Tone: mixedAMD hardware
Sep 13, 2026
Throughput
30.1 t/s gen · 422.3 tokens/s prompt processing (prefill)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.
Quant
Q4_K_XL (GGUF)
KV cache
Q4_0
System RAM
64 GB
VRAM reported
24 GB

Summary

User benchmarks Gemma 4 31B on an RX 7900 XTX, reporting 30.13 t/s generation and 422.27 t/s prompt processing with ROCm. Setup is llama.cpp on Windows 10 with the UD-Q4_K_XL GGUF, flash attention, 32K context, all layers on GPU, and a Q4_0 KV cache. Vulkan single-GPU gave 24.81 t/s generation and 117.29 t/s prompt, while Vulkan multi-GPU with an added RTX 3080 gave 26.18 t/s generation and 74.69 t/s prompt. User notes ROCm started at maximum generation speed and declined with context, whereas Vulkan briefly sped up before declining.

Download this model

Gemma 4 31B on Hugging Face in the quant this report ran, UD-Q4_K_XL.

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 AMD RX 7900 XTX

Bars are medians on one scale, 0 to 142.8 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 AMD RX 7900 XTX →Every Gemma 4 report →Estimate Gemma 4 on this card →