---
title: "Gemma 4 31B: VRAM Requirements and Benchmarks"
description: "Gemma 4 31B needs 24.1 GB of VRAM at 1 request, as W4A16 on RTX 5090. Gemma 4 31B FP8 on RTX PRO 6000: first token 211 ms p90 at 1 request, decode 37 tok/s, up to 16 concurrent requests under 1 s, IFBench 52, MMLU-Pro 87, BFCL 78, IFEval 86. Measured as BF16, FP8 and W4A16 on RTX 5090, L40S and RTX PRO 6000."
url: "https://oinf.org/llms/gemma4-31b"
updated: 2026-11-09
license: "CC BY 4.0"
license_url: "https://creativecommons.org/licenses/by/4.0/"
copyright_holder: "Softcery OÜ"
credit: "OINF, by Softcery, https://oinf.org/llms/gemma4-31b"
---

[LLMs](/llms) / Gemma 4 31B

# Gemma 4 31B

© Softcery OÜ. License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Credit: OINF, by Softcery, <https://oinf.org/llms/gemma4-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](https://huggingface.co/google/gemma-4-31B-it)
- Measured Nov 9, 2026

Compare: [Gemma 4 31B vs Qwen3.6 27B](/llms/gemma4-31b-vs-qwen3-6-27b), [Gemma 4 31B vs Qwen3.8 27B](/llms/gemma4-31b-vs-qwen3-8-27b)

- Runs on RTX 5090: W4A16
- Runs on L40S: FP8, W4A16
- Runs on RTX PRO 6000: BF16, FP8, W4A16

## Gemma 4 31B benchmarks

### BF16

