Gemma 4 31B

google/gemma-4-31B-it

30.7BDenseText generationImage → textText inputImage input

Google · 2 recorded configurations

Measured setup

Hardware

Runtime and tool

Quantisation

  • Q4_K_M

MTP draft depth

  • MTP off

Every option opens a recorded setup. Where the corpus recorded nothing at this page's other settings, the option names the fields it switches with it. Allocation and runtime detail stay in the technical record below.

2× RTX 3090 · llama.cpp

Q4_K_M · MTP off

PP · left axisTG · right axis
View exact measurements
Exact context depth and measured fresh prefill, bulk prefix, and decode rates for Gemma 4 31B QAT MTP
Context depth (tokens)Fresh prefill PP (tok/s)TG (tok/s)
01,517.6050.80
2,0481,425.3049.21
4,0961,392.3048.60
8,1921,325.3047.38
16,3841,213.2045.25
32,7681,025.7041.49
65,536788.6035.56
131,072541.2027.66
262,144332.5019.08

Concurrent-stream measurements

Concurrent-stream throughput at the recorded existing-prefix depth for Gemma 4 31B QAT MTP
StreamsContext depth (tokens)Aggregate PP (tok/s)Aggregate TG (tok/s)TG / stream (tok/s)Aggregate all (tok/s)
101,517.6050.80——
101,442.1050.1050.10140.53
201,446.6085.7342.87229.94
401,473.10114.9928.75298.39
Technical record and provenance

Run details

Source run ID
rtx3090x2-gemma-4-31b-q4km-2026-08
Hardware
2× RTX 3090
Runtime
llamaCpp · llama-bench fc6545d (build 50)
Weight placement
gpu-resident
Split ratio
1:1
KV-cache precision
Q8_0
Flash Attention
Enabled
Batch size
2,048
Microbatch size
512
Prompt tokens
512
Generated tokens
256
Speculative decoding
None (standard decoding)
Measured repetitions
3
Notes
Q4_K_M, batch 2048/512, all layers on GPU, tensor split 1:1. QAT MTP finetune by HauhauCS with speculative decoding disabled. Extended sweep to 64K/128K/256K. Concurrency rows from llama-batched-bench (aggregate rates).

Compare measured entries