模型升级
使用较早版本的 Ollama 下载的模型会在你第一次运行它们时在后台进行升级,以便在 llama.cpp 上运行时获得更好的性能和兼容性。
为了确保降级安全,Ollama 会保留原始副本作为备份,因此升级后的模型会暂时保留在磁盘上。未来的版本将自动删除这些备份。
要立即删除已备份的模型(需要 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
这只会删除备份。如果你之后降级到早于 0.40 的版本,则需要重新拉取这些模型。
其他更改
* ollama list 不再显示升级后模型的重复条目,由 @dhiltgen 在 https://github.com/ollama/ollama/pull/18874 中提交
* ollama launch claude 使用模型的完整上下文长度,由 @jberg5 在 https://github.com/ollama/ollama/pull/18855 中提交
* README:将 oxi 添加到社区集成中,由 @maziluiosif 在 https://github.com/ollama/ollama/pull/18739 中提交
新贡献者
- @maziluiosif 在 https://github.com/ollama/ollama/pull/18739 中完成了他们的首次贡献
完整更新日志:https://github.com/ollama/ollama/compare/v0.40.1...v0.40.2-rc0