Gemma 4 31B on L40S
FP8 and W4A16 run on the L40S, 48 GB. At 1 request:
- FP8: 18 tok/s decode, 180 ms first token p90, 37.1 GB VRAM
- W4A16: 32 tok/s decode, 251 ms first token p90, 24.3 GB VRAM
VRAM: weights, runtime and the KV cache of 1 request of 9,771 to 10,044 tokens, the p50 prompt and reply of the run.
The engine fills the rest of the card with KV cache for more requests. The Memory tile of each GPU shows the split.
- GPU: L40S · 48 GB
- Engine: vLLM v0.31.0
- Measured Nov 9, 2026
© Softcery OÜ. License: CC BY 4.0. Credit: OINF, by Softcery, https://oinf.org/llms/gemma4-31b/l40s.
TTFT
p50 and p90, ms

Decode per request
p50, tok/s

TTFT
p50 and p90, ms

Decode per request
p50, tok/s

- 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
- 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}'L40S
48 GB3Max requests
Memory, GB
- Runtime
- 2.1
- Weights
- 32.9
- KV cache
- 9.2
- KV per request
- 2.06
- KV tokens
- 43,624
Workload, tokens per request
- Prompt p50
- 9,565
- Prompt range
- 8,608 to 10,241
- From cache
- 94 %
- Reply p50
- 206
Run
- Measured
- Nov 9, 2026
- Engine
- vLLM v0.31.0
- Load tool
- AIPerf 0.13.0
- Load test end
- 4 requests · p90 > 1 s
- Run end
- complete
Load
TTFT in ms, decode in tok/s| Requests | Sent | Errors | TTFT p50 | TTFT p90 | Decode p50 |
|---|---|---|---|---|---|
| 1 | 100 | 0 | 147 | 180 | 18 |
| 2 | 100 | 0 | 232 | 264 | 17 |
| 3 | 100 | 0 | 234 | 266 | 16 |
Quality
Score in %, ± 95 % interval, run on RTX PRO 6000, Nov 9, 2026| IFBench | MMLU-Pro | BFCL | IFEval | |
|---|---|---|---|---|
| Score per quant | ||||
| FP8 · RedHatAI | 52 ± 6 | 87 ± 3 | 78 ± 5 | 86 ± 4 |
| W4A16 · google | 53 ± 6 | 84 ± 3 | 76 ± 5 | 87 ± 4 |
| Bench of FP8 | ||||
| Harness | IFBench 0.2.0 | lm-evaluation-harness 0.4.13 | bfcl-eval 2026.3.23 | lm-evaluation-harness 0.4.13 |
| Items | 150 | 420 | 210 | 200 |
| Dataset | allenai/IFBench_test at 2e8a48d | TIGER-Lab/MMLU-Pro at b189ec7 | in the harness | google/IFEval at 966cd89 |
L40S
48 GB8Max requests
Memory, GB
- Runtime
- 2.1
- Weights
- 20.1
- KV cache
- 22.1
- KV per request
- 2.12
- KV tokens
- 105,109
Workload, tokens per request
- Prompt p50
- 9,849
- Prompt range
- 8,366 to 10,420
- From cache
- 96 %
- Reply p50
- 195
Run
- Measured
- Nov 9, 2026
- Engine
- vLLM v0.31.0
- Load tool
- AIPerf 0.13.0
- Load test end
- 10 requests · p90 > 1 s
- Run end
- complete
Load
TTFT in ms, decode in tok/s| Requests | Sent | Errors | TTFT p50 | TTFT p90 | Decode p50 |
|---|---|---|---|---|---|
| 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 |
Quality
Score in %, ± 95 % interval, run on RTX PRO 6000, Nov 9, 2026| IFBench | MMLU-Pro | BFCL | IFEval | |
|---|---|---|---|---|
| Score per quant | ||||
| FP8 · RedHatAI | 52 ± 6 | 87 ± 3 | 78 ± 5 | 86 ± 4 |
| W4A16 · google | 53 ± 6 | 84 ± 3 | 76 ± 5 | 87 ± 4 |
| Bench of W4A16 | ||||
| Harness | IFBench 0.2.0 | lm-evaluation-harness 0.4.13 | bfcl-eval 2026.3.23 | lm-evaluation-harness 0.4.13 |
| Items | 150 | 420 | 210 | 200 |
| Dataset | allenai/IFBench_test at 2e8a48d | TIGER-Lab/MMLU-Pro at b189ec7 | in the harness | google/IFEval at 966cd89 |
The method of the Gemma 4 31B page defines each value: load, TTFT, decode, max requests, quality and KV per request.