Model benchmarks
unsloth/gemma-4-31b-it-UD-MLX-4bit local LLM performance
As of October 2026, unsloth/gemma-4-31b-it-UD-MLX-4bit runs at up to 21.6 tok/s for local inference (best of 2 community benchmark runs across 1 GPU).
Model size
31B
Peak speed
21.6 tok/s
Average speed
21.3 tok/s
Avg PP
516.4 tok/s
Min memory
24.3 GB
Max context
131,072 tokens
Avg output / run
9,411 tokens
Avg runtime / run
7m 47s
Avg quality
77.3
Benchmark runs
2
GPUs tested
1
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 2 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 | 75.9 | 77.3 | 78.7 |
| Agent Workflow | 76.6 | 80.2 | 83.8 |
| Code Generation | 68.8 | 72.0 | 75.2 |
| Role Play & Narrative | 82.1 | 85.0 | 87.9 |
| Research & Analysis | 69.0 | 72.0 | 74.9 |
Performance by hardware and tool
Every hardware/tool/quantization combination unsloth/gemma-4-31b-it-UD-MLX-4bit has been benchmarked on, ranked by peak token generation speed. Last updated October 2026.
| Hardware | Tool | Quant | Best tok/s | Avg tok/s | Memory | Context | Quality | Runs |
|---|---|---|---|---|---|---|---|---|
| Apple M5 Max | Unsloth Studio | — | 21.6 tok/s | 21.3 tok/s | 24.3 GB | 131,072 tokens | 77.3 | 2 |
Benchmark runs
All 2 unsloth/gemma-4-31b-it-UD-MLX-4bit runs submitted so far — expand one for its hardware, quality breakdown and per-scenario detail.
Frequently asked questions
- Is unsloth/gemma-4-31b-it-UD-MLX-4bit good for coding?
- In our benchmarks, unsloth/gemma-4-31b-it-UD-MLX-4bit scores 72.0/100 for coding. It runs at about 21.3 tok/s, so if you want more speed, IsValorum/Nex-N2.5-mini-APEX-I-MiniPlus-V2.1-GGUF:1 is faster (~25.7 tok/s) and still scores well for coding (85.0/100).
- Is unsloth/gemma-4-31b-it-UD-MLX-4bit good for agentic (tool-using) tasks?
- In our benchmarks, unsloth/gemma-4-31b-it-UD-MLX-4bit scores 80.2/100 for agentic workflows. It runs at about 21.3 tok/s, so if you want more speed, granite-4.2-8b-Q4_K_L is faster (~71.6 tok/s) and still scores well for agentic workflows (92.9/100).
- How fast is unsloth/gemma-4-31b-it-UD-MLX-4bit for local inference?
- Across 2 community benchmark runs, unsloth/gemma-4-31b-it-UD-MLX-4bit reaches up to 21.6 tok/s and averages 21.3 tok/s, with the fastest results on Apple M5 Max.
- How much memory does unsloth/gemma-4-31b-it-UD-MLX-4bit need?
- The leanest observed configuration used about 24.3 GB of memory.
- Which tools have been used to run unsloth/gemma-4-31b-it-UD-MLX-4bit?
- Benchmarks were submitted using Unsloth Studio. Results are community-contributed and updated as new runs arrive.