2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Mac】Ollamaの導入方法

Posted at

HomebrewでOllamaをインストールする

以下のコマンドを実行してOllamaをインストールします。

brew install ollama

サーバーを起動する

以下のコマンドを実行してOllamaのサーバーを起動します。

ollama serve

以下のコマンドを実行するとログイン時に起動されるようになります。

brew services start ollama

Llama 3.2を使用する

Llama 3.2を使用する場合には以下のようにコマンドを実行します。

ollama run llama3.2

その他のコマンド

$ ollama -h
Large language model runner

Usage:
  ollama [flags]
  ollama [command]

Available Commands:
  serve       Start ollama
  create      Create a model from a Modelfile
  show        Show information for a model
  run         Run a model
  stop        Stop a running model
  pull        Pull a model from a registry
  push        Push a model to a registry
  list        List models
  ps          List running models
  cp          Copy a model
  rm          Remove a model
  help        Help about any command

Flags:
  -h, --help      help for ollama
  -v, --version   Show version information

参考

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?