---
title: "Gemma 4 12B on L4: Speed and VRAM"
description: "Gemma 4 12B W4A16 on L4 at 1 request: 27 tok/s decode, 345 ms first token p90 and 11.1 GB VRAM. Measured as FP8 and W4A16, with load, memory, quality and recipe per quant."
url: "https://oinf.org/llms/gemma4-12b/l4"
updated: 2026-11-06
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-12b/l4"
---

[LLMs](/llms) / [Gemma 4 12B](/llms/gemma4-12b) / L4

# Gemma 4 12B on L4

© Softcery OÜ. License: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/). Credit: OINF, by Softcery, <https://oinf.org/llms/gemma4-12b/l4>.

FP8 and W4A16 run on the L4, 24 GB. At 1 request:

- FP8: 16 tok/s decode, 285 ms first token p90, 15.8 GB VRAM
- W4A16: 27 tok/s decode, 345 ms first token p90, 11.1 GB VRAM

VRAM: weights, runtime and the KV cache of 1 request of 9,185 to 9,527 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: L4 · 24 GB
- Engine: vLLM v0.31.0
- Measured Nov 6, 2026

Quants: FP8, W4A16

GPUs: [RX 9070 XT](/llms/gemma4-12b/rx-9070-xt), L4, [RTX 3090](/llms/gemma4-12b/rtx-3090), [RTX 5090](/llms/gemma4-12b/rtx-5090), [L40S](/llms/gemma4-12b/l40s), [RTX PRO 6000](/llms/gemma4-12b/rtx-pro-6000)

## Gemma 4 12B speed and VRAM on L4

### L4

### TTFT

p50 / p90, ms, 1 req

- FP8: 262 / 285
- W4A16: 273 / 345

### Decode

tok/s, 1 req

- FP8: 16
- W4A16: 27

### Memory

GB of the 24 GB card, requests at a context

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

- FP8: runtime 1.5 GB, weights 13.7 GB, KV cache 6.7 GB, 97K KV tokens, 6 × 16K, 3 × 32K, 1 × 64K, 0 × 128K
- W4A16: runtime 1.6 GB, weights 8.9 GB, KV cache 11.6 GB, 167K KV tokens, 10 × 16K, 5 × 32K, 2 × 64K, 1 × 128K

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

## Gemma 4 12B on L4 under load

### FP8 on L4

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 12B FP8 on L4, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 262 ms, p90 285 ms.](/llms/gemma4-12b/charts/ttft-fp8-l4-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 12B FP8 on L4, vLLM v0.31.0: p50 in tok/s by concurrent requests. At 1 request, p50 16 tok/s.](/llms/gemma4-12b/charts/decode-fp8-l4-light-wide.png)

### W4A16 on L4

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 12B W4A16 on L4, vLLM v0.31.0: p50 and p90 in ms by concurrent requests. At 1 request, p50 273 ms, p90 345 ms.](/llms/gemma4-12b/charts/ttft-w4a16-l4-light-wide.png)

Decode per request, p50, tok/s.

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

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

## Gemma 4 12B benchmarks

### IFBench

Score, %

- FP8: 37 ± 0
- W4A16: 35 ± 0

### MMLU-Pro

Score, %

- FP8: 76 ± 2
- W4A16: 73 ± 2

### BFCL

Score, %

- FP8: 65 ± 0
- W4A16: 64 ± 0

### IFEval

Score, %

- FP8: 89 ± 0
- W4A16: 86 ± 0

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

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

## Recipe

### FP8 on L4

