Gemma 4 31B
on AMD RX 7900 XTX · llama.cpp · 32,768 ctx
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
- NVIDIA RTX 509032 GB64.0 t/s · one run
- 51.0 t/s · one run
- NVIDIA RTX 309024 GB36.5 t/s · one run
- AMD RX 7900 XTX24 GB30.1 t/s · one run
- 25.2 t/s · one run
- 22.4 t/s · one run
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
- Qwen3.8 27B4-bit40.0 t/s · 7 runs
- 65.4 t/s · 2 runs
- 142.8 t/s · one run
- Gemma 4 31B4-bit30.1 t/s · one run
- Gemma 4 8B · 4.5B active16-bit58.0 t/s · one run
- 125.5 t/s · one run
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 →