Ollama v0.40.2

v0.40.2
Changed 3
  • Models downloaded with earlier versions are upgraded in the background the first time they are run, for better performance and compatibility when running on llama.cpp
  • Original copies of upgraded models are kept as backups on disk to allow safe downgrading, and a future release will remove these backups automatically
  • `ollama launch claude` uses the model's full context length behavior changed · inferred, marked in the notes below
Fixed 1
  • `ollama list` no longer shows duplicate entries for upgraded models

1 change to check, marked in the notes below

From Ollama

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):

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

New Contributors

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

View original

Upgraded? How did it go?

Discussion