tag:github.com,2008:https://github.com/ollama/ollama/releases

Release notes from ollama

2026-10-08T17:44:45Z tag:github.com,2008:Repository/658928958/v0.40.2 2026-10-09T03:37:30Z

v0.40.2

<h2>Model upgrades</h2> <p>Models downloaded with earlier versions of Ollama are upgraded in the background the first time you run them, for better performance and compatibility when running on llama.cpp.</p> <p>To make downgrading safe, Ollama keeps the original copy as a backup, so upgraded models are temporarily kept on disk. A future release will remove these backups automatically.</p> <p>To remove backed up models now (requires <code>jq</code>):</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -s localhost:11434/api/tags | jq -r '.models[].name' | while read -r m; do curl -s localhost:11434/api/show -d "{\"model\":\"$m\"}" | jq -r \ 'select(any(.manifests[]?; .runner == "llamacpp")) | .manifests[] | select(.runner == "ggml") | .digest' done | sort -u | xargs -n1 ollama rm"><pre>curl -s localhost:11434/api/tags <span class="pl-k">|</span> jq -r <span class="pl-s"><span class="pl-pds">'</span>.models[].name<span class="pl-pds">'</span></span> <span class="pl-k">|</span> <span class="pl-k">while</span> <span class="pl-c1">read</span> -r m<span class="pl-k">;</span> <span class="pl-k">do</span> curl -s localhost:11434/api/show -d <span class="pl-s"><span class="pl-pds">"</span>{<span class="pl-cce">\"</span>model<span class="pl-cce">\"</span>:<span class="pl-cce">\"</span><span class="pl-smi">$m</span><span class="pl-cce">\"</span>}<span class="pl-pds">"</span></span> <span class="pl-k">|</span> jq -r \ <span class="pl-s"><span class="pl-pds">'</span>select(any(.manifests[]?; .runner == "llamacpp")) | .manifests[] | select(.runner == "ggml") | .digest<span class="pl-pds">'</span></span> <span class="pl-k">done</span> <span class="pl-k">|</span> sort -u <span class="pl-k">|</span> xargs -n1 ollama rm</pre></div> <p>This only deletes the backups. If you later downgrade to a version older than 0.40, you'll need to re-pull those models.</p> <p><strong>Other changes</strong></p> <ul> <li><code>ollama list</code> no longer shows duplicate entries for upgraded models by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dhiltgen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dhiltgen">@dhiltgen</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5764624342" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18874" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18874/hovercard" href="https://github.com/ollama/ollama/pull/18874">#18874</a></li> <li><code>ollama launch claude</code> uses the model's full context length by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jberg5/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jberg5">@jberg5</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5753196342" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18855" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18855/hovercard" href="https://github.com/ollama/ollama/pull/18855">#18855</a></li> <li>README: add oxi to community integrations by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/maziluiosif/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/maziluiosif">@maziluiosif</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5669024353" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18739" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18739/hovercard" href="https://github.com/ollama/ollama/pull/18739">#18739</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/maziluiosif/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/maziluiosif">@maziluiosif</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5669024353" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18739" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18739/hovercard" href="https://github.com/ollama/ollama/pull/18739">#18739</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/ollama/ollama/compare/v0.40.1...v0.40.2-rc0"><tt>v0.40.1...v0.40.2-rc0</tt></a></p> github-actions[bot] tag:github.com,2008:Repository/658928958/v0.40.2-rc0 2026-10-08T15:54:06Z

v0.40.2-rc0: server: hide duplicate and downgrade guards from list (#18874)

<p>When a legacy GGUF which requires our llama.cpp patch set is loaded, we do a<br> lazy conversion on disk to make it llama.cpp compatible. To support<br> downgrades, we temporarily hold both the new and old GGUFs and create a shadow<br> v1 manifest tag to prevent the downgraded server from deleting the new blobs.<br> Showing these in the list output is confusing to users and API consumers. The<br> legacy copies will be removed in a future release to recover the disk space.</p> dhiltgen tag:github.com,2008:Repository/658928958/v0.40.1 2026-10-08T02:09:43Z

v0.40.1

<h2>What's Changed</h2> <ul> <li>server: proxy cloud usage and balance APIs by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drifkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drifkin">@drifkin</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5737631136" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18829" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18829/hovercard" href="https://github.com/ollama/ollama/pull/18829">#18829</a></li> <li>llama: fix clef head reads past 2GiB on windows by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Gigrise/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Gigrise">@Gigrise</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5693402151" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18777" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18777/hovercard" href="https://github.com/ollama/ollama/pull/18777">#18777</a></li> <li>cmd: remove account step from CLI onboarding by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hoyyeva/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hoyyeva">@hoyyeva</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5734869468" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18826" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18826/hovercard" href="https://github.com/ollama/ollama/pull/18826">#18826</a></li> <li>manifest: avoid symlinks on Windows by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dhiltgen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dhiltgen">@dhiltgen</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5750641163" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18852" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18852/hovercard" href="https://github.com/ollama/ollama/pull/18852">#18852</a></li> <li>docs: fix 6 dead links in README community integrations list by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aniketkrs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aniketkrs">@aniketkrs</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5722931157" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18814" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18814/hovercard" href="https://github.com/ollama/ollama/pull/18814">#18814</a></li> <li>docs: fix broken download links in app README by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chenlichao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chenlichao">@chenlichao</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5351020294" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18233" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18233/hovercard" href="https://github.com/ollama/ollama/pull/18233">#18233</a></li> <li>mlx: drop carried metal residency patch now that it is upstream by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/dhiltgen/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/dhiltgen">@dhiltgen</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5751956289" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18854" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18854/hovercard" href="https://github.com/ollama/ollama/pull/18854">#18854</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Gigrise/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Gigrise">@Gigrise</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5693402151" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18777" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18777/hovercard" href="https://github.com/ollama/ollama/pull/18777">#18777</a></li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aniketkrs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aniketkrs">@aniketkrs</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5722931157" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18814" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18814/hovercard" href="https://github.com/ollama/ollama/pull/18814">#18814</a></li> <li><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/chenlichao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/chenlichao">@chenlichao</a> made their first contribution in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5351020294" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18233" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18233/hovercard" href="https://github.com/ollama/ollama/pull/18233">#18233</a></li> </ul> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/ollama/ollama/compare/v0.40.0...v0.40.1-rc0"><tt>v0.40.0...v0.40.1-rc0</tt></a></p> github-actions[bot] tag:github.com,2008:Repository/658928958/v0.40.1-rc0 2026-10-07T22:22:54Z

v0.40.1-rc0

<p>mlx: drop carried metal residency patch now that it is upstream (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5751956289" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18854" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18854/hovercard" href="https://github.com/ollama/ollama/pull/18854">#18854</a>)</p> dhiltgen tag:github.com,2008:Repository/658928958/v0.40.0 2026-10-06T18:47:10Z

v0.40.0

<h2>What's Changed</h2> <p><strong>Models run on MLX on Apple Silicon by default</strong></p> <p>In this release, on Apple Silicon devices, model architectures supported by the MLX runtime will automatically run on MLX.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ollama pull qwen3.8 ollama run qwen3.8"><pre class="notranslate"><code>ollama pull qwen3.8 ollama run qwen3.8 </code></pre></div> <p>Additional models include <a href="https://ollama.com/library/gemma4" rel="nofollow">gemma4</a>, <a href="https://ollama.com/library/qwen3.6" rel="nofollow">qwen3.6</a> and <a href="https://ollama.com/library/qwen3.5" rel="nofollow">qwen3.5</a></p> <p>Decision models are now available on MLX as well: <a href="https://ollama.com/library/nimble" rel="nofollow">Nimble</a> <a href="https://ollama.com/library/tev1" rel="nofollow">tev1</a> <a href="https://ollama.com/library/clef" rel="nofollow">clef</a> <a href="https://ollama.com/library/clef-flash" rel="nofollow">clef-flash</a></p> <p>MLX now has support for an embedding model: <a href="https://ollama.com/library/embeddinggemma-2" rel="nofollow">embeddinggemma-2</a></p> <p>We will continue testing and enabling additional models.</p> <p><strong>Full Changelog</strong>: <a class="commit-link" href="https://github.com/ollama/ollama/compare/v0.35.1...v0.40.0"><tt>v0.35.1...v0.40.0</tt></a></p> github-actions[bot] tag:github.com,2008:Repository/658928958/v0.40.0-rc6 2026-10-06T15:08:38Z

v0.40.0-rc6: model: add multimodal embeddings (#18820)

<p>Implements the EmbeddingGemma2Model architecture on the MLX runner: 24-layer<br> bidirectional text encoder with PLE, shared gemma4 vision/audio towers,<br> mean-pool + L2 output. /api/embed accepts per-item media via input dicts.</p> pdevine tag:github.com,2008:Repository/658928958/v0.40.0-rc5 2026-10-06T01:15:59Z

v0.40.0-rc5

<p>mlx: fix patch for recent mlx update (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="5721166992" data-permission-text="Title is private" data-url="https://github.com/ollama/ollama/issues/18812" data-hovercard-type="pull_request" data-hovercard-url="/ollama/ollama/pull/18812/hovercard" href="https://github.com/ollama/ollama/pull/18812">#18812</a>)</p> dhiltgen tag:github.com,2008:Repository/658928958/v0.40.0-rc4 2026-10-06T00:41:51Z

v0.40.0-rc4: MLX: version bump (#18720)

<ul> <li> <p>MLX: version bump</p> </li> <li> <p>add scopes for unit tests to reduce memory usage</p> </li> </ul> dhiltgen tag:github.com,2008:Repository/658928958/v0.40.0-rc3 2026-10-04T23:15:37Z

v0.40.0-rc3: pull: allow RCs to pull matching min_version (#18790)

<p>Strip off pre-release from the version string so RCs can pull<br> models for the same release.</p> dhiltgen tag:github.com,2008:Repository/658928958/v0.40.0-rc2 2026-10-04T15:48:45Z

v0.40.0-rc2

<p>Merge remote-tracking branch 'upstream/main' into release_v0.40.0</p> dhiltgen