タイトル : Ollamaのインストール gpt-oss を試す 2025
更新日 : 2025-08-09
カテゴリ : AI、IA、数理
タグ :
llm   
python   

gpt-oss を試す

インストール

gpt-ossを試すんだけど、OpenAPのAIサーバとしてpythonから使いたいので、Ollamaでまず試します。

https://ollama.com/download を参照

$ curl -fsSL https://ollama.com/install.sh | sh
>>> Installing ollama to /usr/local
[sudo] x のパスワード: 
>>> Downloading Linux amd64 bundle
######################################################################## 100.0%
>>> Creating ollama user...
>>> Adding ollama user to render group...
>>> Adding ollama user to video group...
>>> Adding current user to ollama group...
>>> Creating ollama systemd service...
WARNING: systemd is not running
>>> NVIDIA GPU installed.
>>> The Ollama API is now available at 127.0.0.1:11434.
>>> Install complete. Run "ollama" from the command line.
$ 

起動

上記で出力されているけどsystemdあるのね。

なのでsystemdで起動します

$ systemctl status ollama.service
○ ollama.service - Ollama Service
     Loaded: loaded (/etc/systemd/system/ollama.service; disabled; preset: enab>
     Active: inactive (dead)
$ systemctl start ollama.service
$ systemctl status ollama.service
● ollama.service - Ollama Service
     Loaded: loaded (/etc/systemd/system/ollama.service; disabled; preset: enab>
     Active: active (running) since Sat 2025-08-09 11:44:14 JST; 2s ago
   Main PID: 8172 (ollama)
      Tasks: 15 (limit: 18653)
...

ちなみに ollamaのserverが起動していないと前者、起動していると後者の表示になる

$ ollama --version
Warning: could not connect to a running Ollama instance
Warning: client version is 0.11.4
$ ollama --version
ollama version is 0.11.4
$