---
title: "Gemma 4 12B: VRAM Requirements and Benchmarks"
description: "Gemma 4 12B needs 11.1 GB of VRAM at 1 request, as W4A16 on L4. Gemma 4 12B FP8 on RTX PRO 6000: first token 188 ms p90 at 1 request, decode 79 tok/s, up to 64 concurrent requests under 1 s, IFBench 37, MMLU-Pro 76, BFCL 65, IFEval 89. Measured as BF16, FP8, Q6_K, Q5_K_M, W4A16, Q4_0, Q4_K_XL and Q3_K_XL on RX 9070 XT, L4, RTX 3090, RTX 5090, L40S and RTX PRO 6000."
url: "https://oinf.org/llms/gemma4-12b"
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"
---

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

# Gemma 4 12B

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

Gemma 4 12B needs 11.1 GB of VRAM at 1 request, as W4A16 on L4.

- Provider: Google
- License: Apache 2.0
- 12B params
- 256K context
- [Weights](https://huggingface.co/google/gemma-4-12B-it)
- Measured Nov 6, 2026

* Runs on RX 9070 XT: Q6_K, Q5_K_M, Q4_0, Q4_K_XL, Q3_K_XL
* Runs on L4: FP8, W4A16
* Runs on RTX 3090: W4A16
* Runs on RTX 5090: BF16, FP8, W4A16
* Runs on L40S: BF16, FP8, W4A16
* Runs on RTX PRO 6000: BF16, FP8, W4A16

## Gemma 4 12B benchmarks

### BF16

- Quality index: 60 ± 1, BF16: the reference
- IFBench: 38 full set, BF16: the reference
- MMLU-Pro: 77 ± 2, BF16: the reference
- BFCL: 66 full set, BF16: the reference
- IFEval: 90 full set, BF16: the reference

Run on RTX PRO 6000, Nov 5, 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), 300 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), 1400 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), 1640 items, in the harness
- IFEval: [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0), 541 items, [google/IFEval at 966cd89](https://huggingface.co/datasets/google/IFEval/tree/966cd89545d6b6acfd7638bc708b98261ca58e84)
- Weights: [google/gemma-4-12B-it](https://huggingface.co/google/gemma-4-12B-it)

### FP8

- Quality index: 58 ± 1
- IFBench: 37 full set, −1.3 against BF16
- MMLU-Pro: 76 ± 2, −1.2 against BF16
- BFCL: 65 full set, −0.7 against BF16
- IFEval: 89 full set, −0.4 against BF16

Run on RTX PRO 6000, Nov 5, 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), 300 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), 1400 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), 1640 items, in the harness
- IFEval: [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0), 541 items, [google/IFEval at 966cd89](https://huggingface.co/datasets/google/IFEval/tree/966cd89545d6b6acfd7638bc708b98261ca58e84)
- Weights: [RedHatAI/gemma-4-12B-it-FP8-Dynamic](https://huggingface.co/RedHatAI/gemma-4-12B-it-FP8-Dynamic)

### Q6_K

- Quality index: 62 ± 3
- IFBench: 39 ± 6, −2.7 against BF16
- MMLU-Pro: 81 ± 4, +0.5 against BF16
- BFCL: 68 ± 4, −1.4 against BF16
- IFEval: 87 ± 4, −0.5 against BF16

Run on RX 9070 XT, Nov 6, 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: [unsloth/gemma-4-12b-it-GGUF](https://huggingface.co/unsloth/gemma-4-12b-it-GGUF)

### Q5_K_M

- Quality index: 62 ± 3
- IFBench: 41 ± 6, −0.7 against BF16
- MMLU-Pro: 78 ± 4, −2.1 against BF16
- BFCL: 69 ± 4, 0.0 against BF16
- IFEval: 84 ± 4, −3.5 against BF16

Run on RX 9070 XT, Nov 6, 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: [unsloth/gemma-4-12b-it-GGUF](https://huggingface.co/unsloth/gemma-4-12b-it-GGUF)

### W4A16

- Quality index: 57 ± 1
- IFBench: 35 full set, −3.0 against BF16
- MMLU-Pro: 73 ± 2, −3.6\* against BF16
- BFCL: 64 full set, −1.9\* against BF16
- IFEval: 86 full set, −3.9\* against BF16

Run on RTX PRO 6000, Nov 5, 2026. Scores in %, ± the 95 % interval. The tick marks BF16. \* The change leaves out 0 at 95 %.

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), 300 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), 1400 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), 1640 items, in the harness
- IFEval: [lm-evaluation-harness 0.4.13](https://github.com/EleutherAI/lm-evaluation-harness/tree/ddd67220430a2470529f25fd5c05a576ca1057a0), 541 items, [google/IFEval at 966cd89](https://huggingface.co/datasets/google/IFEval/tree/966cd89545d6b6acfd7638bc708b98261ca58e84)
- Weights: [google/gemma-4-12B-it-qat-w4a16-ct](https://huggingface.co/google/gemma-4-12B-it-qat-w4a16-ct)

### Q4_0

- Quality index: 59 ± 3
- IFBench: 36 ± 5, −5.3 against BF16
- MMLU-Pro: 77 ± 4, −3.3 against BF16
- BFCL: 65 ± 4, −5.2\* against BF16
- IFEval: 88 ± 4, +0.5 against BF16

Run on RX 9070 XT, Nov 6, 2026. Scores in %, ± the 95 % interval. The tick marks BF16. \* The change leaves out 0 at 95 %.

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-12B-it-qat-q4_0-gguf](https://huggingface.co/google/gemma-4-12B-it-qat-q4_0-gguf)

### Q4_K_XL

- Quality index: 59 ± 3
- IFBench: 35 ± 5, −6.0 against BF16
- MMLU-Pro: 77 ± 4, −3.3 against BF16
- BFCL: 67 ± 4, −2.4 against BF16
- IFEval: 86 ± 4, −2.0 against BF16

Run on RX 9070 XT, Nov 6, 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: [unsloth/gemma-4-12B-it-qat-GGUF](https://huggingface.co/unsloth/gemma-4-12B-it-qat-GGUF)

### Q3_K_XL

- Quality index: 59 ± 3
- IFBench: 39 ± 6, −2.7 against BF16
- MMLU-Pro: 75 ± 4, −5.9\* against BF16
- BFCL: 64 ± 5, −5.2\* against BF16
- IFEval: 87 ± 4, −0.5 against BF16

Run on RX 9070 XT, Nov 6, 2026. Scores in %, ± the 95 % interval. The tick marks BF16. \* The change leaves out 0 at 95 %.

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: [unsloth/gemma-4-12b-it-GGUF](https://huggingface.co/unsloth/gemma-4-12b-it-GGUF)

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

## Gemma 4 12B speed

### BF16 on RTX 5090

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

- Max requests: 4 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 82 ms
- Decode at 1 request: 58 tok/s
- Decode at 4 requests: 54 tok/s per request

TTFT, p50 and p90, ms.

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

Decode per request, p50, tok/s.

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

Load steps, 4

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 75, TTFT p90, ms 82, Decode p50, tok/s 58
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 97, TTFT p90, ms 110, Decode p50, tok/s 56
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 103, TTFT p90, ms 109, Decode p50, tok/s 55
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 104, TTFT p90, ms 151, Decode p50, tok/s 54

### BF16 on L40S

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

- Max requests: 16 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 115 ms
- Decode at 1 request: 28 tok/s
- Decode at 16 requests: 21 tok/s per request

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

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

Load steps, 9

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 101, TTFT p90, ms 115, Decode p50, tok/s 28
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 146, TTFT p90, ms 155, Decode p50, tok/s 27
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 147, TTFT p90, ms 155, Decode p50, tok/s 27
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 147, TTFT p90, ms 157, Decode p50, tok/s 26
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 153, TTFT p90, ms 161, Decode p50, tok/s 25
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 151, TTFT p90, ms 168, Decode p50, tok/s 24
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 154, TTFT p90, ms 181, Decode p50, tok/s 23
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 164, TTFT p90, ms 188, Decode p50, tok/s 22
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 165, TTFT p90, ms 196, Decode p50, tok/s 21

### BF16 on RTX PRO 6000

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

- Max requests: 64 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 200 ms
- Decode at 1 request: 50 tok/s
- Decode at 64 requests: 22 tok/s per request

TTFT, p50 and p90, ms.

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

Decode per request, p50, tok/s.

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

Load steps, 13

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 178, TTFT p90, ms 200, Decode p50, tok/s 50
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 181, TTFT p90, ms 211, Decode p50, tok/s 49
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 180, TTFT p90, ms 204, Decode p50, tok/s 49
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 185, TTFT p90, ms 212, Decode p50, tok/s 49
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 183, TTFT p90, ms 205, Decode p50, tok/s 47
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 187, TTFT p90, ms 222, Decode p50, tok/s 45
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 192, TTFT p90, ms 237, Decode p50, tok/s 43
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 192, TTFT p90, ms 220, Decode p50, tok/s 41
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 198, TTFT p90, ms 231, Decode p50, tok/s 38
- Requests 24, Sent 100, Errors 0, TTFT p50, ms 211, TTFT p90, ms 265, Decode p50, tok/s 31
- Requests 32, Sent 100, Errors 0, TTFT p50, ms 231, TTFT p90, ms 289, Decode p50, tok/s 29
- Requests 48, Sent 100, Errors 2, TTFT p50, ms 252, TTFT p90, ms 365, Decode p50, tok/s 25
- Requests 64, Sent 100, Errors 0, TTFT p50, ms 291, TTFT p90, ms 387, Decode p50, tok/s 22

### FP8 on L4

[All quants on L4](/llms/gemma4-12b/l4)

- Max requests: 6 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 285 ms
- Decode at 1 request: 16 tok/s
- Decode at 6 requests: 13 tok/s per request

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)

Load steps, 5

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 262, TTFT p90, ms 285, Decode p50, tok/s 16
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 308, TTFT p90, ms 363, Decode p50, tok/s 16
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 334, TTFT p90, ms 421, Decode p50, tok/s 15
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 315, TTFT p90, ms 366, Decode p50, tok/s 14
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 307, TTFT p90, ms 361, Decode p50, tok/s 13

### FP8 on RTX 5090

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

- Max requests: 16 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 68 ms
- Decode at 1 request: 88 tok/s
- Decode at 16 requests: 57 tok/s per request

TTFT, p50 and p90, ms.

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

Decode per request, p50, tok/s.

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

Load steps, 9

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 62, TTFT p90, ms 68, Decode p50, tok/s 88
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 71, TTFT p90, ms 84, Decode p50, tok/s 86
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 80, TTFT p90, ms 83, Decode p50, tok/s 84
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 82, TTFT p90, ms 90, Decode p50, tok/s 82
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 73, TTFT p90, ms 91, Decode p50, tok/s 78
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 85, TTFT p90, ms 94, Decode p50, tok/s 73
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 87, TTFT p90, ms 96, Decode p50, tok/s 69
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 87, TTFT p90, ms 110, Decode p50, tok/s 65
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 82, TTFT p90, ms 108, Decode p50, tok/s 57

### FP8 on L40S

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

- Max requests: 32 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 131 ms
- Decode at 1 request: 42 tok/s
- Decode at 32 requests: 21 tok/s per request

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

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

Load steps, 11

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 120, TTFT p90, ms 131, Decode p50, tok/s 42
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 145, TTFT p90, ms 163, Decode p50, tok/s 41
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 143, TTFT p90, ms 198, Decode p50, tok/s 40
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 142, TTFT p90, ms 170, Decode p50, tok/s 39
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 138, TTFT p90, ms 162, Decode p50, tok/s 37
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 145, TTFT p90, ms 181, Decode p50, tok/s 35
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 156, TTFT p90, ms 183, Decode p50, tok/s 32
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 152, TTFT p90, ms 180, Decode p50, tok/s 31
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 165, TTFT p90, ms 192, Decode p50, tok/s 28
- Requests 24, Sent 100, Errors 0, TTFT p50, ms 195, TTFT p90, ms 289, Decode p50, tok/s 24
- Requests 32, Sent 100, Errors 0, TTFT p50, ms 205, TTFT p90, ms 308, Decode p50, tok/s 21

### FP8 on RTX PRO 6000

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

- Max requests: 64 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 188 ms
- Decode at 1 request: 79 tok/s
- Decode at 64 requests: 28 tok/s per request

TTFT, p50 and p90, ms.

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

Decode per request, p50, tok/s.

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

Load steps, 14

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 163, TTFT p90, ms 188, Decode p50, tok/s 79
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 168, TTFT p90, ms 195, Decode p50, tok/s 77
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 168, TTFT p90, ms 194, Decode p50, tok/s 75
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 176, TTFT p90, ms 218, Decode p50, tok/s 74
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 173, TTFT p90, ms 230, Decode p50, tok/s 70
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 176, TTFT p90, ms 224, Decode p50, tok/s 67
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 183, TTFT p90, ms 231, Decode p50, tok/s 63
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 178, TTFT p90, ms 236, Decode p50, tok/s 59
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 187, TTFT p90, ms 248, Decode p50, tok/s 53
- Requests 24, Sent 100, Errors 0, TTFT p50, ms 209, TTFT p90, ms 249, Decode p50, tok/s 40
- Requests 32, Sent 100, Errors 0, TTFT p50, ms 231, TTFT p90, ms 294, Decode p50, tok/s 36
- Requests 48, Sent 100, Errors 0, TTFT p50, ms 252, TTFT p90, ms 330, Decode p50, tok/s 31
- Requests 64, Sent 100, Errors 0, TTFT p50, ms 259, TTFT p90, ms 354, Decode p50, tok/s 28
- Requests 96, Sent 100, Errors 0, TTFT p50, ms 434, TTFT p90, ms 2661, Decode p50, tok/s 11

### Q6_K on RX 9070 XT

[All quants on RX 9070 XT](/llms/gemma4-12b/rx-9070-xt)

- Max requests: 1 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 236 ms
- Decode at 1 request: 47 tok/s
- Decode at 1 request: 47 tok/s per request

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 12B Q6_K on RX 9070 XT, llama.cpp b12063: p50 and p90 in ms by concurrent requests. At 1 request, p50 183 ms, p90 236 ms.](/llms/gemma4-12b/charts/ttft-q6-k-rx-9070-xt-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 12B Q6_K on RX 9070 XT, llama.cpp b12063: p50 in tok/s by concurrent requests. At 1 request, p50 47 tok/s.](/llms/gemma4-12b/charts/decode-q6-k-rx-9070-xt-light-wide.png)

Load steps, 1

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 183, TTFT p90, ms 236, Decode p50, tok/s 47

### Q5_K_M on RX 9070 XT

[All quants on RX 9070 XT](/llms/gemma4-12b/rx-9070-xt)

- Max requests: 1 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 220 ms
- Decode at 1 request: 52 tok/s
- Decode at 1 request: 52 tok/s per request

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 12B Q5_K_M on RX 9070 XT, llama.cpp b12063: p50 and p90 in ms by concurrent requests. At 1 request, p50 166 ms, p90 220 ms.](/llms/gemma4-12b/charts/ttft-q5-k-m-rx-9070-xt-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 12B Q5_K_M on RX 9070 XT, llama.cpp b12063: p50 in tok/s by concurrent requests. At 1 request, p50 52 tok/s.](/llms/gemma4-12b/charts/decode-q5-k-m-rx-9070-xt-light-wide.png)

Load steps, 1

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 166, TTFT p90, ms 220, Decode p50, tok/s 52

### W4A16 on L4

[All quants on L4](/llms/gemma4-12b/l4)

- Max requests: 12 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 345 ms
- Decode at 1 request: 27 tok/s
- Decode at 12 requests: 15 tok/s per request

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)

Load steps, 8

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 273, TTFT p90, ms 345, Decode p50, tok/s 27
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 325, TTFT p90, ms 379, Decode p50, tok/s 26
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 330, TTFT p90, ms 388, Decode p50, tok/s 24
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 341, TTFT p90, ms 386, Decode p50, tok/s 22
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 335, TTFT p90, ms 412, Decode p50, tok/s 20
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 377, TTFT p90, ms 433, Decode p50, tok/s 18
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 400, TTFT p90, ms 451, Decode p50, tok/s 16
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 417, TTFT p90, ms 553, Decode p50, tok/s 15

### W4A16 on RTX 3090

[All quants on RTX 3090](/llms/gemma4-12b/rtx-3090)

- Max requests: 16 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 231 ms
- Decode at 1 request: 71 tok/s
- Decode at 16 requests: 30 tok/s per request

TTFT, p50 and p90, ms.

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

Decode per request, p50, tok/s.

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

Load steps, 9

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 197, TTFT p90, ms 231, Decode p50, tok/s 71
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 218, TTFT p90, ms 260, Decode p50, tok/s 67
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 190, TTFT p90, ms 236, Decode p50, tok/s 63
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 206, TTFT p90, ms 253, Decode p50, tok/s 59
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 205, TTFT p90, ms 264, Decode p50, tok/s 50
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 214, TTFT p90, ms 279, Decode p50, tok/s 45
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 243, TTFT p90, ms 359, Decode p50, tok/s 38
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 229, TTFT p90, ms 335, Decode p50, tok/s 35
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 247, TTFT p90, ms 364, Decode p50, tok/s 30

### W4A16 on RTX 5090

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

- Max requests: 24 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 100 ms
- Decode at 1 request: 121 tok/s
- Decode at 24 requests: 45 tok/s per request

TTFT, p50 and p90, ms.

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

Decode per request, p50, tok/s.

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

Load steps, 10

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 86, TTFT p90, ms 100, Decode p50, tok/s 121
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 92, TTFT p90, ms 109, Decode p50, tok/s 116
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 97, TTFT p90, ms 112, Decode p50, tok/s 112
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 97, TTFT p90, ms 115, Decode p50, tok/s 109
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 101, TTFT p90, ms 120, Decode p50, tok/s 101
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 105, TTFT p90, ms 145, Decode p50, tok/s 91
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 100, TTFT p90, ms 128, Decode p50, tok/s 83
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 107, TTFT p90, ms 134, Decode p50, tok/s 75
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 113, TTFT p90, ms 157, Decode p50, tok/s 66
- Requests 24, Sent 100, Errors 0, TTFT p50, ms 126, TTFT p90, ms 174, Decode p50, tok/s 45

### W4A16 on L40S

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

- Max requests: 32 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 131 ms
- Decode at 1 request: 70 tok/s
- Decode at 32 requests: 26 tok/s per request

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

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

Load steps, 11

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 115, TTFT p90, ms 131, Decode p50, tok/s 70
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 127, TTFT p90, ms 144, Decode p50, tok/s 67
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 136, TTFT p90, ms 152, Decode p50, tok/s 64
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 130, TTFT p90, ms 153, Decode p50, tok/s 62
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 137, TTFT p90, ms 162, Decode p50, tok/s 56
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 137, TTFT p90, ms 167, Decode p50, tok/s 51
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 141, TTFT p90, ms 167, Decode p50, tok/s 46
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 153, TTFT p90, ms 189, Decode p50, tok/s 42
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 156, TTFT p90, ms 183, Decode p50, tok/s 37
- Requests 24, Sent 100, Errors 0, TTFT p50, ms 180, TTFT p90, ms 241, Decode p50, tok/s 30
- Requests 32, Sent 100, Errors 0, TTFT p50, ms 192, TTFT p90, ms 273, Decode p50, tok/s 26

### W4A16 on RTX PRO 6000

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

- Max requests: 64 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 62 ms
- Decode at 1 request: 120 tok/s
- Decode at 64 requests: 31 tok/s per request

TTFT, p50 and p90, ms.

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

Decode per request, p50, tok/s.

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

Load steps, 13

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 59, TTFT p90, ms 62, Decode p50, tok/s 120
- Requests 2, Sent 100, Errors 0, TTFT p50, ms 63, TTFT p90, ms 74, Decode p50, tok/s 116
- Requests 3, Sent 100, Errors 0, TTFT p50, ms 62, TTFT p90, ms 66, Decode p50, tok/s 115
- Requests 4, Sent 100, Errors 0, TTFT p50, ms 64, TTFT p90, ms 78, Decode p50, tok/s 110
- Requests 6, Sent 100, Errors 0, TTFT p50, ms 66, TTFT p90, ms 75, Decode p50, tok/s 101
- Requests 8, Sent 100, Errors 0, TTFT p50, ms 68, TTFT p90, ms 84, Decode p50, tok/s 95
- Requests 10, Sent 100, Errors 0, TTFT p50, ms 70, TTFT p90, ms 87, Decode p50, tok/s 85
- Requests 12, Sent 100, Errors 0, TTFT p50, ms 74, TTFT p90, ms 90, Decode p50, tok/s 78
- Requests 16, Sent 100, Errors 0, TTFT p50, ms 81, TTFT p90, ms 120, Decode p50, tok/s 69
- Requests 24, Sent 100, Errors 0, TTFT p50, ms 90, TTFT p90, ms 118, Decode p50, tok/s 48
- Requests 32, Sent 100, Errors 0, TTFT p50, ms 90, TTFT p90, ms 120, Decode p50, tok/s 44
- Requests 48, Sent 100, Errors 0, TTFT p50, ms 108, TTFT p90, ms 178, Decode p50, tok/s 36
- Requests 64, Sent 100, Errors 0, TTFT p50, ms 117, TTFT p90, ms 156, Decode p50, tok/s 31

### Q4_0 on RX 9070 XT

[All quants on RX 9070 XT](/llms/gemma4-12b/rx-9070-xt)

- Max requests: 2 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 178 ms
- Decode at 1 request: 57 tok/s
- Decode at 2 requests: 50 tok/s per request

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 12B Q4_0 on RX 9070 XT, llama.cpp b12063: p50 and p90 in ms by concurrent requests. At 1 request, p50 138 ms, p90 178 ms.](/llms/gemma4-12b/charts/ttft-q4-0-rx-9070-xt-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 12B Q4_0 on RX 9070 XT, llama.cpp b12063: p50 in tok/s by concurrent requests. At 1 request, p50 57 tok/s.](/llms/gemma4-12b/charts/decode-q4-0-rx-9070-xt-light-wide.png)

