Gemma 4 12B on L40S

BF16, FP8 and W4A16 run on the L40S, 48 GB. At 1 request:

  • BF16: 28 tok/s decode, 115 ms first token p90, 26.8 GB VRAM
  • FP8: 42 tok/s decode, 131 ms first token p90, 16.2 GB VRAM
  • W4A16: 70 tok/s decode, 131 ms first token p90, 11.4 GB VRAM

VRAM: weights, runtime and the KV cache of 1 request of 9,637 to 9,762 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 6, 2026

© Softcery OÜ. License: CC BY 4.0. Credit: OINF, by Softcery, https://oinf.org/llms/gemma4-12b/l40s.

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 12B BF16 on L40S, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 101 ms, p90 115 ms.TTFT of Gemma 4 12B BF16 on L40S, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 101 ms, p90 115 ms.

Decode per request

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

TTFT

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

Decode per request

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

TTFT

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

Decode per request

p50, tok/s
Decode speed per request of Gemma 4 12B W4A16 on L40S, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 70 tok/s.Decode speed per request of Gemma 4 12B W4A16 on L40S, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 70 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: BF16, FP8 and W4A16 on RTX PRO 6000, Nov 5, 2026.

Recipe

Engine
vLLM v0.31.0
Load tool
AIPerf 0.13.0
Measured
Nov 6, 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-12B-it \
  --revision 43c9d014b231474fa7212dbb48a762566c2b255d \
  --served-model-name gemma4-12b-bf16-l40s \
  --host 127.0.0.1 \
  --port 8000 \
  --enable-prefix-caching \
  --enable-prompt-tokens-details \
  --chat-template /opt/engine/models/gemma4-12b/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 6, 2026
Load test end
48 requests · p90 > 1 s
Chat template
gemma4.jinja
Image
docker.io/vllm/vllm-openai:v0.31.0@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3
vllm serve RedHatAI/gemma-4-12B-it-FP8-Dynamic \
  --revision 2083adceb2a3df0465e6021e08a7196d21dbbb44 \
  --served-model-name gemma4-12b-fp8-l40s \
  --host 127.0.0.1 \
  --port 8000 \
  --enable-prefix-caching \
  --enable-prompt-tokens-details \
  --chat-template /opt/engine/models/gemma4-12b/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 6, 2026
Load test end
48 requests · p90 > 1 s
Chat template
gemma4.jinja
Image
docker.io/vllm/vllm-openai:v0.31.0@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3
vllm serve google/gemma-4-12B-it-qat-w4a16-ct \
  --revision 1d2c2d7f2466070e69d6fb3fd5ce9a7d75f2f6ee \
  --served-model-name gemma4-12b-w4a16-l40s \
  --host 127.0.0.1 \
  --port 8000 \
  --enable-prefix-caching \
  --enable-prompt-tokens-details \
  --chat-template /opt/engine/models/gemma4-12b/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

16Max requests

Memory, GB

Runtime
1.7
Weights
24.5
KV cache
18.0
KV per request
0.66
KV tokens
265,858

Workload, tokens per request

Prompt p50
9,560
Prompt range
8,349 to 10,455
From cache
96 %
Reply p50
202

Run

Measured
Nov 6, 2026
Engine
vLLM v0.31.0
Load tool
AIPerf 0.13.0
Load test end
24 requests · p90 > 1 s
Run end
complete

Load

TTFT in ms, decode in tok/s
RequestsSentErrorsTTFT p50TTFT p90Decode p50
1100010111528
2100014615527
3100014715527
4100014715726
6100015316125
8100015116824
10100015418123
12100016418822
16100016519621

Quality

Score in %, ± 95 % interval, run on RTX PRO 6000, Nov 5, 2026
IFBenchMMLU-ProBFCLIFEval
Score per quant
BF16 · google38 ± 077 ± 266 ± 090 ± 0
FP8 · RedHatAI37 ± 076 ± 265 ± 089 ± 0
W4A16 · google35 ± 073 ± 264 ± 086 ± 0
Bench of BF16
HarnessIFBench 0.2.0lm-evaluation-harness 0.4.13bfcl-eval 2026.3.23lm-evaluation-harness 0.4.13
Items30014001640541
Datasetallenai/IFBench_test at 2e8a48dTIGER-Lab/MMLU-Pro at b189ec7in the harnessgoogle/IFEval at 966cd89

L40S

48 GB

32Max requests

Memory, GB

Runtime
1.9
Weights
13.7
KV cache
28.7
KV per request
0.66
KV tokens
423,553

Workload, tokens per request

Prompt p50
9,505
Prompt range
8,334 to 10,403
From cache
97 %
Reply p50
200

Run

Measured
Nov 6, 2026
Engine
vLLM v0.31.0
Load tool
AIPerf 0.13.0
Load test end
48 requests · p90 > 1 s
Run end
complete

Load

TTFT in ms, decode in tok/s
RequestsSentErrorsTTFT p50TTFT p90Decode p50
1100012013142
2100014516341
3100014319840
4100014217039
6100013816237
8100014518135
10100015618332
12100015218031
16100016519228
24100019528924
32100020530821

Quality

Score in %, ± 95 % interval, run on RTX PRO 6000, Nov 5, 2026
IFBenchMMLU-ProBFCLIFEval
Score per quant
BF16 · google38 ± 077 ± 266 ± 090 ± 0
FP8 · RedHatAI37 ± 076 ± 265 ± 089 ± 0
W4A16 · google35 ± 073 ± 264 ± 086 ± 0
Bench of FP8
HarnessIFBench 0.2.0lm-evaluation-harness 0.4.13bfcl-eval 2026.3.23lm-evaluation-harness 0.4.13
Items30014001640541
Datasetallenai/IFBench_test at 2e8a48dTIGER-Lab/MMLU-Pro at b189ec7in the harnessgoogle/IFEval at 966cd89

L40S

48 GB

32Max requests

Memory, GB

Runtime
1.9
Weights
8.9
KV cache
33.6
KV per request
0.65
KV tokens
495,838

Workload, tokens per request

Prompt p50
9,441
Prompt range
8,316 to 10,478
From cache
97 %
Reply p50
196

Run

Measured
Nov 6, 2026
Engine
vLLM v0.31.0
Load tool
AIPerf 0.13.0
Load test end
48 requests · p90 > 1 s
Run end
complete

Load

TTFT in ms, decode in tok/s
RequestsSentErrorsTTFT p50TTFT p90Decode p50
1100011513170
2100012714467
3100013615264
4100013015362
6100013716256
8100013716751
10100014116746
12100015318942
16100015618337
24100018024130
32100019227326

Quality

Score in %, ± 95 % interval, run on RTX PRO 6000, Nov 5, 2026
IFBenchMMLU-ProBFCLIFEval
Score per quant
BF16 · google38 ± 077 ± 266 ± 090 ± 0
FP8 · RedHatAI37 ± 076 ± 265 ± 089 ± 0
W4A16 · google35 ± 073 ± 264 ± 086 ± 0
Bench of W4A16
HarnessIFBench 0.2.0lm-evaluation-harness 0.4.13bfcl-eval 2026.3.23lm-evaluation-harness 0.4.13
Items30014001640541
Datasetallenai/IFBench_test at 2e8a48dTIGER-Lab/MMLU-Pro at b189ec7in the harnessgoogle/IFEval at 966cd89

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