releases.shpreview

v0.31.1

June 30, 2026OllamaView original ↗

Faster Gemma 4 on Apple Silicon

<img width="1037" height="485" alt="Screenshot 2026-06-30 at 5 25 29 PM" src="https://github.com/user-attachments/assets/547d5076-090f-43c4-a661-938e11abc955" />

Gemma 4 is now significantly faster in Ollama on Apple Silicon, generating tokens nearly 90% faster on average across a coding-agent benchmark by leveraging multi-token prediction (MTP). Ollama auto-tunes how many tokens to draft as it runs, so the speedup is on by default, requires no configuration, and does not change the model's output.

What's Changed

  • Tightened Gemma 4 MoE model loading in the MLX engine
  • Updated the MLX engine to the latest version, including a new small-batch matmul kernel
  • Updated the underlying llama.cpp engine to build 9840
  • Improved Gemma 4 multi-token prediction (MTP) performance

Full Changelog: https://github.com/ollama/ollama/compare/v0.30.12...v0.31.1

Fetched July 1, 2026

v0.31.1 — Ollama — releases.sh