Gemma 4 31B
Gemma 4 31B needs 24.1 GB of VRAM at 1 request, as W4A16 on RTX 5090.
- Provider: Google
- License: Apache 2.0
- 31.3B params
- 256K context
- Weights
- Measured Nov 9, 2026
© Softcery OÜ. License: CC BY 4.0. Credit: OINF, by Softcery, https://oinf.org/llms/gemma4-31b.
Gemma 4 31B benchmarks
72 ± 3
BF16: the reference
54 ± 6
BF16: the reference
85 ± 3
BF16: the reference
77 ± 5
BF16: the reference
87 ± 4
BF16: the reference
Run on RTX PRO 6000, Nov 9, 2026. Scores in %, ± the 95 % interval.
Quality index: the mean of IFBench, MMLU-Pro and BFCL, each scaled from chance to 100.
Bench setup and weights
- IFBench
- IFBench 0.2.0, 150 items, allenai/IFBench_test at 2e8a48d
- MMLU-Pro
- lm-evaluation-harness 0.4.13, 420 items, TIGER-Lab/MMLU-Pro at b189ec7
- BFCL
- bfcl-eval 2026.3.23, 210 items, in the harness
- IFEval
- lm-evaluation-harness 0.4.13, 200 items, google/IFEval at 966cd89
- Weights
- google/gemma-4-31B-it
72 ± 3
52 ± 6
−2.0 against BF16
87 ± 3
+1.4 against BF16
78 ± 5
+0.5 against BF16
86 ± 4
−0.5 against BF16
Run on RTX PRO 6000, Nov 9, 2026. Scores in %, ± the 95 % interval. The tick marks BF16.
Quality index: the mean of IFBench, MMLU-Pro and BFCL, each scaled from chance to 100.
Bench setup and weights
- IFBench
- IFBench 0.2.0, 150 items, allenai/IFBench_test at 2e8a48d
- MMLU-Pro
- lm-evaluation-harness 0.4.13, 420 items, TIGER-Lab/MMLU-Pro at b189ec7
- BFCL
- bfcl-eval 2026.3.23, 210 items, in the harness
- IFEval
- lm-evaluation-harness 0.4.13, 200 items, google/IFEval at 966cd89
70 ± 3
53 ± 6
−1.3 against BF16
84 ± 3
−0.5 against BF16
76 ± 5
−1.4 against BF16
87 ± 4
+0.5 against BF16
Run on RTX PRO 6000, Nov 9, 2026. Scores in %, ± the 95 % interval. The tick marks BF16.
Quality index: the mean of IFBench, MMLU-Pro and BFCL, each scaled from chance to 100.
Bench setup and weights
- IFBench
- IFBench 0.2.0, 150 items, allenai/IFBench_test at 2e8a48d
- MMLU-Pro
- lm-evaluation-harness 0.4.13, 420 items, TIGER-Lab/MMLU-Pro at b189ec7
- BFCL
- bfcl-eval 2026.3.23, 210 items, in the harness
- IFEval
- lm-evaluation-harness 0.4.13, 200 items, google/IFEval at 966cd89
Gemma 4 31B speed
No run of this quant on this GPU. Runs on RTX 5090:
No run of this quant on this GPU. Runs on L40S:
BF16 on RTX PRO 6000
All quants on RTX PRO 6000TTFT
p50 and p90, ms

Decode per request
p50, tok/s

Load steps, 6
| Requests | Sent | Errors | TTFT p50, ms | TTFT p90, ms | Decode p50, tok/s |
|---|---|---|---|---|---|
| 1 | 100 | 0 | 111 | 139 | 22 |
| 2 | 100 | 0 | 180 | 208 | 21 |
| 3 | 100 | 0 | 182 | 209 | 21 |
| 4 | 100 | 0 | 202 | 213 | 20 |
| 6 | 100 | 0 | 190 | 216 | 19 |
| 8 | 100 | 0 | 220 | 245 | 18 |
No run of this quant on this GPU. Runs on RTX 5090:
FP8 on L40S
All quants on L40STTFT
p50 and p90, ms

Decode per request
p50, tok/s

