Ollama v0.40.17-rc2, Changes MLX Runner Memory Retention Method
Posted As of
In the Ollama prerelease v0.40.17-rc2, the criteria for how the MLX runner retains prefix history have changed. Instead of a fixed limit, it now uses observed memory headroom as the basis. Since this is a prerelease, the behavior of the official version is not guaranteed.
What happened
- Source: Based on the Ollama GitHub release (the project's official repository).
- The prerelease v0.40.17-rc2 was posted on 2026-11-19 (according to the GitHub tag).
- The MLX runner keeps stored prefix history based on observed memory headroom and the workspace for running tasks, instead of a fixed 8 GiB limit.
- When system compression grows, it reportedly frees unused buffers and old history, while keeping reusable paths and active requests.
- The official release date, other change lists, and memory savings figures were not confirmed in the notes.
Our take
This is relevant to users running long conversations through Ollama's MLX path on Apple Silicon Macs. Basing behavior on memory headroom may make a difference when memory is tight, but the actual effect cannot be determined from this note alone. Since it is a prerelease, it is worth also checking whether a stable version has been released.
Sources and related posts
- Ollama GitHub 릴리스 v0.40.17-rc2 Primary source