Ollamav0.40.2
Download for Windows1.58 GB
Ollama v0.40.2Older release · Oct 8, 2026

This is an older release. It may contain known security issues; use it only if you need it. Get the latest

Windows
Installer
OllamaSetup.exe · 1.58 GB
Download
Portable zip64-bit
ollama-windows-amd64.zip · 1.47 GB
Download
Portable zipARM
ollama-windows-arm64.zip · 210.0 MB
Download
macOS
Disk image
Ollama.dmg · 207.0 MB
Download
Portable zip
Ollama-darwin.zip · 206.3 MB
Download
Archive
ollama-darwin.tgz · 167.5 MB
Download
Linux
Archive64-bit
ollama-linux-amd64.tar.zst · 1.44 GB
Download
ArchiveARM
ollama-linux-arm64.tar.zst · 1.56 GB
Download
Verify with SHA-256 before runningOther versions →
Home / Ollama / v0.40.2
Ollama logo

Ollama v0.40.2

Older release of Ollama, published Oct 8, 2026. Official files from the project’s GitHub release.

Older versionReleased Oct 8, 202617 filesLicense: MIT

This is an older release and may contain known security issues. Use it only if you need this exact version. Get the latest Ollama (v0.40.10)

Downloads for Ollama v0.40.2

Windows

Installer
OllamaSetup.exe · 1.58 GB
Download
Portable zip64-bit
ollama-windows-amd64.zip · 1.47 GB
Download
Portable zipARM
ollama-windows-arm64.zip · 210.0 MB
Download

macOS

Disk image
Ollama.dmg · 207.0 MB
Download
Portable zip
Ollama-darwin.zip · 206.3 MB
Download
Archive
ollama-darwin.tgz · 167.5 MB
Download

Linux

Archive64-bit
ollama-linux-amd64.tar.zst · 1.44 GB
Download
ArchiveARM
ollama-linux-arm64.tar.zst · 1.56 GB
Download

All files on GitHub →

What’s new in v0.40.2

Model upgrades

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.

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.

To remove backed up models now (requires `jq`):

```shell
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
```

This only deletes the backups. If you later downgrade to a version older than 0.40, you'll need to re-pull those models.

Other changes
* `ollama list` no longer shows duplicate entries for upgraded models by @dhiltgen in https://github.com/ollama/ollama/pull/18874
* `ollama launch claude` uses the model's full context length by @jberg5 in https://github.com/ollama/ollama/pull/18855
* README: add oxi to community integrations by @maziluiosif in https://github.com/ollama/ollama/pull/18739

New Contributors
* @maziluiosif made their first contribution in https://github.com/ollama/ollama/pull/18739

Full Changelog: https://github.com/ollama/ollama/compare/v0.40.1...v0.40.2-rc0

Full release notes on GitHub →