Load steps, 3
| Requests | Sent | Errors | TTFT p50, ms | TTFT p90, ms | Decode p50, tok/s |
|---|---|---|---|---|---|
| 1 | 100 | 0 | 147 | 180 | 18 |
| 2 | 100 | 0 | 232 | 264 | 17 |
| 3 | 100 | 0 | 234 | 266 | 16 |
FP8 on RTX PRO 6000
All quants on RTX PRO 6000TTFT
p50 and p90, ms

Decode per request
p50, tok/s

Load steps, 9
| Requests | Sent | Errors | TTFT p50, ms | TTFT p90, ms | Decode p50, tok/s |
|---|---|---|---|---|---|
| 1 | 100 | 0 | 194 | 211 | 37 |
| 2 | 100 | 0 | 209 | 236 | 36 |
| 3 | 100 | 0 | 202 | 229 | 34 |
| 4 | 100 | 0 | 212 | 243 | 33 |
| 6 | 100 | 0 | 220 | 239 | 30 |
| 8 | 100 | 0 | 223 | 243 | 28 |
| 10 | 100 | 0 | 237 | 254 | 26 |
| 12 | 100 | 0 | 241 | 271 | 23 |
| 16 | 100 | 0 | 241 | 302 | 22 |
W4A16 on RTX 5090
All quants on RTX 5090TTFT
p50 and p90, ms

Decode per request
p50, tok/s

Load steps, 3
| Requests | Sent | Errors | TTFT p50, ms | TTFT p90, ms | Decode p50, tok/s |
|---|---|---|---|---|---|
| 1 | 100 | 0 | 183 | 225 | 63 |
| 2 | 100 | 0 | 199 | 235 | 60 |
| 3 | 100 | 0 | 199 | 231 | 55 |
W4A16 on L40S
All quants on L40STTFT
p50 and p90, ms

Decode per request
p50, tok/s

Load steps, 6
| Requests | Sent | Errors | TTFT p50, ms | TTFT p90, ms | Decode p50, tok/s |
|---|---|---|---|---|---|
| 1 | 100 | 0 | 214 | 251 | 32 |
| 2 | 100 | 0 | 233 | 286 | 30 |
| 3 | 100 | 0 | 239 | 286 | 28 |
| 4 | 100 | 0 | 250 | 290 | 26 |
| 6 | 100 | 0 | 256 | 296 | 23 |
| 8 | 100 | 0 | 272 | 335 | 20 |
W4A16 on RTX PRO 6000
All quants on RTX PRO 6000TTFT
p50 and p90, ms

Decode per request
p50, tok/s