Load steps, 2

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 138, TTFT p90, ms 178, Decode p50, tok/s 57
- Requests 2, Sent 101, Errors 0, TTFT p50, ms 165, TTFT p90, ms 205, Decode p50, tok/s 50

### Q4_K_XL on RX 9070 XT

[All quants on RX 9070 XT](/llms/gemma4-12b/rx-9070-xt)

- Max requests: 2 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 184 ms
- Decode at 1 request: 59 tok/s
- Decode at 2 requests: 52 tok/s per request

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 12B Q4_K_XL on RX 9070 XT, llama.cpp b12063: p50 and p90 in ms by concurrent requests. At 1 request, p50 139 ms, p90 184 ms.](/llms/gemma4-12b/charts/ttft-q4-k-xl-rx-9070-xt-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 12B Q4_K_XL on RX 9070 XT, llama.cpp b12063: p50 in tok/s by concurrent requests. At 1 request, p50 59 tok/s.](/llms/gemma4-12b/charts/decode-q4-k-xl-rx-9070-xt-light-wide.png)

Load steps, 2

- Requests 1, Sent 100, Errors 0, TTFT p50, ms 139, TTFT p90, ms 184, Decode p50, tok/s 59
- Requests 2, Sent 101, Errors 0, TTFT p50, ms 166, TTFT p90, ms 207, Decode p50, tok/s 52

