0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ollamaのバージョンアップの個人的メモ

0
Posted at

概要

ollamaを利用しているが、バージョンアップの手順を都度検索するのが手間なのでメモ。

# バージョンアップ
curl -fsSL https://ollama.com/install.sh | sh

# バージョン指定の例:0.30.0→llama.cpp直
curl -fsSL https://ollama.com/install.sh | OLLAMA_VERSION=0.30.0-rc27 sh

# option:サービス設定の編集画面を開く
sudo systemctl edit ollama.service

# option:環境変数を追記する
# <都度調べて設定>

# option:systemdの設定をリロード
sudo systemctl daemon-reload

# Ollamaサービスを再起動
sudo systemctl restart ollama.service

# 設定が反映されているかの確認方法
sudo systemctl status ollama.service

# バージョン確認
ollama --version

# ワンライナー機能確認
ollama run qwen3.6:latest "自己紹介して" --verbose

# オプション付与
OLLAMA_NUM_GPU_LAYERS=-1 OLLAMA_CONTEXT_LENGTH=8192 OLLAMA_MAX_LOADED_MODELS=1 OLLAMA_NUM_PARALLEL=1 ollama run qwen3.6:latest "自己紹介して" --verbose
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?