Load steps, 9
| Requests | Sent | Errors | TTFT p50, ms | TTFT p90, ms | Decode p50, tok/s |
|---|---|---|---|---|---|
| 1 | 100 | 0 | 157 | 179 | 55 |
| 2 | 100 | 0 | 155 | 177 | 53 |
| 3 | 100 | 0 | 167 | 193 | 50 |
| 4 | 100 | 0 | 164 | 194 | 47 |
| 6 | 100 | 0 | 172 | 206 | 40 |
| 8 | 100 | 0 | 185 | 245 | 36 |
| 10 | 100 | 0 | 184 | 230 | 32 |
| 12 | 100 | 0 | 196 | 253 | 29 |
| 16 | 100 | 0 | 200 | 229 | 26 |
Gemma 4 31B VRAM requirements
Card memory, 96 GB
Requests the KV cache holds, by context
- 16K tokens3
- 32K tokens1
Workload per request: prompt p50 9,686 tokens, 8,351 to 10,402, 96 % from cache. Reply p50 207 tokens.
Card memory, 48 GB
Requests the KV cache holds, by context
- 16K tokens2
- 32K tokens1
Workload per request: prompt p50 9,565 tokens, 8,608 to 10,241, 94 % from cache. Reply p50 206 tokens.
Card memory, 96 GB
Requests the KV cache holds, by context
- 16K tokens6
- 32K tokens3
- 64K tokens1
Workload per request: prompt p50 9,330 tokens, 8,318 to 10,424, 96 % from cache. Reply p50 200 tokens.
Card memory, 32 GB
Requests the KV cache holds, by context
- 16K tokens2
- 32K tokens1
Workload per request: prompt p50 9,431 tokens, 8,921 to 10,422, 94 % from cache. Reply p50 195 tokens.
Card memory, 48 GB
Requests the KV cache holds, by context
- 16K tokens6
- 32K tokens3
- 64K tokens1
Workload per request: prompt p50 9,849 tokens, 8,366 to 10,420, 96 % from cache. Reply p50 195 tokens.
Card memory, 96 GB
Requests the KV cache holds, by context
- 16K tokens8
- 32K tokens4
- 64K tokens2
- 128K tokens1
Workload per request: prompt p50 9,259 tokens, 8,307 to 10,465, 97 % from cache. Reply p50 200 tokens.
Gemma 4 31B recipe
- Engine
- vLLM v0.31.0
- Load tool
- AIPerf 0.13.0
- Measured
- Nov 9, 2026
- Load test end
- 10 requests · p90 > 1 s
- Chat template
- gemma4.jinja
- Image
- docker.io/vllm/vllm-openai:v0.31.0@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3
vllm serve google/gemma-4-31B-it \
--revision 842da3794eaa0b77d5f08bae87a17459d91ff475 \
--served-model-name gemma4-31b-bf16-rtx-pro-6000 \
--host 127.0.0.1 \
--port 8000 \
--enable-prefix-caching \
--enable-prompt-tokens-details \
--chat-template /opt/engine/models/gemma4-31b/gemma4.jinja \
--tool-call-parser gemma4 \
--enable-auto-tool-choice \
--reasoning-parser gemma4 \
--override-generation-config '{"temperature": 1.0, "top_k": 64, "top_p": 0.95}' \
--logprobs-mode raw_logprobs \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--max-model-len 32768 \
--limit-mm-per-prompt '{"image": 0, "audio": 0, "video": 0}'- Engine
- vLLM v0.31.0
- Load tool
- AIPerf 0.13.0
- Measured
- Nov 9, 2026
- Load test end
- 4 requests · p90 > 1 s
- Chat template
- gemma4.jinja
- Image
- docker.io/vllm/vllm-openai:v0.31.0@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3
vllm serve RedHatAI/gemma-4-31B-it-FP8-dynamic \
--revision d4ab4f579dd3516f97d8a6a4c98d0653480bad15 \
--served-model-name gemma4-31b-fp8-l40s \
--host 127.0.0.1 \
--port 8000 \
--enable-prefix-caching \
--enable-prompt-tokens-details \
--chat-template /opt/engine/models/gemma4-31b/gemma4.jinja \
--tool-call-parser gemma4 \
--enable-auto-tool-choice \
--reasoning-parser gemma4 \
--override-generation-config '{"temperature": 1.0, "top_k": 64, "top_p": 0.95}' \
--logprobs-mode raw_logprobs \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--max-model-len 32768 \
--limit-mm-per-prompt '{"image": 0, "audio": 0, "video": 0}'- Engine
- vLLM v0.31.0
- Load tool
- AIPerf 0.13.0
- Measured
- Nov 9, 2026
- Load test end
- 24 requests · p90 > 1 s
- Chat template
- gemma4.jinja
- Image
- docker.io/vllm/vllm-openai:v0.31.0@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3
vllm serve RedHatAI/gemma-4-31B-it-FP8-dynamic \
--revision d4ab4f579dd3516f97d8a6a4c98d0653480bad15 \
--served-model-name gemma4-31b-fp8-rtx-pro-6000 \
--host 127.0.0.1 \
--port 8000 \
--enable-prefix-caching \
--enable-prompt-tokens-details \
--chat-template /opt/engine/models/gemma4-31b/gemma4.jinja \
--tool-call-parser gemma4 \
--enable-auto-tool-choice \
--reasoning-parser gemma4 \
--override-generation-config '{"temperature": 1.0, "top_k": 64, "top_p": 0.95}' \
--logprobs-mode raw_logprobs \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--max-model-len 32768 \
--limit-mm-per-prompt '{"image": 0, "audio": 0, "video": 0}'- Engine
- vLLM v0.31.0
- Load tool
- AIPerf 0.13.0
- Measured
- Nov 9, 2026
- Load test end
- 4 requests · p90 > 1 s
- Chat template
- gemma4.jinja
- Image
- docker.io/vllm/vllm-openai:v0.31.0@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3
vllm serve google/gemma-4-31B-it-qat-w4a16-ct \
--revision 52f3f65bc7a02d555763bc923bd1d9094898219d \
--served-model-name gemma4-31b-w4a16-rtx-5090 \
--host 127.0.0.1 \
--port 8000 \
--enable-prefix-caching \
--enable-prompt-tokens-details \
--chat-template /opt/engine/models/gemma4-31b/gemma4.jinja \
--tool-call-parser gemma4 \
--enable-auto-tool-choice \
--reasoning-parser gemma4 \
--override-generation-config '{"temperature": 1.0, "top_k": 64, "top_p": 0.95}' \
--logprobs-mode raw_logprobs \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--max-model-len 32768 \
--limit-mm-per-prompt '{"image": 0, "audio": 0, "video": 0}'- Engine
- vLLM v0.31.0
- Load tool
- AIPerf 0.13.0
- Measured
- Nov 9, 2026
- Load test end
- 10 requests · p90 > 1 s
- Chat template
- gemma4.jinja
- Image
- docker.io/vllm/vllm-openai:v0.31.0@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3
vllm serve google/gemma-4-31B-it-qat-w4a16-ct \
--revision 52f3f65bc7a02d555763bc923bd1d9094898219d \
--served-model-name gemma4-31b-w4a16-l40s \
--host 127.0.0.1 \
--port 8000 \
--enable-prefix-caching \
--enable-prompt-tokens-details \
--chat-template /opt/engine/models/gemma4-31b/gemma4.jinja \
--tool-call-parser gemma4 \
--enable-auto-tool-choice \
--reasoning-parser gemma4 \
--override-generation-config '{"temperature": 1.0, "top_k": 64, "top_p": 0.95}' \
--logprobs-mode raw_logprobs \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--max-model-len 32768 \
--limit-mm-per-prompt '{"image": 0, "audio": 0, "video": 0}'- Engine
- vLLM v0.31.0
- Load tool
- AIPerf 0.13.0
- Measured
- Nov 9, 2026
- Load test end
- 24 requests · p90 > 1 s
- Chat template
- gemma4.jinja
- Image
- docker.io/vllm/vllm-openai:v0.31.0@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3
vllm serve google/gemma-4-31B-it-qat-w4a16-ct \
--revision 52f3f65bc7a02d555763bc923bd1d9094898219d \
--served-model-name gemma4-31b-w4a16-rtx-pro-6000 \
--host 127.0.0.1 \
--port 8000 \
--enable-prefix-caching \
--enable-prompt-tokens-details \
--chat-template /opt/engine/models/gemma4-31b/gemma4.jinja \
--tool-call-parser gemma4 \
--enable-auto-tool-choice \
--reasoning-parser gemma4 \
--override-generation-config '{"temperature": 1.0, "top_k": 64, "top_p": 0.95}' \
--logprobs-mode raw_logprobs \
--default-chat-template-kwargs '{"enable_thinking": false}' \
--max-model-len 32768 \
--limit-mm-per-prompt '{"image": 0, "audio": 0, "video": 0}'Method
- Load: AIPerf, or a custom client in older runs, sends warm chat turns at each step of concurrent requests. Most of each prompt comes from the prefix cache.
- TTFT: time to first token, in ms. p90 reads "errors" when over 10 % of the requests fail.
- Decode: tokens per second of 1 request after its first token, p50.
- Max requests: the highest step with a TTFT p90 of 1 s or less.
- VRAM: weights, runtime and the KV cache of 1 request, at the last engine boot. llama.cpp gives no split: its value is the card use, with the KV cache of the full context.
- KV per request: the KV cache of 1 request at the p50 prompt and reply tokens.
- Quality: pinned public harnesses on a fixed sample of items, on 1 GPU per quant. ± is the 95 % interval of the sample. "Full set": all items of the bench, no interval.
- Grading: rule checks and exact answers. No model grades the answers.
- BFCL: 7 categories, not the published overall score.
- Change against the top quant: an exact paired test on the items both quants answered. The interval is the 95 % interval of the gap in points.
- No run: No run of this quant on this GPU. The picker marks such a quant or GPU with a dotted tab.