### Q3_K_XL on RX 9070 XT

[All quants on RX 9070 XT](/llms/gemma4-12b/rx-9070-xt)

- Max requests: 2 at a TTFT p90 of 1 s or less
- TTFT p90 at 1 request: 231 ms
- Decode at 1 request: 61 tok/s
- Decode at 2 requests: 50 tok/s per request

TTFT, p50 and p90, ms.

![TTFT of Gemma 4 12B Q3_K_XL on RX 9070 XT, llama.cpp b12063: p50 and p90 in ms by concurrent requests. At 1 request, p50 176 ms, p90 231 ms.](/llms/gemma4-12b/charts/ttft-q3-k-xl-rx-9070-xt-light-wide.png)

Decode per request, p50, tok/s.

![Decode speed per request of Gemma 4 12B Q3_K_XL on RX 9070 XT, llama.cpp b12063: p50 in tok/s by concurrent requests. At 1 request, p50 61 tok/s.](/llms/gemma4-12b/charts/decode-q3-k-xl-rx-9070-xt-light-wide.png)

Load steps, 2

- Requests 1, Sent 100, Errors 1, TTFT p50, ms 176, TTFT p90, ms 231, Decode p50, tok/s 61
- Requests 2, Sent 101, Errors 0, TTFT p50, ms 193, TTFT p90, ms 250, Decode p50, tok/s 50

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

