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

初めに

この記事では、Linux環境でOllamaを使う方法について解説していく。
WindowsやMacは眼中にない。

目次

インストール

Ollama本体

以下のコマンドを入力するだけで良い。

curl -fsSL https://ollama.com/install.sh | sh

また、サービスが起動しているかを確認するには以下のコマンドを実行する。

$systemctl status ollama.service

AIモデル

基本的には公式のマニュアルを読めば良い。
ここでは、Gemma4:E2Bの導入方法を説明する。
以下のコマンドを実行してGemma4:E2Bを走らせる。

ollama run gemma4:e2b

使い方

基本

基本的には、先程のコマンドを実行した後に出てくる欄に、文字を打ち込むだけで良い。

API連携

Ollamaを起動すると、http://localhost:11434 というOpenAI互換のAPIが立ち上がる。
このURLを活用するだけで良い。
活用例などは説明しない。

関連情報

参考

Qiita[1][2]
GoogleAI

タグ

#PC #Linux #AI #LLM

作成日

2026/08/30

更新日,変更内容

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?