Benchmark result

gemma4:31b-mlx on Apple M5 Max — 7.7 tok/s

Measured with Ollama 0.24.0 on May 23, 2026.

ShareRedditX

What the model built

Open full screen →

The coding scenario asks for a playable game in a single HTML file. This is exactly what the model returned, unedited; the frame only adds a line that tells this page how tall it is.

Reproduce this run

toolOllama 0.24.0
modelgemma4:31b-mlx (nvfp4)
context65,536
clientv0.4.22+97

Set those in Ollama, then:

llm-benchmark benchmark --model "gemma4:31b-mlx" --tool "Ollama"

The client prompts for context length and thinking mode, and for the KV cache dtype on Unsloth Studio. Sampling is left at the model default — the values above are what the tool reported using, not overrides the client sent.