## Gemma 4 12B VRAM requirements

### BF16 on RTX 5090

- VRAM at 1 request: 26.9 GB of the 32 GB card
- Weights: 24.5 GB
- KV cache: 5.1 GB, the rest of the card
- KV tokens: 74,915 0.66 GB per request
- Runtime: 1.7 GB
- Weights: 24.5 GB
- KV cache: 5.1 GB

Card memory, 32 GB

Requests the KV cache holds, by context

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

Workload per request: prompt p50 9,575 tokens, 8,696 to 10,299, 95 % from cache. Reply p50 205 tokens.

### BF16 on L40S

- VRAM at 1 request: 26.8 GB of the 48 GB card
- Weights: 24.5 GB
- KV cache: 18.0 GB, the rest of the card
- KV tokens: 265,858 0.66 GB per request
- Runtime: 1.7 GB
- Weights: 24.5 GB
- KV cache: 18.0 GB

Card memory, 48 GB

Requests the KV cache holds, by context

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

Workload per request: prompt p50 9,560 tokens, 8,349 to 10,455, 96 % from cache. Reply p50 202 tokens.

### BF16 on RTX PRO 6000

- VRAM at 1 request: 29.1 GB of the 96 GB card
- Weights: 24.5 GB
- KV cache: 66.1 GB, the rest of the card
- KV tokens: 346,833 1.84 GB per request
- Runtime: 2.8 GB
- Weights: 24.5 GB
- KV cache: 66.1 GB

