Last updated: December 5, 2026
Ollama 0.40.21, released December 3, 2026 (ET), adds Alibaba’s Qwen4-35B-A3B as qwen4, a 36 to 37 GB download with a 1M-token context, vision, tools and four thinking levels. It follows 0.40.20, which added MedGemma 2 and Molmo 3, plus a run of Inkling 2 speedups on Apple silicon.
Contents
- What changed from 0.40.18 to 0.40.21
- Qwen4 tags in the Ollama library
- How to update Ollama and run Qwen4
- Controlling Qwen4 thinking effort
- MedGemma 2, Molmo 3 and Apple silicon changes
- Limitations and what comes next
- Frequently asked questions
What changed from 0.40.18 to 0.40.21
Ollama published version 0.40.21 on GitHub on December 4 at 03:20 UTC, which was 10:20 p.m. ET on December 3 (GitHub release). It is the fourth stable release since our Ollama 0.40.17 guide, which covered parallel requests on Apple silicon and Inkling 2 Mini. Here is what each release in between changed, newest first:
- 0.40.21 (Dec 3 ET). Adds Qwen4-35B-A3B, adds the sm120 target to the CUDA woa build preset, bumps the bundled llama.cpp to build b12973 and documents the
licensesfield in the show API (v0.40.21 notes). - 0.40.20 (Nov 28). Adds MedGemma 2 and Molmo 3, keeps restore points in chats on Apple silicon, speeds up Inkling speculative decoding for batched requests on Apple silicon, lets Gemma 4 respect larger image budgets, changes Gemma 4 tool calls, fixes local model context limits in
ollama launch claude, shows multiple licenses inollama show, changes the OpenAI-compatible completion endpoints, and updates MLX and llama.cpp (v0.40.20 notes). - 0.40.19 (Nov 26). Faster short histories, draft proposals and conversation snapshots for Inkling 2, compact Engram history buffers in the MLX runner, and a llama-server bump (v0.40.19 notes).
- 0.40.18 (Nov 23 ET). Faster Inkling 2 decode, prefill and draft rounds on Metal, fused Inkling residual mixing on Metal, and llama.cpp build b12651. This release also removes JetPack 5 support, which matters for older NVIDIA Jetson devices (v0.40.18 notes).
Qwen4 tags in the Ollama library
The qwen4 library page lists seven tags. All of them accept text and image input and advertise a 1M-token context window; the page also marks the model with vision, tools and thinking capabilities (Ollama library).
| Tag | Download size | Notes |
|---|---|---|
| qwen4 (latest), qwen4:35b-a3b | 36 GB to 37 GB | Same digest (459a8d86cc84); the default choice |
| qwen4:35b-a3b-q4_K_M | 37 GB | 4-bit K-quant build |
| qwen4:35b-a3b-nvfp4 | 36 GB | Marked MLX, for Apple silicon |
| qwen4:35b-a3b-mlx-bf16 | 114 GB | Full-precision MLX build |
| qwen4:35b-a3b-bf16, qwen4:35b-a3b-gguf-bf16 | 114 GB | Full-precision builds |
Sizes are the figures shown on the library tags page on December 5 (Ollama library). The page had about 309,800 downloads at that point, compared with about 14,200 for medgemma2 and 3,595 for molmo3. The model itself is released under Apache 2.0.
How to update Ollama and run Qwen4
- On macOS or Windows, click the Ollama icon in the menu bar or taskbar and choose Restart to update. Ollama downloads updates automatically, or you can install the latest version manually (Ollama FAQ).
- On Linux, re-run the install script:
curl -fsSL https://ollama.com/install.sh | sh. - Check that the installed version is 0.40.21 or later, the newest stable release on the GitHub releases page.
- Pull and start the model:
ollama run qwen4. Use a specific tag, such asqwen4:35b-a3b-nvfp4on a Mac, if you want a particular build (Ollama library). - Call it from code through the local API at
http://localhost:11434/api/chatwith"model": "qwen4", or withchat(model='qwen4', ...)from the Python library. - To use it as a coding agent, run
ollama launch claude --model qwen4. The library page lists the same pattern for OpenCode, Hermes Agent and OpenClaw (Ollama library).
Long contexts need more memory. Our guide to changing the Ollama context length explains the setting. For other update paths, see how to update Ollama.
Controlling Qwen4 thinking effort
Qwen4 has four reasoning effort levels: xhigh, high (the default), low and off (Ollama library). Ollama exposes them through its general thinking controls (Ollama thinking docs):
- Call
/api/showfor the model. The response includes athinkingobject withvalues(the supported levels) anddefault. - Set
thinkon a chat or generate request. Usetrueto request thinking,falseto request none,nullfor the model default, or an exact string fromvalues. Numbers are not supported. - Unsupported level names fall back to the model default. Models that cannot turn thinking off use their lowest supported level instead.
- The reasoning trace arrives separately:
message.thinkingandmessage.contentin chat, orthinkingandresponsein generate.
The first 0.40.22 release candidate, published December 5, changes the renderer so it advertises only Qwen4’s own reasoning effort levels (v0.40.22-rc0 notes). If /api/show lists extra values on 0.40.21, stick to the four levels above.
MedGemma 2, Molmo 3 and Apple silicon changes
MedGemma 2 (ollama run medgemma2) is Google’s health model built on Gemma 4. The library offers an E4B size at 6.6 GB to 7.5 GB with a 128K context and a 26B mixture-of-experts size at 18 GB to 19 GB with a 256K context; only the E4B accepts audio (Ollama library). Ollama’s page states it is a starting point for developers, not a clinical tool. Background is in our MedGemma 2 guide.
Molmo 3 (ollama run molmo3) comes in 4B (4.5 GB) and 8B (7.4 GB) tags with a 16K context. In Ollama it handles image understanding and runs on Macs only for now (Ollama library). Pointing and 3D outputs are described in our Molmo 3 guide.
On Apple silicon, chats now keep restore points, and several releases sped up Inkling 2 Mini: fused residual mixing and faster decode and prefill in 0.40.18, faster short histories in 0.40.19, and faster batched speculative decoding in 0.40.20 (v0.40.20 notes).
Limitations and what comes next
- Memory. Even the smallest Qwen4 tag is a 36 GB download, so check free disk space and memory before pulling it, especially if you plan to use long contexts.
- Molmo 3 platform limit. Molmo 3 is supported on Apple silicon only in 0.40.20 (release notes).
- JetPack 5. Support was removed in 0.40.18, so Jetson devices on that JetPack version should stay on an earlier Ollama release or move to a newer JetPack.
- Release candidate. 0.40.22-rc0 also persists inactive conversation caches in the MLX runner, speeds up Inkling 2 Mini on Metal and gives EmbeddingGemma 2 images a 280-token budget (v0.40.22-rc0). It is a pre-release; install it only through the preview channel described in the FAQ.
Frequently asked questions
What is new in Ollama 0.40.21?
Ollama 0.40.21 adds Alibaba’s Qwen4-35B-A3B, available as qwen4 in the model library. It also adds the sm120 target to the CUDA woa build preset, updates the bundled llama.cpp to build b12973 and documents the licenses field in the show API.
How do I run Qwen4 in Ollama?
Update to Ollama 0.40.21 or later, then run ollama run qwen4. The default tag points to qwen4:35b-a3b, a download of about 36 to 37 GB with a 1M-token context window, text and image input, tool calling and thinking.
How do I change Qwen4’s thinking level in Ollama?
Qwen4 offers four reasoning effort levels: xhigh, high (the default), low and off. Check the values with /api/show, then set the think field on a chat or generate request to one of those exact strings, or to true, false or null.
Does Molmo 3 work in Ollama on Windows and Linux?
Not yet. Ollama 0.40.20 added Molmo 3 in 4B and 8B sizes, but the release notes and library page say it runs on Apple silicon Macs only for now, with support for other platforms coming later.
How do I update Ollama to the latest version?
On macOS and Windows, Ollama downloads updates automatically; click the menu bar or taskbar icon and choose Restart to update. On Linux, re-run the install script: curl -fsSL https://ollama.com/install.sh | sh.
Sources
- Release v0.40.21, ollama/ollama (GitHub)
- Release v0.40.20, ollama/ollama (GitHub)
- qwen4 model library page (Ollama)
- Thinking (Ollama documentation)
- FAQ: How can I upgrade Ollama? (Ollama documentation)