This script contains updating models using the ollama CLI tool. The script automatically pulls the latest versions of all installed models.
Currently, Ollama CLI does not support updating models in bulk. This script is a workaround to update all models at once.
- Ollama installed on your machine.
-
Set the script as executable.
chmod +x update_models.sh
-
Run the script.
./update_models.sh
-
Run the script.
.\update_models.ps1
NOTE: By default, PowerShell may restrict script execution. To allow your script to run, you might need to adjust the execution policy. Open PowerShell as Administrator and run:
Set-ExecutionPolicy Unrestricted