Card memory, 96 GB

Requests the KV cache holds, by context

- 16K tokens: 21
- 32K tokens: 10
- 64K tokens: 5
- 128K tokens: 2
- 256K tokens: 1

Workload per request: prompt p50 9,438 tokens, 8,338 to 10,461, 97 % from cache. Reply p50 198 tokens.

### FP8 on L4

- VRAM at 1 request: 15.8 GB of the 24 GB card
- Weights: 13.7 GB
- KV cache: 6.7 GB, the rest of the card
- KV tokens: 99,124 0.62 GB per request
- Runtime: 1.5 GB
- Weights: 13.7 GB
- KV cache: 6.7 GB

Card memory, 24 GB

Requests the KV cache holds, by context

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

Workload per request: prompt p50 8,985 tokens, 8,418 to 10,407, 93 % from cache. Reply p50 200 tokens.

### FP8 on RTX 5090

- VRAM at 1 request: 16.0 GB of the 32 GB card
- Weights: 13.7 GB
- KV cache: 16.0 GB, the rest of the card
- KV tokens: 235,366 0.64 GB per request
- Runtime: 1.7 GB
- Weights: 13.7 GB
- KV cache: 16.0 GB

Card memory, 32 GB

Requests the KV cache holds, by context

- 16K tokens: 14
- 32K tokens: 7
- 64K tokens: 3
- 128K tokens: 1

