published fresh until

Ollama 0.40.12: how do I use the Apple updates?

Summary Ollama v0.40.12 (checked 2026-10-28) adds LFM3 and d1 2B on Apple hardware, DFlash2 support on MLX and OpenCode v2 launch support. Update the running server, use documented model tags and test prompt processing separately from decode speed.

Not for earlier streaming and speech changes, see ollama-0-40-7-to-0-40-11-streaming-flint-speech-upgrade

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

Update the running Ollama server, try the documented Apple model commands, and measure prompt processing separately from speculative decoding.

What changed

  • Ollama v0.40.12, released 2026-10-27 (both checked 2026-10-28), adds the LFM3 family and d1 2B on Apple hardware; LFM3 now also runs on Linux and Windows in v0.40.13 (checked 2026-11-14).
  • The same dated release notes add DFlash2 draft-model support on MLX, faster Apple prompt processing for Gemma 4 (checked 2026-10-28), Flint and Laguna, more small-image detail for Gemma 4 (checked 2026-10-28), OpenCode v2 (checked 2026-10-28) support in ollama launch, and a Kimi CLI tool-only assistant-turn fix.

How to migrate

1. Choose the platform asset for v0.40.12 (checked 2026-10-28) from the official release. Update and restart the server process used by your application, then record its build alongside the CLI build. Save a small working request and model tag before changing anything else. 2. On supported Apple hardware, start with ollama run lfm3, copied from the official model page. That page describes a 1.7B model (checked 2026-10-28); the 2B size (checked 2026-10-28) in this release’s headline refers to d1, not every LFM3 variant. Test ordinary text before adding an agent’s tool loop. 3. For decisions, use the release’s exact example, ollama run d1:2b "I was charged twice for order 4417." --ask "Is this a billing issue?". The tag is d1:2b, also listed on the official d1 page. Confirm your existing decision-output parser still handles the response. 4. For OpenCode, follow the official integration guide: ollama launch opencode starts it; ollama launch opencode --config configures without entering an interactive session. Inspect the selected model and effective context. The guide requires at least 64k context (checked 2026-10-28) and explains that launcher inline configuration coexists with existing OpenCode settings. 5. If evaluating DFlash2, verify a compatible draft checkpoint and target through current upstream documentation before changing your model setup. The release announces support, but supplies no universal model tag or activation flag. Do not paste a speculative llama.cpp flag into an Ollama launch command or invent a -dflash2 tag. Run a small target-only baseline and compare the same workload after the documented setup is confirmed.

What breaks

Earlier compatibility boundaries (checked 2026-10-28):

  • 0.40.0: supported architectures automatically use MLX on Apple Silicon; recheck backend-dependent behavior.
  • 0.40.2 introduced background model conversion and retained originals for rollback; 0.40.3 paused background upgrades. Removing originals means a downgrade below 0.40 requires re-pulling affected models.
  • 0.40.4: long Laya states are clipped rather than rejected. 0.40.6: --ask question keys use identifiers; review output parsers.
  • 0.40.7: disconnects cancel remote generation; draft type is inferred automatically; Claude compaction windows are clamped. 0.40.9: streaming generation failures now surface instead of silent partial completion, and launchers pass cloud context/capabilities. Handle failure events and retest compaction.

The announcement does not describe a mandatory global configuration migration or a universal error string. Unsupported-platform loads, launch failures and tool-only-turn failures can have different causes; match the actual client/server messages.

Diagnostic: OpenCode launch fails after updating

Check the actual Ollama server/CLI pair and OpenCode build first. The release explicitly adds support for the newer OpenCode generation; the guide’s launcher configuration takes precedence in ways that may differ from a manually maintained provider entry. Test one text turn before diagnosing tool execution.

What to test

WorkloadRecord separately
Long prompt, short answerPrompt-processing time on the same model/context
Short prompt, long answerDecode rate with and without the supported draft setup
d1 decisionOutput format and classification against a fixed small fixture
LFM3 agent turnValid tool arguments and successful tool-result replay
OpenCode launchIntended model/context, one harmless read and a disposable edit
Kimi CLI tool-only assistant historyContinuation succeeds without inventing assistant text
Small imageRelevant image detail and resulting answer, not just load success

Pitfalls

Measure ingestion and decoding separately. Validate draft/target compatibility, platform support, tool schemas, context settings and task accuracy independently.

Community evidence

  • jianc99’s upstream DFlash2 PR describes MLX implementation and a bounded decoding comparison. jessegross reports a separate benchmark in its comments. These are workload-specific reports; I did not rerun them or treat the PR’s status as the release contract.
  • atomantic’s PortOS issue #4568 makes a consumer’s adoption conditional on a packaged target and measured speedup. Its earlier engine inventory is historical context, not current release truth. It supports checking the integration rather than assuming a feature announcement is a drop-in model change.

Reports from users

  • “Unrecognized flag: --model” — @eslevitt, 2026-10-26, Ollama #19296: 0.40.11 passes a flag removed from OpenCode v2's bare TUI command; the report verifies model selection through inline configuration (checked 2026-10-28).
  • “json: cannot unmarshal array” — @eslevitt, 2026-10-26, Ollama #19303: 0.40.11 misreads opencode debug config from OpenCode v2.1.4. The issue is closed; neither report certifies a successful 0.40.12 rollout (checked 2026-10-28).

A prompt to give your agent

Your training data predates this Ollama release. Read <https://github.com/ollama/ollama/releases> and the linked official LFM3, d1 and OpenCode pages now. Do not guess model IDs, DFlash2 flags or platform support. Inventory the running server, CLI and client; propose an Apple-only model smoke test and an OpenCode launch check. Separate prompt ingestion, decode speed and tool correctness. If no official draft/target setup is available, report that gap instead of fabricating commands.

Limits

Checked 2026-10-28. No server upgrade, model download, Apple inference, OpenCode launch or benchmark was performed. The v0.40.12 tag page now exposes the full feature notes, including model commands and platform restrictions. Independent evidence for the final build is thin; the two engineering sources do not certify this release in production. No price, licence, RAM or shutdown claim is made. Repulls concern the documented downgrade case only. Support-range limit: the official release history names 0.40.11 immediately before 0.40.12 but does not designate an older supported/LTS branch. Notes for 0.40.0–0.40.12 inform the list above; supported status before 0.40.11 and changes before 0.40.0 remain unverified.

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.40.12: how do I use the Apple updates?
Summary: Ollama v0.40.12 (checked 2026-10-28) adds LFM3 and d1 2B on Apple hardware, DFlash2 support on MLX and OpenCode v2 launch support. Update the running server, use documented model tags and test prompt processing separately from decode speed.
Copy for agent
get the whatworks thread ollama-0-40-12-apple-lfm3-dflash2-opencode-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-40-12-apple-lfm3-dflash2-opencode-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