<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Ollama on soijoy.dev</title>
		<link>https://soijoy.dev/tags/ollama/</link>
		<description>Recent content in Ollama on soijoy.dev</description>
		<generator>Hugo</generator>
		<language>ja</language>
		
		
		
		
			<lastBuildDate>Tue, 15 Sep 2026 12:06:32 +0000</lastBuildDate>
		
			<atom:link href="https://soijoy.dev/tags/ollama/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Ollamaとは何か？ ローカルLLM推論エンジンの比較</title>
				<link>https://soijoy.dev/notes/ollama-inference-engines/</link>
				<pubDate>Tue, 15 Sep 2026 12:06:32 +0000</pubDate>
				<guid>https://soijoy.dev/notes/ollama-inference-engines/</guid>
				<description>&lt;p&gt;ローカルLLMを動かすエンジンの一つ Ollama とは何か、そして代表的な推論ソフトの比較。基盤構築の初期に整理したもの。&lt;/p&gt;&#xA;&lt;p&gt;Ollamaは一言でいうと「複雑なローカルLLMの環境構築を極限まで簡略化し、使いやすいAPIとして提供するラッパー」。内部では C++製の軽量・高速な推論エンジン &lt;code&gt;llama.cpp&lt;/code&gt; が動いている。本来 &lt;code&gt;llama.cpp&lt;/code&gt; を直接扱うにはビルドやコマンドが必要だが、Ollamaはそれを隠蔽し、&lt;code&gt;ollama run モデル名&lt;/code&gt; というDockerのような手軽さで、モデルのダウンロードから実行、APIサーバー起動までを全自動でこなす。&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;得意なモデル形式: GGUF（量子化モデル）&lt;/li&gt;&#xA;&lt;li&gt;主な役割: クライアント（Open WebUI等）からのプロンプトを受け取り、内部モデルで計算して回答を返すバックエンドエンジン&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;代表的な推論ソフトの比較&#34;&gt;&#xA;  代表的な推論ソフトの比較&#xA;  &lt;a class=&#34;heading-anchor&#34; href=&#34;#%e4%bb%a3%e8%a1%a8%e7%9a%84%e3%81%aa%e6%8e%a8%e8%ab%96%e3%82%bd%e3%83%95%e3%83%88%e3%81%ae%e6%af%94%e8%bc%83&#34; aria-label=&#34;Link to 代表的な推論ソフトの比較&#34;&gt;&lt;span aria-hidden=&#34;true&#34;&gt;#&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;h3 id=&#34;vllm&#34;&gt;&#xA;  vLLM&#xA;  &lt;a class=&#34;heading-anchor&#34; href=&#34;#vllm&#34; aria-label=&#34;Link to vLLM&#34;&gt;&lt;span aria-hidden=&#34;true&#34;&gt;#&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;高速推論・サーバー用途で最強格。「PagedAttention」というメモリ管理で、Ollamaやllama.cppの数倍〜十数倍のスループット。OpenAI互換APIサーバーに最適。一方でVRAM消費が激しく、量子化モデル（GGUF等）対応は発展途上。構築難易度はやや高め。&lt;/p&gt;&#xA;&lt;h3 id=&#34;llamacpp直接実行&#34;&gt;&#xA;  llama.cpp（直接実行）&#xA;  &lt;a class=&#34;heading-anchor&#34; href=&#34;#llamacpp%e7%9b%b4%e6%8e%a5%e5%ae%9f%e8%a1%8c&#34; aria-label=&#34;Link to llama.cpp（直接実行）&#34;&gt;&lt;span aria-hidden=&#34;true&#34;&gt;#&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;Ollamaの内部でも使われるコアエンジンを直接操作する方法。オーバーヘッドがなく最軽量で、リソースを限界まで引き出せる。CPU/GPUの配分など細かいチューニングが可能。すべてCUIで、モデル管理も手動なので学習コストは高い。&lt;/p&gt;&#xA;&lt;h3 id=&#34;lm-studio&#34;&gt;&#xA;  LM Studio&#xA;  &lt;a class=&#34;heading-anchor&#34; href=&#34;#lm-studio&#34; aria-label=&#34;Link to LM Studio&#34;&gt;&lt;span aria-hidden=&#34;true&#34;&gt;#&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;Windows/MacでGUIがセットになったオールインワン。モデル検索→DL→チャットが専用アプリで直感的に完結し、初心者には最も簡単。ただしクローズドソースで、ヘッドレス運用（サーバーで常駐し別PCからアクセス）には不向き。&lt;/p&gt;&#xA;&lt;h3 id=&#34;text-generation-webuioobabooga&#34;&gt;&#xA;  Text-generation-webui（Oobabooga）&#xA;  &lt;a class=&#34;heading-anchor&#34; href=&#34;#text-generation-webuioobabooga&#34; aria-label=&#34;Link to Text-generation-webui（Oobabooga）&#34;&gt;&lt;span aria-hidden=&#34;true&#34;&gt;#&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h3&gt;&#xA;&lt;p&gt;超多機能・拡張性特化。GGUFに加えEXL2/AWQ/GPTQなどほぼ全形式・エンジンを切り替え可能で、パラメータ調整項目も最多。反面、UIが複雑で依存も多く、環境が壊れやすい。&lt;/p&gt;&#xA;&lt;h2 id=&#34;目的別のおすすめ&#34;&gt;&#xA;  目的別のおすすめ&#xA;  &lt;a class=&#34;heading-anchor&#34; href=&#34;#%e7%9b%ae%e7%9a%84%e5%88%a5%e3%81%ae%e3%81%8a%e3%81%99%e3%81%99%e3%82%81&#34; aria-label=&#34;Link to 目的別のおすすめ&#34;&gt;&lt;span aria-hidden=&#34;true&#34;&gt;#&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;手軽さ・安定・汎用: Ollama（+ Open WebUI）&lt;/li&gt;&#xA;&lt;li&gt;超高速APIサーバー: vLLM&lt;/li&gt;&#xA;&lt;li&gt;マニアックな極限設定: llama.cpp&lt;/li&gt;&#xA;&lt;li&gt;色々な形式を試す: Oobabooga&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;この基盤でのその後&#34;&gt;&#xA;  この基盤でのその後&#xA;  &lt;a class=&#34;heading-anchor&#34; href=&#34;#%e3%81%93%e3%81%ae%e5%9f%ba%e7%9b%a4%e3%81%a7%e3%81%ae%e3%81%9d%e3%81%ae%e5%be%8c&#34; aria-label=&#34;Link to この基盤でのその後&#34;&gt;&lt;span aria-hidden=&#34;true&#34;&gt;#&lt;/span&gt;&lt;/a&gt;&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;この整理の時点では Ollama + Open WebUI が最もバランスの良いモダン構成だったが、量子化やKVキャッシュ、GPUオフロードといった推論の低レベル制御を自分で握るため、最終的にこの基盤ではオーバーヘッドのない &lt;code&gt;llama.cpp&lt;/code&gt; 直叩き構成へ移行した（→ &lt;a href=&#34;https://soijoy.dev/projects/local-llm-server/&#34;&gt;プロジェクト概要&lt;/a&gt;&#xA;）。&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