Workload per request: prompt p50 9,234 tokens, 8,329 to 10,442, 96 % from cache. Reply p50 195 tokens.

### FP8 on L40S

- VRAM at 1 request: 16.2 GB of the 48 GB card
- Weights: 13.7 GB
- KV cache: 28.7 GB, the rest of the card
- KV tokens: 423,553 0.66 GB per request
- Runtime: 1.9 GB
- Weights: 13.7 GB
- KV cache: 28.7 GB

Card memory, 48 GB

Requests the KV cache holds, by context

- 16K tokens: 25
- 32K tokens: 12
- 64K tokens: 6
- 128K tokens: 3
- 256K tokens: 1

Workload per request: prompt p50 9,505 tokens, 8,334 to 10,403, 97 % from cache. Reply p50 200 tokens.

### FP8 on RTX PRO 6000

- VRAM at 1 request: 18.2 GB of the 96 GB card
- Weights: 13.7 GB
- KV cache: 77.0 GB, the rest of the card
- KV tokens: 404,107 1.79 GB per request
- Runtime: 2.7 GB
- Weights: 13.7 GB
- KV cache: 77.0 GB

Card memory, 96 GB

Requests the KV cache holds, by context

- 16K tokens: 24
- 32K tokens: 12
- 64K tokens: 6
- 128K tokens: 3
- 256K tokens: 1

Workload per request: prompt p50 9,207 tokens, 8,311 to 10,463, 96 % from cache. Reply p50 201 tokens.

### Q6_K on RX 9070 XT

- Card use: 13.8 GB of the 16 GB card
- KV tokens: 11,264 full context, at boot
- Card use, not split: 13.8 GB

Card memory, 16 GB

Requests the KV cache holds, by context

KV tokens: not recorded.

Workload per request: prompt p50 9,687 tokens, 8,471 to 9,813, 98 % from cache. Reply p50 183 tokens.

### Q5_K_M on RX 9070 XT

- Card use: 12.4 GB of the 16 GB card
- KV tokens: 11,264 full context, at boot
- Card use, not split: 12.4 GB

Card memory, 16 GB

Requests the KV cache holds, by context

KV tokens: not recorded.

Workload per request: prompt p50 8,732 tokens, 8,610 to 10,076, 97 % from cache. Reply p50 205 tokens.

### W4A16 on L4

- VRAM at 1 request: 11.1 GB of the 24 GB card
- Weights: 8.9 GB
- KV cache: 11.6 GB, the rest of the card
- KV tokens: 170,526 0.65 GB per request
- Runtime: 1.6 GB
- Weights: 8.9 GB
- KV cache: 11.6 GB

Card memory, 24 GB

Requests the KV cache holds, by context

- 16K tokens: 10
- 32K tokens: 5
- 64K tokens: 2
- 128K tokens: 1

Workload per request: prompt p50 9,324 tokens, 8,346 to 10,343, 97 % from cache. Reply p50 203 tokens.

### W4A16 on RTX 3090

- VRAM at 1 request: 11.2 GB of the 24 GB card
- Weights: 8.9 GB
- KV cache: 13.2 GB, the rest of the card
- KV tokens: 194,982 0.66 GB per request
- Runtime: 1.6 GB
- Weights: 8.9 GB
- KV cache: 13.2 GB

Card memory, 24 GB

Requests the KV cache holds, by context

- 16K tokens: 11
- 32K tokens: 5
- 64K tokens: 2
- 128K tokens: 1

Workload per request: prompt p50 9,494 tokens, 8,348 to 10,485, 97 % from cache. Reply p50 203 tokens.

### W4A16 on RTX 5090

- VRAM at 1 request: 11.4 GB of the 32 GB card
- Weights: 8.9 GB
- KV cache: 20.6 GB, the rest of the card
- KV tokens: 304,709 0.66 GB per request
- Runtime: 1.8 GB
- Weights: 8.9 GB
- KV cache: 20.6 GB

Card memory, 32 GB

Requests the KV cache holds, by context

- 16K tokens: 18
- 32K tokens: 9
- 64K tokens: 4
- 128K tokens: 2
- 256K tokens: 1

Workload per request: prompt p50 9,593 tokens, 8,323 to 10,479, 96 % from cache. Reply p50 198 tokens.

### W4A16 on L40S

- VRAM at 1 request: 11.4 GB of the 48 GB card
- Weights: 8.9 GB
- KV cache: 33.6 GB, the rest of the card
- KV tokens: 495,838 0.65 GB per request
- Runtime: 1.9 GB
- Weights: 8.9 GB
- KV cache: 33.6 GB

Card memory, 48 GB

Requests the KV cache holds, by context

- 16K tokens: 30
- 32K tokens: 15
- 64K tokens: 7
- 128K tokens: 3
- 256K tokens: 1

Workload per request: prompt p50 9,441 tokens, 8,316 to 10,478, 97 % from cache. Reply p50 196 tokens.

### W4A16 on RTX PRO 6000

- VRAM at 1 request: 13.6 GB of the 96 GB card
- Weights: 8.9 GB
- KV cache: 81.7 GB, the rest of the card
- KV tokens: 428,849 1.83 GB per request
- Runtime: 2.9 GB
- Weights: 8.9 GB
- KV cache: 81.7 GB

Card memory, 96 GB

Requests the KV cache holds, by context