- Engine: vLLM v0.31.0
- Load tool: [AIPerf 0.13.0](https://github.com/ai-dynamo/aiperf)
- Measured: Nov 6, 2026
- Weights: [RedHatAI/gemma-4-12B-it-FP8-Dynamic at 2083adceb2a3](https://huggingface.co/RedHatAI/gemma-4-12B-it-FP8-Dynamic/tree/2083adceb2a3df0465e6021e08a7196d21dbbb44)
- Load test end: 8 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-12B-it-FP8-Dynamic \
  --revision 2083adceb2a3df0465e6021e08a7196d21dbbb44 \
  --served-model-name gemma4-12b-fp8-l4 \
  --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}'
```

### W4A16 on L4

- Engine: vLLM v0.31.0
- Load tool: [AIPerf 0.13.0](https://github.com/ai-dynamo/aiperf)
- Measured: Nov 6, 2026
- Weights: [google/gemma-4-12B-it-qat-w4a16-ct at 1d2c2d7f2466](https://huggingface.co/google/gemma-4-12B-it-qat-w4a16-ct/tree/1d2c2d7f2466070e69d6fb3fd5ce9a7d75f2f6ee)
- Load test end: 16 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-12B-it-qat-w4a16-ct \
  --revision 1d2c2d7f2466070e69d6fb3fd5ce9a7d75f2f6ee \
  --served-model-name gemma4-12b-w4a16-l4 \
  --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}'
```

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

## Gemma 4 12B on L4 results

### Method

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

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

### FP8

#### L4

24 GB. Max requests: 6

Memory, GB

- Runtime: 1.5
- Weights: 13.7
- KV cache: 6.7
- KV per request: 0.62
- KV tokens: 99,124

Workload, tokens per request

- Prompt p50: 8,985
- Prompt range: 8,418 to 10,407
- From cache: 93 %
- Reply p50: 200

Run

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

#### Quality

Score in %, ± 95 % interval, run on RTX PRO 6000, Nov 5, 2026

|                 | IFBench                                                                                                                               | MMLU-Pro                                                                                                                          | BFCL                                                                                                         | IFEval                                                                                                                            |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |
| Score per quant |                                                                                                                                       |                                                                                                                                   |                                                                                                              |                                                                                                                                   |
| FP8 · RedHatAI  | 37 ± 0                                                                                                                                | 76 ± 2                                                                                                                            | 65 ± 0                                                                                                       | 89 ± 0                                                                                                                            |
| W4A16 · google  | 35 ± 0                                                                                                                                | 73 ± 2                                                                                                                            | 64 ± 0                                                                                                       | 86 ± 0                                                                                                                            |
| 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           | 300                                                                                                                                   | 1400                                                                                                                              | 1640                                                                                                         | 541                                                                                                                               |
| 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      | 262      | 285      | 16         |
| 2        | 100  | 0      | 308      | 363      | 16         |
| 3        | 100  | 0      | 334      | 421      | 15         |
| 4        | 100  | 0      | 315      | 366      | 14         |
| 6        | 100  | 0      | 307      | 361      | 13         |

### W4A16

#### L4

24 GB. Max requests: 12

Memory, GB

- Runtime: 1.6
- Weights: 8.9
- KV cache: 11.6
- KV per request: 0.65
- KV tokens: 170,526

Workload, tokens per request

- Prompt p50: 9,324
- Prompt range: 8,346 to 10,343
- From cache: 97 %
- Reply p50: 203

Run

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

#### Quality

Score in %, ± 95 % interval, run on RTX PRO 6000, Nov 5, 2026

|                 | IFBench                                                                                                                               | MMLU-Pro                                                                                                                          | BFCL                                                                                                         | IFEval                                                                                                                            |
| --------------- | ------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------- |
| Score per quant |                                                                                                                                       |                                                                                                                                   |                                                                                                              |                                                                                                                                   |
| FP8 · RedHatAI  | 37 ± 0                                                                                                                                | 76 ± 2                                                                                                                            | 65 ± 0                                                                                                       | 89 ± 0                                                                                                                            |
| W4A16 · google  | 35 ± 0                                                                                                                                | 73 ± 2                                                                                                                            | 64 ± 0                                                                                                       | 86 ± 0                                                                                                                            |
| 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           | 300                                                                                                                                   | 1400                                                                                                                              | 1640                                                                                                         | 541                                                                                                                               |
| 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      | 273      | 345      | 27         |
| 2        | 100  | 0      | 325      | 379      | 26         |
| 3        | 100  | 0      | 330      | 388      | 24         |
| 4        | 100  | 0      | 341      | 386      | 22         |
| 6        | 100  | 0      | 335      | 412      | 20         |
| 8        | 100  | 0      | 377      | 433      | 18         |
| 10       | 100  | 0      | 400      | 451      | 16         |
| 12       | 100  | 0      | 417      | 553      | 15         |

Source: OINF, by Softcery, <https://oinf.org/llms/gemma4-12b/l4#gemma-4-12b-on-l4-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.
