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.

Quant

TTFT

p50 / p90, ms, 1 req

Decode

tok/s, 1 req

Memory

GB of the 48 GB card, requests at a context
Context per request
0 to 48 GBRequestsWeightsKV tokens

TTFT

p50 and p90, ms
TTFT of Gemma 4 31B FP8 on L40S, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 147 ms, p90 180 ms.TTFT of Gemma 4 31B FP8 on L40S, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 147 ms, p90 180 ms.

Decode per request

p50, tok/s
Decode speed per request of Gemma 4 31B FP8 on L40S, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 18 tok/s.Decode speed per request of Gemma 4 31B FP8 on L40S, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 18 tok/s.

TTFT

p50 and p90, ms
TTFT of Gemma 4 31B W4A16 on L40S, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 214 ms, p90 251 ms.TTFT of Gemma 4 31B W4A16 on L40S, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 214 ms, p90 251 ms.

Decode per request

p50, tok/s
Decode speed per request of Gemma 4 31B W4A16 on L40S, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 32 tok/s.Decode speed per request of Gemma 4 31B W4A16 on L40S, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 32 tok/s.

IFBench

Score, %

MMLU-Pro

Score, %

BFCL

Score, %

IFEval

Score, %

The benches of each quant run on 1 reference GPU, not on each GPU: FP8 and W4A16 on RTX PRO 6000, Nov 9, 2026.

Recipe

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 GB

3Max 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
RequestsSentErrorsTTFT p50TTFT p90Decode p50
1100014718018
2100023226417
3100023426616

Quality

Score in %, ± 95 % interval, run on RTX PRO 6000, Nov 9, 2026
IFBenchMMLU-ProBFCLIFEval
Score per quant
FP8 · RedHatAI52 ± 687 ± 378 ± 586 ± 4
W4A16 · google53 ± 684 ± 376 ± 587 ± 4
Bench of FP8
HarnessIFBench 0.2.0lm-evaluation-harness 0.4.13bfcl-eval 2026.3.23lm-evaluation-harness 0.4.13
Items150420210200
Datasetallenai/IFBench_test at 2e8a48dTIGER-Lab/MMLU-Pro at b189ec7in the harnessgoogle/IFEval at 966cd89

L40S

48 GB

8Max 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
RequestsSentErrorsTTFT p50TTFT p90Decode p50
1100021425132
2100023328630
3100023928628
4100025029026
6100025629623
8100027233520

Quality

Score in %, ± 95 % interval, run on RTX PRO 6000, Nov 9, 2026
IFBenchMMLU-ProBFCLIFEval
Score per quant
FP8 · RedHatAI52 ± 687 ± 378 ± 586 ± 4
W4A16 · google53 ± 684 ± 376 ± 587 ± 4
Bench of W4A16
HarnessIFBench 0.2.0lm-evaluation-harness 0.4.13bfcl-eval 2026.3.23lm-evaluation-harness 0.4.13
Items150420210200
Datasetallenai/IFBench_test at 2e8a48dTIGER-Lab/MMLU-Pro at b189ec7in the harnessgoogle/IFEval at 966cd89

The method of the Gemma 4 31B page defines each value: load, TTFT, decode, max requests, quality and KV per request.