Here’s a quick script you can use to update all locally downloaded language models (whether from Hugging Face or your own) with Ollama:
#!/bin/bash
ollama list | tail -n +2 | awk '{print $1}' | while read -r model; do
ollama pull $model
done
This grabs the list of models and pulls the latest version for each.
#ollama #llm #ai
