---
title: "Gemma 4 31B on L40S: Speed and VRAM"
description: "Gemma 4 31B W4A16 on L40S at 1 request: 32 tok/s decode, 251 ms first token p90 and 24.3 GB VRAM. Measured as FP8 and W4A16, with load, memory, quality and recipe per quant."
url: "https://oinf.org/llms/gemma4-31b/l40s"
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/l40s"
---

[LLMs](/llms) / [Gemma 4 31B](/llms/gemma4-31b) / L40S

# Gemma 4 31B on L40S

© Softcery OÜ. License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Credit: OINF, by Softcery, <https://oinf.org/llms/gemma4-31b/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

Quants: FP8, W4A16

GPUs: [RTX 5090](/llms/gemma4-31b/rtx-5090), L40S, [RTX PRO 6000](/llms/gemma4-31b/rtx-pro-6000)

## Gemma 4 31B speed and VRAM on L40S

### L40S

### TTFT

p50 / p90, ms, 1 req

- FP8: 147 / 180
- W4A16: 214 / 251

### Decode

tok/s, 1 req

- FP8: 18
- W4A16: 32

### Memory

GB of the 48 GB card, requests at a context

0 to 48 GB. Requests, weights and KV tokens per quant. Context per request: 16K, 32K, 64K

- FP8: runtime 2.1 GB, weights 32.9 GB, KV cache 9.2 GB, 43K KV tokens, 2 × 16K, 1 × 32K, 0 × 64K
- W4A16: runtime 2.1 GB, weights 20.1 GB, KV cache 22.1 GB, 103K KV tokens, 6 × 16K, 3 × 32K, 1 × 64K

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

## Gemma 4 31B on L40S under load

### FP8 on L40S

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)

### W4A16 on L40S

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)

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

## Gemma 4 31B benchmarks

### IFBench

Score, %

- FP8: 52 ± 6
- W4A16: 53 ± 6

### MMLU-Pro

Score, %

- FP8: 87 ± 3
- W4A16: 84 ± 3

### BFCL

Score, %

- FP8: 78 ± 5
- W4A16: 76 ± 5

### IFEval

Score, %

- FP8: 86 ± 4
- W4A16: 87 ± 4

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

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

## Recipe

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

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

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

## Gemma 4 31B on L40S results

### Method

The [method of the Gemma 4 31B page](/llms/gemma4-31b#method) defines each value: load, TTFT, decode, max requests, quality and KV per request.

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

### FP8

#### L40S

48 GB. Max requests: 3

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

#### 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](https://github.com/allenai/IFBench/tree/1c40f0c10d9b5c5c2f10a175a28007ebb64f7f4d)                                     | [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0) | [bfcl-eval 2026.3.23](https://github.com/ShishirPatil/gorilla/tree/6ea57973c7a6097fd7c5915698c54c17c5b1b6c8) | [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0) |
| Items           | 150                                                                                                                                   | 420                                                                                                                               | 210                                                                                                          | 200                                                                                                                               |
| Dataset         | [allenai/IFBench_test at 2e8a48d](https://huggingface.co/datasets/allenai/IFBench_test/tree/2e8a48de45ff3bf41242f927254ca81b59ca3ae2) | [TIGER-Lab/MMLU-Pro at b189ec7](https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro/tree/b189ec765aa7ed75c8acfea42df31fdae71f97be) | in the harness                                                                                               | [google/IFEval at 966cd89](https://huggingface.co/datasets/google/IFEval/tree/966cd89545d6b6acfd7638bc708b98261ca58e84)           |

#### 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         |

### W4A16

#### L40S

48 GB. Max requests: 8

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

#### 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](https://github.com/allenai/IFBench/tree/1c40f0c10d9b5c5c2f10a175a28007ebb64f7f4d)                                     | [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0) | [bfcl-eval 2026.3.23](https://github.com/ShishirPatil/gorilla/tree/6ea57973c7a6097fd7c5915698c54c17c5b1b6c8) | [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0) |
| Items           | 150                                                                                                                                   | 420                                                                                                                               | 210                                                                                                          | 200                                                                                                                               |
| Dataset         | [allenai/IFBench_test at 2e8a48d](https://huggingface.co/datasets/allenai/IFBench_test/tree/2e8a48de45ff3bf41242f927254ca81b59ca3ae2) | [TIGER-Lab/MMLU-Pro at b189ec7](https://huggingface.co/datasets/TIGER-Lab/MMLU-Pro/tree/b189ec765aa7ed75c8acfea42df31fdae71f97be) | in the harness                                                                                               | [google/IFEval at 966cd89](https://huggingface.co/datasets/google/IFEval/tree/966cd89545d6b6acfd7638bc708b98261ca58e84)           |

#### 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         |

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

## 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.
