Model benchmarks

gemma4:31b local LLM performance

As of September 2026, gemma4:31b runs at up to 7.5 tok/s for local inference (best of 11 community benchmark runs across 4 GPUs).

OllamaQ4_K_M
ShareRedditX

Model size

31.3B

Peak speed

7.5 tok/s

Average speed

5.1 tok/s

Avg PP

23.6 tok/s

Min memory

20.2 GB

Max context

65,536 tokens

Avg output / run

10,176 tokens

Avg runtime / run

42m 17s

Avg quality

73.9

Benchmark runs

11

GPUs tested

4

Quality by task

Average LLM-judged quality (0–100) with the run-to-run spread shown as a P5–P95 band, overall and for each benchmark task, across all 11 runs. The low and high columns show how much the judge’s score varies between runs, and need at least two runs to display.

TaskP5 (low)AvgP95 (high)
Overall62.673.979.2
Agent Workflow72.682.489.2
Code Generation36.263.172.5
Role Play & Narrative74.680.985.6
Research & Analysis57.169.178.5

Performance by hardware and tool

Every hardware/tool/quantization combination gemma4:31b has been benchmarked on, ranked by peak token generation speed. Last updated September 2026.

HardwareToolQuantBest tok/sAvg tok/sMemoryContextQualityRuns
Apple M5 MaxOllamaQ4_K_M7.5 tok/s7.4 tok/s28.4 GB65,536 tokens77.22
Apple M4 ProOllamaQ4_K_M6.0 tok/s6.0 tok/s20.2 GB8,192 tokens76.61
AMD Radeon RX 7900 XTXOllamaQ4_K_M5.5 tok/s4.7 tok/s20.6 GB65,536 tokens72.47
Apple M1 ProOllamaQ4_K_M2.4 tok/s2.4 tok/s20.8 GB65,536 tokens75.31

Benchmark runs

All 11 gemma4:31b runs submitted so far — expand one for its hardware, quality breakdown and per-scenario detail.

Frequently asked questions

Is gemma4:31b good for coding?
In our benchmarks, gemma4:31b scores 63.1/100 for coding. It runs at about 5.1 tok/s, so if you want more speed, Qwen3.8-27B-Turbo-Brilliance-50X-RI-GSQ-RCO-IQ3_XXS-mtp is faster (~37.5 tok/s) and still scores well for coding (83.8/100).
Is gemma4:31b good for agentic (tool-using) tasks?
In our benchmarks, gemma4:31b scores 82.4/100 for agentic workflows. It runs at about 5.1 tok/s, so if you want more speed, muse-glimmer:latest is faster (~33.3 tok/s) and still scores well for agentic workflows (91.6/100).
How fast is gemma4:31b for local inference?
Across 11 community benchmark runs, gemma4:31b reaches up to 7.5 tok/s and averages 5.1 tok/s, with the fastest results on Apple M5 Max.
How much memory does gemma4:31b need?
The leanest observed configuration used about 20.2 GB of memory (quantizations tested: Q4_K_M).
Which tools have been used to run gemma4:31b?
Benchmarks were submitted using Ollama. Results are community-contributed and updated as new runs arrive.