Model benchmarks
gemma4:31b local LLM performance
As of November 2026, gemma4:31b runs at up to 7.5 tok/s for local inference (best of 16 community benchmark runs across 5 GPUs).
Model size
31.3B
Peak speed
7.5 tok/s
Average speed
4.9 tok/s
Avg PP
123.2 tok/s
Min memory
1.3 GB
Max context
65,536 tokens
Avg output / run
10,587 tokens
Avg runtime / run
40m 37s
Avg quality
74.6
Benchmark runs
16
GPUs tested
5
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 16 runs. The low and high columns show how much the judge’s score varies between runs, and need at least two runs to display.
| Task | P5 (low) | Avg | P95 (high) |
|---|---|---|---|
| Overall | 66.5 | 74.6 | 78.9 |
| Agent Workflow | 73.9 | 81.7 | 89.1 |
| Code Generation | 49.7 | 64.5 | 72.2 |
| Role Play & Narrative | 72.6 | 80.9 | 85.6 |
| Research & Analysis | 57.7 | 71.2 | 80.1 |
Performance by hardware and tool
Every hardware/tool/quantization combination gemma4:31b has been benchmarked on, ranked by peak token generation speed. Last updated November 2026.
| Hardware | Tool | Quant | Best tok/s | Avg tok/s | Memory | Context | Quality | Runs |
|---|---|---|---|---|---|---|---|---|
| Apple M5 Max | Ollama | Q4_K_M | 7.5 tok/s | 7.4 tok/s | 28.4 GB | 65,536 tokens | 77.2 | 2 |
| Apple M4 Pro | Ollama | Q4_K_M | 6.0 tok/s | 6.0 tok/s | 20.2 GB | 8,192 tokens | 76.6 | 1 |
| AMD Radeon RX 7900 XTX | Ollama | Q4_K_M | 5.5 tok/s | 4.7 tok/s | 20.6 GB | 65,536 tokens | 72.4 | 7 |
| NVIDIA RTX 3500 Ada Generation Laptop GPU | Ollama | Q4_K_M | 4.6 tok/s | 4.5 tok/s | 1.3 GB | 32,768 tokens | 76.0 | 5 |
| Apple M1 Pro | Ollama | Q4_K_M | 2.4 tok/s | 2.4 tok/s | 20.8 GB | 65,536 tokens | 75.3 | 1 |
Benchmark runs
All 16 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 64.5/100 for coding. It runs at about 4.9 tok/s, so if you want more speed, inkling-smallcard-4.2bpw is faster (~65.3 tok/s) and still scores well for coding (86.4/100).
- Is gemma4:31b good for agentic (tool-using) tasks?
- In our benchmarks, gemma4:31b scores 81.7/100 for agentic workflows. It runs at about 4.9 tok/s, so if you want more speed, muse-glimmer:latest is faster (~32.3 tok/s) and still scores well for agentic workflows (91.4/100).
- How fast is gemma4:31b for local inference?
- Across 16 community benchmark runs, gemma4:31b reaches up to 7.5 tok/s and averages 4.9 tok/s, with the fastest results on Apple M5 Max.
- How much memory does gemma4:31b need?
- The leanest observed configuration used about 1.3 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.