Back to Blog

ollamaの使い方

2024/04/30

モデルファイルの格納先の変更

Help情報


ollama.exe serve --help
Start ollama

Usage:
ollama serve [flags]

Aliases:
serve, start

Flags:
-h, --help help for serve

Environment Variables:

OLLAMA_HOST The host:port to bind to (default "127.0.0.1:11434")
OLLAMA_ORIGINS A comma separated list of allowed origins.
OLLAMA_MODELS The path to the models directory (default is "~/.ollama/models")
OLLAMA_KEEP_ALIVE The duration that models stay loaded in memory (default is "5m")
OLLAMA_DEBUG Set to 1 to enable additional debug logging

環境変数の設定
・Windows環境の場合

・LinuxまたはMac環境

export OLLAMA_MODELS=/data/ollama

Related Posts