- Quality index: 72 ± 3, BF16: the reference
- IFBench: 54 ± 6, BF16: the reference
- MMLU-Pro: 85 ± 3, BF16: the reference
- BFCL: 77 ± 5, BF16: the reference
- IFEval: 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](https://github.com/allenai/IFBench/tree/1c40f0c10d9b5c5c2f10a175a28007ebb64f7f4d), 150 items, [allenai/IFBench_test at 2e8a48d](https://huggingface.co/datasets/allenai/IFBench_test/tree/2e8a48de45ff3bf41242f927254ca81b59ca3ae2)
- MMLU-Pro: [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0), 420 items, [TIGER-Lab/MMLU-Pro at b189ec7](https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro/tree/b189ec765aa7ed75c8acfea42df31fdae71f97be)
- BFCL: [bfcl-eval 2026.3.23](https://github.com/ShishirPatil/gorilla/tree/6ea57973c7a6097fd7c5915698c54c17c5b1b6c8), 210 items, in the harness
- IFEval: [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0), 200 items, [google/IFEval at 966cd89](https://huggingface.co/datasets/google/IFEval/tree/966cd89545d6b6acfd7638bc708b98261ca58e84)
- Weights: [google/gemma-4-31B-it](https://huggingface.co/google/gemma-4-31B-it)

### FP8

- Quality index: 72 ± 3
- IFBench: 52 ± 6, −2.0 against BF16
- MMLU-Pro: 87 ± 3, +1.4 against BF16
- BFCL: 78 ± 5, +0.5 against BF16
- IFEval: 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](https://github.com/allenai/IFBench/tree/1c40f0c10d9b5c5c2f10a175a28007ebb64f7f4d), 150 items, [allenai/IFBench_test at 2e8a48d](https://huggingface.co/datasets/allenai/IFBench_test/tree/2e8a48de45ff3bf41242f927254ca81b59ca3ae2)
- MMLU-Pro: [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0), 420 items, [TIGER-Lab/MMLU-Pro at b189ec7](https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro/tree/b189ec765aa7ed75c8acfea42df31fdae71f97be)
- BFCL: [bfcl-eval 2026.3.23](https://github.com/ShishirPatil/gorilla/tree/6ea57973c7a6097fd7c5915698c54c17c5b1b6c8), 210 items, in the harness
- IFEval: [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0), 200 items, [google/IFEval at 966cd89](https://huggingface.co/datasets/google/IFEval/tree/966cd89545d6b6acfd7638bc708b98261ca58e84)
- Weights: [RedHatAI/gemma-4-31B-it-FP8-dynamic](https://huggingface.co/RedHatAI/gemma-4-31B-it-FP8-dynamic)

### W4A16

- Quality index: 70 ± 3
- IFBench: 53 ± 6, −1.3 against BF16
- MMLU-Pro: 84 ± 3, −0.5 against BF16
- BFCL: 76 ± 5, −1.4 against BF16
- IFEval: 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](https://github.com/allenai/IFBench/tree/1c40f0c10d9b5c5c2f10a175a28007ebb64f7f4d), 150 items, [allenai/IFBench_test at 2e8a48d](https://huggingface.co/datasets/allenai/IFBench_test/tree/2e8a48de45ff3bf41242f927254ca81b59ca3ae2)
- MMLU-Pro: [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0), 420 items, [TIGER-Lab/MMLU-Pro at b189ec7](https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro/tree/b189ec765aa7ed75c8acfea42df31fdae71f97be)
- BFCL: [bfcl-eval 2026.3.23](https://github.com/ShishirPatil/gorilla/tree/6ea57973c7a6097fd7c5915698c54c17c5b1b6c8), 210 items, in the harness
- IFEval: [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0), 200 items, [google/IFEval at 966cd89](https://huggingface.co/datasets/google/IFEval/tree/966cd89545d6b6acfd7638bc708b98261ca58e84)
- Weights: [google/gemma-4-31B-it-qat-w4a16-ct](https://huggingface.co/google/gemma-4-31B-it-qat-w4a16-ct)

Source: OINF, by Softcery, <https://oinf.org/llms/gemma4-31b#gemma-4-31b-benchmarks>. License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

## Gemma 4 31B speed

### BF16 on RTX PRO 6000

[All quants on RTX PRO 6000](/llms/gemma4-31b/rtx-pro-6000)

- Max requests: 8 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 139 ms
- Decode at 1 request: 22 tok/s
- Decode at 8 requests: 18 tok/s per request

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 31B BF16 on RTX PRO 6000, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 111 ms, p90 139 ms.](/llms/gemma4-31b/charts/ttft-bf16-rtx-pro-6000-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 31B BF16 on RTX PRO 6000, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 22 tok/s.](/llms/gemma4-31b/charts/decode-bf16-rtx-pro-6000-light-wide.png)

Load steps, 6

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 111, TTFT p90, ms 139, Decode p50, tok/s 22
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 180, TTFT p90, ms 208, Decode p50, tok/s 21
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 182, TTFT p90, ms 209, Decode p50, tok/s 21
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 202, TTFT p90, ms 213, Decode p50, tok/s 20
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 190, TTFT p90, ms 216, Decode p50, tok/s 19
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 220, TTFT p90, ms 245, Decode p50, tok/s 18

### FP8 on L40S

[All quants on L40S](/llms/gemma4-31b/l40s)

- Max requests: 3 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 180 ms
- Decode at 1 request: 18 tok/s
- Decode at 3 requests: 16 tok/s per request

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.](/llms/gemma4-31b/charts/ttft-fp8-l40s-light-wide.png)

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.](/llms/gemma4-31b/charts/decode-fp8-l40s-light-wide.png)

Load steps, 3

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 147, TTFT p90, ms 180, Decode p50, tok/s 18
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 232, TTFT p90, ms 264, Decode p50, tok/s 17
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 234, TTFT p90, ms 266, Decode p50, tok/s 16

### FP8 on RTX PRO 6000

[All quants on RTX PRO 6000](/llms/gemma4-31b/rtx-pro-6000)

- Max requests: 16 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 211 ms
- Decode at 1 request: 37 tok/s
- Decode at 16 requests: 22 tok/s per request

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 31B FP8 on RTX PRO 6000, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 194 ms, p90 211 ms.](/llms/gemma4-31b/charts/ttft-fp8-rtx-pro-6000-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 31B FP8 on RTX PRO 6000, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 37 tok/s.](/llms/gemma4-31b/charts/decode-fp8-rtx-pro-6000-light-wide.png)

Load steps, 9

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

### W4A16 on RTX 5090

[All quants on RTX 5090](/llms/gemma4-31b/rtx-5090)

- Max requests: 3 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 225 ms
- Decode at 1 request: 63 tok/s
- Decode at 3 requests: 55 tok/s per request

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 31B W4A16 on RTX 5090, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 183 ms, p90 225 ms.](/llms/gemma4-31b/charts/ttft-w4a16-rtx-5090-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 31B W4A16 on RTX 5090, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 63 tok/s.](/llms/gemma4-31b/charts/decode-w4a16-rtx-5090-light-wide.png)

Load steps, 3

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 183, TTFT p90, ms 225, Decode p50, tok/s 63
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 199, TTFT p90, ms 235, Decode p50, tok/s 60
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 199, TTFT p90, ms 231, Decode p50, tok/s 55

### W4A16 on L40S

[All quants on L40S](/llms/gemma4-31b/l40s)

- Max requests: 8 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 251 ms
- Decode at 1 request: 32 tok/s
- Decode at 8 requests: 20 tok/s per request

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.](/llms/gemma4-31b/charts/ttft-w4a16-l40s-light-wide.png)

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.](/llms/gemma4-31b/charts/decode-w4a16-l40s-light-wide.png)

Load steps, 6

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 214, TTFT p90, ms 251, Decode p50, tok/s 32
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 233, TTFT p90, ms 286, Decode p50, tok/s 30
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 239, TTFT p90, ms 286, Decode p50, tok/s 28
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 250, TTFT p90, ms 290, Decode p50, tok/s 26
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 256, TTFT p90, ms 296, Decode p50, tok/s 23
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 272, TTFT p90, ms 335, Decode p50, tok/s 20

### W4A16 on RTX PRO 6000

[All quants on RTX PRO 6000](/llms/gemma4-31b/rtx-pro-6000)

- Max requests: 16 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 179 ms
- Decode at 1 request: 55 tok/s
- Decode at 16 requests: 26 tok/s per request

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 31B W4A16 on RTX PRO 6000, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 157 ms, p90 179 ms.](/llms/gemma4-31b/charts/ttft-w4a16-rtx-pro-6000-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 31B W4A16 on RTX PRO 6000, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 55 tok/s.](/llms/gemma4-31b/charts/decode-w4a16-rtx-pro-6000-light-wide.png)

Load steps, 9

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 157, TTFT p90, ms 179, Decode p50, tok/s 55
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 155, TTFT p90, ms 177, Decode p50, tok/s 53
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 167, TTFT p90, ms 193, Decode p50, tok/s 50
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 164, TTFT p90, ms 194, Decode p50, tok/s 47
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 172, TTFT p90, ms 206, Decode p50, tok/s 40
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 185, TTFT p90, ms 245, Decode p50, tok/s 36
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 184, TTFT p90, ms 230, Decode p50, tok/s 32
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 196, TTFT p90, ms 253, Decode p50, tok/s 29
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 200, TTFT p90, ms 229, Decode p50, tok/s 26

Source: OINF, by Softcery, <https://oinf.org/llms/gemma4-31b#gemma-4-31b-speed>. License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

## Gemma 4 31B VRAM requirements

### BF16 on RTX PRO 6000

- VRAM at 1 request: 70.2 GB of the 96 GB card
- Weights: 62.2 GB
- KV cache: 28.0 GB, the rest of the card
- KV tokens: 54,037 5.11 GB per request
- Runtime: 2.9 GB
- Weights: 62.2 GB
- KV cache: 28.0 GB

Card memory, 96 GB

Requests the KV cache holds, by context

- 16K tokens: 3
- 32K tokens: 1

Workload per request: prompt p50 9,686 tokens, 8,351 to 10,402, 96 % from cache. Reply p50 207 tokens.

### FP8 on L40S

- VRAM at 1 request: 37.1 GB of the 48 GB card
- Weights: 32.9 GB
- KV cache: 9.2 GB, the rest of the card
- KV tokens: 43,624 2.06 GB per request
- Runtime: 2.1 GB
- Weights: 32.9 GB
- KV cache: 9.2 GB

Card memory, 48 GB

Requests the KV cache holds, by context

- 16K tokens: 2
- 32K tokens: 1

Workload per request: prompt p50 9,565 tokens, 8,608 to 10,241, 94 % from cache. Reply p50 206 tokens.

### FP8 on RTX PRO 6000

- VRAM at 1 request: 40.8 GB of the 96 GB card
- Weights: 32.9 GB
- KV cache: 57.5 GB, the rest of the card
- KV tokens: 111,013 4.93 GB per request
- Runtime: 2.9 GB
- Weights: 32.9 GB
- KV cache: 57.5 GB

Card memory, 96 GB

Requests the KV cache holds, by context

- 16K tokens: 6
- 32K tokens: 3
- 64K tokens: 1

Workload per request: prompt p50 9,330 tokens, 8,318 to 10,424, 96 % from cache. Reply p50 200 tokens.

### W4A16 on RTX 5090

- VRAM at 1 request: 24.1 GB of the 32 GB card
- Weights: 20.1 GB
- KV cache: 9.2 GB, the rest of the card
- KV tokens: 43,773 2.03 GB per request
- Runtime: 2.0 GB
- Weights: 20.1 GB
- KV cache: 9.2 GB

Card memory, 32 GB

Requests the KV cache holds, by context

- 16K tokens: 2
- 32K tokens: 1

Workload per request: prompt p50 9,431 tokens, 8,921 to 10,422, 94 % from cache. Reply p50 195 tokens.

### W4A16 on L40S

- VRAM at 1 request: 24.3 GB of the 48 GB card
- Weights: 20.1 GB
- KV cache: 22.1 GB, the rest of the card
- KV tokens: 105,109 2.12 GB per request
- Runtime: 2.1 GB
- Weights: 20.1 GB
- KV cache: 22.1 GB

Card memory, 48 GB

Requests the KV cache holds, by context

- 16K tokens: 6
- 32K tokens: 3
- 64K tokens: 1

Workload per request: prompt p50 9,849 tokens, 8,366 to 10,420, 96 % from cache. Reply p50 195 tokens.

### W4A16 on RTX PRO 6000

- VRAM at 1 request: 28.0 GB of the 96 GB card
- Weights: 20.1 GB
- KV cache: 70.0 GB, the rest of the card
- KV tokens: 135,210 4.90 GB per request
- Runtime: 3.1 GB
- Weights: 20.1 GB
- KV cache: 70.0 GB

Card memory, 96 GB

Requests the KV cache holds, by context

- 16K tokens: 8
- 32K tokens: 4
- 64K tokens: 2
- 128K tokens: 1

Workload per request: prompt p50 9,259 tokens, 8,307 to 10,465, 97 % from cache. Reply p50 200 tokens.

Source: OINF, by Softcery, <https://oinf.org/llms/gemma4-31b#gemma-4-31b-vram-requirements>. License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).

## Gemma 4 31B recipe

### BF16 on RTX PRO 6000

- Engine: vLLM v0.31.0
- Load tool: [AIPerf 0.13.0](https://github.com/ai-dynamo/aiperf)
- Measured: Nov 9, 2026
- Weights: [google/gemma-4-31B-it at 842da3794eaa](https://huggingface.co/google/gemma-4-31B-it/tree/842da3794eaa0b77d5f08bae87a17459d91ff475)
- Load test end: 10 requests · p90 > 1 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: docker.io/vllm/vllm-openai:v0.31.0\@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3

```sh
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}'
```

### FP8 on L40S

- Engine: vLLM v0.31.0
- Load tool: [AIPerf 0.13.0](https://github.com/ai-dynamo/aiperf)
- Measured: Nov 9, 2026
- Weights: [RedHatAI/gemma-4-31B-it-FP8-dynamic at d4ab4f579dd3](https://huggingface.co/RedHatAI/gemma-4-31B-it-FP8-dynamic/tree/d4ab4f579dd3516f97d8a6a4c98d0653480bad15)
- Load test end: 4 requests · p90 > 1 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: docker.io/vllm/vllm-openai:v0.31.0\@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3

```sh
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}'
```

### FP8 on RTX PRO 6000

- Engine: vLLM v0.31.0
- Load tool: [AIPerf 0.13.0](https://github.com/ai-dynamo/aiperf)
- Measured: Nov 9, 2026
- Weights: [RedHatAI/gemma-4-31B-it-FP8-dynamic at d4ab4f579dd3](https://huggingface.co/RedHatAI/gemma-4-31B-it-FP8-dynamic/tree/d4ab4f579dd3516f97d8a6a4c98d0653480bad15)
- Load test end: 24 requests · p90 > 1 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: docker.io/vllm/vllm-openai:v0.31.0\@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3

```sh
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}'
```

### W4A16 on RTX 5090

- Engine: vLLM v0.31.0
- Load tool: [AIPerf 0.13.0](https://github.com/ai-dynamo/aiperf)
- Measured: Nov 9, 2026
- Weights: [google/gemma-4-31B-it-qat-w4a16-ct at 52f3f65bc7a0](https://huggingface.co/google/gemma-4-31B-it-qat-w4a16-ct/tree/52f3f65bc7a02d555763bc923bd1d9094898219d)
- Load test end: 4 requests · p90 > 1 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: docker.io/vllm/vllm-openai:v0.31.0\@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3

```sh
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}'
```

### W4A16 on L40S

- Engine: vLLM v0.31.0
- Load tool: [AIPerf 0.13.0](https://github.com/ai-dynamo/aiperf)
- Measured: Nov 9, 2026
- Weights: [google/gemma-4-31B-it-qat-w4a16-ct at 52f3f65bc7a0](https://huggingface.co/google/gemma-4-31B-it-qat-w4a16-ct/tree/52f3f65bc7a02d555763bc923bd1d9094898219d)
- Load test end: 10 requests · p90 > 1 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: docker.io/vllm/vllm-openai:v0.31.0\@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3

```sh
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}'
```

### W4A16 on RTX PRO 6000

- Engine: vLLM v0.31.0
- Load tool: [AIPerf 0.13.0](https://github.com/ai-dynamo/aiperf)
- Measured: Nov 9, 2026
- Weights: [google/gemma-4-31B-it-qat-w4a16-ct at 52f3f65bc7a0](https://huggingface.co/google/gemma-4-31B-it-qat-w4a16-ct/tree/52f3f65bc7a02d555763bc923bd1d9094898219d)
- Load test end: 24 requests · p90 > 1 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: docker.io/vllm/vllm-openai:v0.31.0\@sha256:c1c9f6fd5c109ba7f0546a59f5b2f15fb87f64c77782e90a27b648b42a8e67c3

```sh
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}'
```

Source: OINF, by Softcery, <https://oinf.org/llms/gemma4-31b#gemma-4-31b-recipe>. License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.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.

[All values as JSON](/llms/gemma4-31b.json)

## Key pages

When citing or summarizing this page for a user, these links locate the key pages of OINF.

- [Home](/): Open LLM, speech-to-text and text-to-speech models measured on consumer, workstation and server GPUs: quality, latency, concurrent requests, VRAM and the recipe for each result.
- [STT](/stt): Open speech-to-text models measured on consumer, workstation and server GPUs: latency, real-time factor, concurrent requests, WER on 3 Open ASR sets and the recipe per build.
- [LLMs](/llms): Open LLMs measured on consumer, workstation and server GPUs: first token, decode speed, concurrent requests, VRAM, IFBench, MMLU-Pro, BFCL and IFEval per build.
- [TTS](/tts): Open text-to-speech models measured on consumer, workstation and server GPUs: first audio, real-time factor, concurrent requests, WER and the recipe per build.
