常用的ollama命令[持续更新中]
- ollama更新:
curl https://ollama.ai/install.sh |sh
- 带着flash attention启动:
OLLAMA_FLASH_ATTENTION=1 ollama serve
- 停止ollama服务:
sudo systemctl stop ollama
note:目前遇到sudo systemctl stop ollama之后ollama serve模型都没了
- 重启ollama
sudo systemctl restart ollama
- linux安装特定版本的ollama,或者需要降级。只要修改其中的v0.1.32 参数。
curl -fsSL https://ollama.com/install.sh | sed 's#https://ollama.com/download#https://github.com/jmorganca/ollama/releases/download/v0.1.32#' | sh