Model Spend Arena2ND ED.
31B · dense · 2026-10-03

Gemma 4 31B

Runs on — · Hugging Face ↗

llama.cppMLXvLLM

AA coding index 43.4 (Artificial Analysis, frozen since 2026-09-11)

The largest dense Gemma 4 — a strong general model just inside the 32 GB tier. Gated on Hugging Face.

First-party test · not the AA coding index

BigCodeBench-Hard pass@1 19% (28/148), via official protocol · llama.cpp Q8_0 · one request at a time · a shared cluster GPU · mean of 3 runs, range 0.0 pp. The brutal counterpart to HumanEval — where HumanEval saturates near the top, BCB-Hard spreads the field, so this is the number that actually separates coding ability. does not fit the token budget; repeats itself until it runs out; 14 of 148 answers hit the token limit (effective ceiling 91%)

What we measured

Our own runs on this model. Each number carries how many problems it is over and how many times we ran it — these are not comparable with each other, and none of them is on the same scale as the third-party indices on the leaderboard.

testscoreoverconditions
BigCodeBench-Hard18.9%n=148 · 3 run(s)official protocol · llama.cpp Q8_0 · one request at a time · a shared cluster GPU · mean of 3 runs, range 0.0
BFCL v4 non-live88.0% ± 2.1n=1390 · 1 run(s)BFCL v4 · Q4_K_M GGUF via llama.cpp · one request at a time · a shared cluster GPU
Quantisation curve · first-party
quantGiBcode
pass@1
24 GB32 GB48 GB96 GB141 GB
Q8_030.418.9%——262K / 173K262K / 262K262K / 262K
Q6_K23.520.3%—139K / 71K262K / 258K262K / 262K262K / 262K
Q5_K_M20.220.3%39K / 18K216K / 112K262K / 262K262K / 262K262K / 262K
UD-Q4_K_XL17.520.3%102K / 51K262K / 145K262K / 262K262K / 262K262K / 262K
Q4_K_M17.120.9%111K / 56K262K / 150K262K / 262K262K / 262K262K / 262K
Q4_016.120.9%134K / 68K262K / 162K262K / 262K262K / 262K262K / 262K
UD-Q3_K_XL14.323.6%176K / 91K262K / 184K262K / 262K262K / 262K262K / 262K

We have not been able to tie these files back to a published repo, so take the quant names as the labels we ran them under. Every point measured on the same class of card, one pass, one request at a time. One problem is 0.68 points, so anything under ~3.4 points apart is a tie — that is the spread we measure between GPU classes, and our rows are not all on the same card. Each card column is the context left for the KV cache after the weights, KV-Q4 / KV-Q8. A dash means the file does not fit that card, or fits with no room left to work. Context is usually the real constraint, not quality. Computed for one slot (--parallel 1), which is what you get serving yourself. llama-server opens four by default, and on a hybrid that costs real context — the table below each curve shows how much. The card figures assume a dedicated card. Measured on an idle one: the driver keeps 623 MiB of 143,771, so 99.6% is usable. Compute buffers are measured too — a fixed ~130 MiB plus 1 MiB per 1K of context, the same slope on every architecture we checked. If your card also runs your desktop you get noticeably less, and we have not measured that case yet.

Tool use · BFCL v4 non-live · first-party

88.0% ± 2.1 over 1390 problems

Q4_K_M · a shared cluster GPU · KV f16 · 1 run. This is the non-agentic half of BFCL: does the model call the right function with the right arguments. It says nothing about how it behaves over a long agentic conversation, which is a separate measurement. The score is BFCL’s own: the unweighted mean of four groups (simple, multiple, parallel, parallel multiple), where simple is itself the mean of Python, Java and JavaScript. Every group counts the same whatever its size, and irrelevance detection — which we also measure, another 240 problems — is not part of it. The margin follows that same weighting.

Sizes on disk

Real GGUF file sizes = weight VRAM.

QuantizationSize
IQ2_XXS8.5 GB
IQ2_M10.8 GB
Q2_K_XL11.8 GB
IQ3_XXS11.8 GB
Q3_K_S13.2 GB
Q3_K_M14.7 GB
Q3_K_XL15.4 GB
IQ4_XS16.4 GB
IQ4_NL17.3 GB
Q4_017.3 GB
Q4_K_S17.4 GB
Q4_K_M18.3 GB
Q4_K_XL18.8 GB
Q4_119.1 GB
Q5_K_S21.1 GB
Q5_K_M21.7 GB
Q5_K_XL21.9 GB
Q6_K25.2 GB
Q6_K_XL27.5 GB
Q8_032.6 GB
Q8_K_XL35.0 GB
BF1661.4 GB

Config tips

~20 GB at Q4 — a 32 GB card, or a 24 GB one at a tighter quant / short context. Excellent on Apple Silicon via MLX.