- 16K tokens: 26
- 32K tokens: 13
- 64K tokens: 6
- 128K tokens: 3
- 256K tokens: 1

Workload per request: prompt p50 9,398 tokens, 8,303 to 10,465, 97 % from cache. Reply p50 197 tokens.

### Q4_0 on RX 9070 XT

- Card use: 14.9 GB of the 16 GB card
- KV tokens: 22,528 full context, at boot
- Card use, not split: 14.9 GB

Card memory, 16 GB

Requests the KV cache holds, by context

- 16K tokens: 1

Workload per request: prompt p50 9,889 tokens, 9,199 to 10,418, 98 % from cache. Reply p50 201 tokens.

### Q4_K_XL on RX 9070 XT

- Card use: 14.6 GB of the 16 GB card
- KV tokens: 22,528 full context, at boot
- Card use, not split: 14.6 GB

Card memory, 16 GB

Requests the KV cache holds, by context

- 16K tokens: 1

Workload per request: prompt p50 9,783 tokens, 8,470 to 10,328, 98 % from cache. Reply p50 192 tokens.

### Q3_K_XL on RX 9070 XT

- Card use: 13.9 GB of the 16 GB card
- KV tokens: 22,528 full context, at boot
- Card use, not split: 13.9 GB

Card memory, 16 GB

Requests the KV cache holds, by context

- 16K tokens: 1

Workload per request: prompt p50 9,175 tokens, 8,448 to 10,073, 98 % from cache. Reply p50 192 tokens.

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

## Gemma 4 12B recipe

### BF16 on RTX 5090

- 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 at 43c9d014b231](https://huggingface.co/google/gemma-4-12B-it/tree/43c9d014b231474fa7212dbb48a762566c2b255d)
- Load test end: 6 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 \
  --revision 43c9d014b231474fa7212dbb48a762566c2b255d \
  --served-model-name gemma4-12b-bf16-rtx-5090 \
  --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}'
```

### BF16 on L40S

- 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 at 43c9d014b231](https://huggingface.co/google/gemma-4-12B-it/tree/43c9d014b231474fa7212dbb48a762566c2b255d)
- 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-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}'
```

### BF16 on RTX PRO 6000

- 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 at 43c9d014b231](https://huggingface.co/google/gemma-4-12B-it/tree/43c9d014b231474fa7212dbb48a762566c2b255d)
- Load test end: 96 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 \
  --revision 43c9d014b231474fa7212dbb48a762566c2b255d \
  --served-model-name gemma4-12b-bf16-rtx-pro-6000 \
  --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}'
```

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

### FP8 on RTX 5090

- 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: 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-12B-it-FP8-Dynamic \
  --revision 2083adceb2a3df0465e6021e08a7196d21dbbb44 \
  --served-model-name gemma4-12b-fp8-rtx-5090 \
  --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}'
```

### FP8 on L40S

- 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: 48 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-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}'
```

### FP8 on RTX PRO 6000

- 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: 96 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-rtx-pro-6000 \
  --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}'
```

### Q6_K on RX 9070 XT

