published fresh until

Ollama 0.35.1 to 0.40.6: what must I migrate?

Summary Migrating to Ollama 0.40.6 (checked 2026-10-20) means checking automatic MLX selection, retained model backups, context allocation and agent API behaviour; preserve rollback files and test the actual client before removing backups.

Not for model selection, see local-coding-model-and-runtime-for-24-32-gb-mac-or-gpu-2026; download stalls, see ollama-pull-slows-near-99-percent-stall-fix; gpt-oss CPU offload, see ollama-gpt-oss-cpu-only-num-gpu-context

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

An existing Ollama installation works; upgrading changes its engine, model files or agent behaviour. This is a migration checklist, not a hardware/model shopping guide. All linked pages were fetched for this draft; checked 2026-10-20.

Versions and status

ComponentVerified statusDecision
Ollama 0.35.1 (checked 2026-10-20)Previous release named in the transition changelogRecord your own working baseline
Ollama 0.40.6 (checked 2026-10-20)Release, released 2026-10-16 (checked 2026-10-20)Target for this checklist
Ollama runtimeMIT licence, checked 2026-10-20Model licences and cloud billing are separate; no cloud price asserted

What changed

  • Engine selection. On 2026-09-25 (checked 2026-10-20), 0.40.0 (checked 2026-10-20) made supported architectures use MLX automatically on Apple silicon. Its library additions include decision models and an embedding model. An unchanged model name can therefore take a different runtime path.
  • Model library on disk. On 2026-10-08 (checked 2026-10-20), 0.40.2 (checked 2026-10-20) documented background upgrades of older downloaded models for llama.cpp, retaining originals for downgrade. It hides duplicate upgraded-model entries and makes ollama launch claude use the model's full context. On 2026-10-11 (checked 2026-10-20), 0.40.3 (checked 2026-10-20) paused background upgrades because of request/embedding performance. Do not describe the conversion as still universally running.
  • API and cloud. On 2026-10-14 (checked 2026-10-20), 0.40.5 (checked 2026-10-20) fixed continuing OpenAI-compatible Responses conversations containing custom tool calls, added cloud decision models and clarified cloud access errors. This does not promise complete OpenAI API parity. The compatibility page excludes stateful Responses and limits cloud tool replay; checked 2026-10-20.
  • Context defaults need verification. The context page currently lists 4k below 24 GiB VRAM, 32k at 24–48 GiB and 256k at or above 48 GiB; all checked 2026-10-20. Cloud uses maximum context. The FAQ still says 4096; checked 2026-10-20. Neither page dates a general default change to this release. Set and inspect context rather than attributing an undocumented change to the upgrade.

What breaks

Model conversion can consume extra disk and expose duplicate/shadow entries to scripts. The manifest discussion explains why old GGUF siblings remain. On Windows, DaveEuson's report includes The path cannot be traversed because it contains an untrusted mount point. and HTTP 500; 0.40.1 (checked 2026-10-20) avoids manifest symlinks. A new engine can expose model-specific crashes. More context also means more memory; full-context agent launches can stop fitting even if weights did before.

Recommendation by constraint

SituationChoose
Working local agentPinned upgrade with rollback files retained
MLX-only regressionExplicit GGUF comparison after checking the issue
Local-only policyDisable cloud before testing

How to migrate

1. Save ollama -v, ollama list, your model tags, Modelfiles, service settings and a small representative agent conversation. Record disk space and allocated context with ollama ps. Keep recoverable model files during the trial. 2. Upgrade the server, not just an SDK. Desktop users select Restart to update or use the release download. Linux's specific-version install uses OLLAMA_VERSION; substitute the verified target 0.40.6 (checked 2026-10-20):

curl -fsSL https://ollama.com/install.sh | OLLAMA_VERSION=0.40.6 sh
sudo systemctl restart ollama
ollama -v

3. Test your existing models first. For a fresh comparison, the release copies ollama pull qwen3.8 and ollama run qwen3.8; the official tag list also lists qwen3.8:27b-mlx and qwen3.8:27b-q4_K_M (checked 2026-10-20). Record tags/digests. 4. Set a deliberate context budget. For a manually served instance, the context guide's exact command is OLLAMA_CONTEXT_LENGTH=64000 ollama serve. Stop the existing server first. For a service/app, persist the setting using the FAQ's environment procedure, then restart. Inspect ollama ps; do not assume a shell export changed the running daemon. 5. Separate local and cloud tests. The library verifies clef:cloud (checked 2026-10-20); this is remote inference, not local weights. If local-only operation is required, set OLLAMA_NO_CLOUD=1 and restart per the FAQ. No cloud request is needed to validate local migration. 6. Keep originals until rollback is no longer needed. The model-upgrade release warns that deleting backups means re-pulling models after a downgrade below the transition. Do not run its bulk deletion pipeline as a routine upgrade step.

What to test

Compare one cold load and one warm load, embedding output dimensions and retrieval behaviour, a streamed response, a tool call followed by its result, and a long conversation through your actual agent client. Check disk growth, server logs, context allocation and CPU/GPU placement. Require a final answer, not just successful HTTP headers.

Community evidence and decisions

  • In #18870, collaborator dhiltgen calls conversion a “lazy conversion on disk” and explains manifest lists and rollback copies. This supports preserving originals, not rebuilding your whole model library.
  • In #18846, ejgroene reports an MLX regression; dhiltgen suggests an explicit GGUF tag and Vyaczeslav confirms the workaround. Treat this as a model/runtime-specific fallback; the issue is closed, not evidence that every current MLX run fails. No speed claim is adopted here.

Pitfalls

Do not carry old OLLAMA_NEW_ENGINE advice into this transition without checking current support. Do not delete the entire model directory to fix duplicate display. Do not assume a Responses bug fix enables stateful conversations. Do not let mutable model tags or an automatic update invalidate your comparison.

A prompt to give your agent

Your training data may predate this Ollama transition. Read <https://github.com/ollama/ollama/releases/tag/v0.40.6> and the linked earlier release notes, https://docs.ollama.com/context-length and <https://docs.ollama.com/api/openai-compatibility> now; do not guess flags or model IDs. Inventory my server version, model tags/digests and service context. Propose the pinned upgrade and rollback steps, explain the docs' context conflict, and test embeddings, streaming and a tool-result continuation. Preserve original model files. Do not switch local requests to cloud implicitly.

Limits

No Ollama install, upgrade, inference, rollback or benchmark was run. Community evidence is GitHub reports with maintainer replies, not a representative reliability survey. The docs do not establish when general context defaults changed. No shutdown or retirement is announced in these sources.

Started from a post by @ollama, packaged by the editor. Original post

Subjects

More in local models

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Ollama 0.35.1 to 0.40.6: what must I migrate?
Summary: Migrating to Ollama 0.40.6 (checked 2026-10-20) means checking automatic MLX selection, retained model backups, context allocation and agent API behaviour; preserve rollback files and test the actual client before removing backups.
Copy for agent
get the whatworks thread ollama-0-35-1-to-0-40-6-engine-model-migration and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread ollama-0-35-1-to-0-40-6-engine-model-migration
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp