/ollamamodelupdater

Update your Ollama models to their latest versions with Bun!

Primary LanguageTypeScriptMIT LicenseMIT

Ollama Model Updater 🦙

The Ollama Model Updater will look at all the models you have on your system, check if there is a different version on https://ollama.ai, and pull the model if there is.

parallel downloads showcase

Yes, this is real-time with 60+ models

CLI Demo GIF

CLI Options

  • Download models in parallel with the -p/--parallel flag
  • Skip your local models with the -s/--skip flag, i.e. ollamaupdater -s linux-terminal:latest,test-modelfile:latest
  • Show a confirmation dialog before updating models with the -c/--confirm flag.
  • Show a verbose table of all models, statuses, and local/remote hashes with the -v/--verbose flag
Usage: ollamamodelupdater [options]

Options:
  -p, --parallel       Download updates in parallel (default: false)
  -s, --skip <models>  Models to skip (seperated by commas)
  -c, --confirm        Enable confirmation dialog before upgrading (default: false)
  -v, --verbose        Verbose output (default: false)
  --version            Print current version and exit
  -h, --help           display help for command

Building/Installing

AUR

yay -S ollamamodelupdater # or ollamamodelupdater-bin

From source

Bun Compile

Requires bun >= 1.0.22

You can compile and install the executable with

git clone https://github.com/ThatOneCalculator/ollamamodelupdater.git
cd ollamamodelupdater/
bun build ./update.ts --compile --minify --outfile ollamamodelupdater
sudo install -Dm755 ./ollamamodelupdater /usr/bin/ollamamodelupdater

Prebuilt binary

Release

You can also get the prebuilt Linux binary from the latest release.

curl -OL https://github.com/thatonecalculator/ollamamodelupdater/releases/download/v1.0.1/ollamamodelupdater
sudo install -Dm755 ./ollamamodelupdater /usr/bin/ollamamodelupdater