Ollama 0.40.18 adds Metal‑GPU inference boost and shares tensor utilities
Ollama 0.40.18 introduces fused Inkling residual mixing on Apple Metal GPUs for faster inference, shares tensor helper utilities across hardware via the mlxrunner component, and speeds up Metal decoding and prefill rounds in the inkling2 backend.
Ollama version 0.40.18 was released on 2026-11-24 as a release candidate (v0.40.18-rc0). The release focuses on Metal GPU performance and shared tensor code. It also updates backend components.
The mlx backend now fuses Inkling residual mixing on Apple Metal GPUs, which reduces the number of operations required for each inference step and improves overall speed.
The mlxrunner component now reuses tensor helper utilities and model initialization code, allowing the same logic to run on multiple hardware architectures without duplication.
The inkling2 backend received optimizations that accelerate Metal decoding and shorten both prefill and draft inference rounds, further reducing latency for Metal‑based workloads.
- Aggregated changes from pull requests #19808, #19805, #19865, and #19843.
- Full changelog comparing v0.40.17 to v0.40.18-rc0 is available on GitHub.