- Engine: llama.cpp b12063
- Load tool: custom stream client
- Measured: Nov 6, 2026
- Weights: [unsloth/gemma-4-12b-it-GGUF at fc034cfff751](https://huggingface.co/unsloth/gemma-4-12b-it-GGUF/tree/fc034cfff751157913579611efad8462ac1be606)
- Load test end: 2 requests · p90 > 1 s or token 12 > 1.3 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: ghcr.io/ggml-org/llama.cpp:server-vulkan-b12063\@sha256:1359b4e1b3896bc922563a1bb4391afaaf41f4607dfd556627187fd689778853

```sh
/app/llama-server \
  -m /data/models/hub/models--unsloth--gemma-4-12b-it-GGUF/snapshots/fc034cfff751157913579611efad8462ac1be606/gemma-4-12b-it-Q6_K.gguf \
  --host 127.0.0.1 \
  --port 8000 \
  --alias gemma4-12b-q6-k-rx-9070-xt \
  --jinja \
  --chat-template-file /opt/engine/models/gemma4-12b/gemma4.jinja \
  --metrics \
  --temp 1.0 \
  --top-k 64 \
  --top-p 0.95 \
  --min-p 0.0 \
  --repeat-penalty 1.0 \
  --presence-penalty 0.0 \
  --reasoning off \
  --gpu-layers 99 \
  --flash-attn on \
  --ctx-size 11264 \
  --parallel 1 \
  --swa-full
```

### Q5_K_M on RX 9070 XT

- Engine: llama.cpp b12063
- Load tool: custom stream client
- Measured: Nov 5, 2026
- Weights: [unsloth/gemma-4-12b-it-GGUF at fc034cfff751](https://huggingface.co/unsloth/gemma-4-12b-it-GGUF/tree/fc034cfff751157913579611efad8462ac1be606)
- Load test end: 2 requests · p90 > 1 s or token 12 > 1.3 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: ghcr.io/ggml-org/llama.cpp:server-vulkan-b12063\@sha256:1359b4e1b3896bc922563a1bb4391afaaf41f4607dfd556627187fd689778853

```sh
/app/llama-server \
  -m /data/models/hub/models--unsloth--gemma-4-12b-it-GGUF/snapshots/fc034cfff751157913579611efad8462ac1be606/gemma-4-12b-it-Q5_K_M.gguf \
  --host 127.0.0.1 \
  --port 8000 \
  --alias gemma4-12b-q5-k-m-rx-9070-xt \
  --jinja \
  --chat-template-file /opt/engine/models/gemma4-12b/gemma4.jinja \
  --metrics \
  --temp 1.0 \
  --top-k 64 \
  --top-p 0.95 \
  --min-p 0.0 \
  --repeat-penalty 1.0 \
  --presence-penalty 0.0 \
  --reasoning off \
  --gpu-layers 99 \
  --flash-attn on \
  --ctx-size 11264 \
  --parallel 1 \
  --swa-full
```

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

### W4A16 on RTX 3090

- 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: 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-12B-it-qat-w4a16-ct \
  --revision 1d2c2d7f2466070e69d6fb3fd5ce9a7d75f2f6ee \
  --served-model-name gemma4-12b-w4a16-rtx-3090 \
  --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 RTX 5090

- 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: 32 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-rtx-5090 \
  --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 L40S

- 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: 48 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-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}'
```

### W4A16 on RTX PRO 6000

- 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: 96 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-rtx-pro-6000 \
  --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}'
```

### Q4_0 on RX 9070 XT

- Engine: llama.cpp b12063
- Load tool: custom stream client
- Measured: Nov 5, 2026
- Weights: [google/gemma-4-12B-it-qat-q4_0-gguf at 29d097773436](https://huggingface.co/google/gemma-4-12B-it-qat-q4_0-gguf/tree/29d097773436b69ff9feafd636ab4cf873786537)
- Load test end: 3 requests · p90 > 1 s or token 12 > 1.3 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: ghcr.io/ggml-org/llama.cpp:server-vulkan-b12063\@sha256:1359b4e1b3896bc922563a1bb4391afaaf41f4607dfd556627187fd689778853

```sh
/app/llama-server \
  -m /data/models/hub/models--google--gemma-4-12B-it-qat-q4_0-gguf/snapshots/29d097773436b69ff9feafd636ab4cf873786537/gemma-4-12b-it-qat-q4_0.gguf \
  --host 127.0.0.1 \
  --port 8000 \
  --alias gemma4-12b-q4-0-qat-rx-9070-xt \
  --jinja \
  --chat-template-file /opt/engine/models/gemma4-12b/gemma4.jinja \
  --metrics \
  --temp 1.0 \
  --top-k 64 \
  --top-p 0.95 \
  --min-p 0.0 \
  --repeat-penalty 1.0 \
  --presence-penalty 0.0 \
  --reasoning off \
  --gpu-layers 99 \
  --flash-attn on \
  --ctx-size 22528 \
  --parallel 2 \
  --swa-full
```

### Q4_K_XL on RX 9070 XT

- Engine: llama.cpp b12063
- Load tool: custom stream client
- Measured: Nov 5, 2026
- Weights: [unsloth/gemma-4-12B-it-qat-GGUF at 980b060c40a8](https://huggingface.co/unsloth/gemma-4-12B-it-qat-GGUF/tree/980b060c40a8539ac159e0501a3e0f66a6365af3)
- Load test end: 3 requests · p90 > 1 s or token 12 > 1.3 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: ghcr.io/ggml-org/llama.cpp:server-vulkan-b12063\@sha256:1359b4e1b3896bc922563a1bb4391afaaf41f4607dfd556627187fd689778853

```sh
/app/llama-server \
  -m /data/models/hub/models--unsloth--gemma-4-12B-it-qat-GGUF/snapshots/980b060c40a8539ac159e0501a3e0f66a6365af3/gemma-4-12B-it-qat-UD-Q4_K_XL.gguf \
  --host 127.0.0.1 \
  --port 8000 \
  --alias gemma4-12b-ud-q4-k-xl-rx-9070-xt \
  --jinja \
  --chat-template-file /opt/engine/models/gemma4-12b/gemma4.jinja \
  --metrics \
  --temp 1.0 \
  --top-k 64 \
  --top-p 0.95 \
  --min-p 0.0 \
  --repeat-penalty 1.0 \
  --presence-penalty 0.0 \
  --reasoning off \
  --gpu-layers 99 \
  --flash-attn on \
  --ctx-size 22528 \
  --parallel 2 \
  --swa-full
```

### Q3_K_XL on RX 9070 XT

- Engine: llama.cpp b12063
- Load tool: custom stream client
- Measured: Nov 6, 2026
- Weights: [unsloth/gemma-4-12b-it-GGUF at fc034cfff751](https://huggingface.co/unsloth/gemma-4-12b-it-GGUF/tree/fc034cfff751157913579611efad8462ac1be606)
- Load test end: 3 requests · p90 > 1 s or token 12 > 1.3 s
- Chat template: [gemma4.jinja](/templates/d96e056b46b6/gemma4.jinja)
- Image: ghcr.io/ggml-org/llama.cpp:server-vulkan-b12063\@sha256:1359b4e1b3896bc922563a1bb4391afaaf41f4607dfd556627187fd689778853

```sh
/app/llama-server \
  -m /data/models/hub/models--unsloth--gemma-4-12b-it-GGUF/snapshots/fc034cfff751157913579611efad8462ac1be606/gemma-4-12b-it-UD-Q3_K_XL.gguf \
  --host 127.0.0.1 \
  --port 8000 \
  --alias gemma4-12b-ud-q3-k-xl-rx-9070-xt \
  --jinja \
  --chat-template-file /opt/engine/models/gemma4-12b/gemma4.jinja \
  --metrics \
  --temp 1.0 \
  --top-k 64 \
  --top-p 0.95 \
  --min-p 0.0 \
  --repeat-penalty 1.0 \
  --presence-penalty 0.0 \
  --reasoning off \
  --gpu-layers 99 \
  --flash-attn on \
  --ctx-size 22528 \
  --parallel 2 \
  --swa-full
```

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