ai:ollama

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
ai:ollama [2025/09/08 07:15] – [モデルのダウンロード] ともやんai:ollama [2025/10/01 08:51] (現在) – [モデルのバックアップ/リストア] ともやん
行 1: 行 1:
 ====== Ollama ====== ====== Ollama ======
 +{{:ai:ollama_logo.svg|Ollama Logo}}\\
 本家: [[https://ollama.com/|Ollama]]\\ 本家: [[https://ollama.com/|Ollama]]\\
 ソースコード: [[https://github.com/ollama/ollama|GitHub - ollama/ollama: Get up and running with OpenAI gpt-oss, DeepSeek-R1, Gemma 3 and other models.]]\\ ソースコード: [[https://github.com/ollama/ollama|GitHub - ollama/ollama: Get up and running with OpenAI gpt-oss, DeepSeek-R1, Gemma 3 and other models.]]\\
行 99: 行 100:
  
 ===== モデルのバックアップ/リストア ===== ===== モデルのバックアップ/リストア =====
-バックアップ\\+ 
 +==== バックアップ ====
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
 <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">tar</font> cvf ollama_models.tar /usr/share/ollama/.ollama/models <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">tar</font> cvf ollama_models.tar /usr/share/ollama/.ollama/models
 </pre></html></WRAP> </pre></html></WRAP>
-<WRAP color_result><html><pre>+<WRAP color_result_hlong><html><pre>
 tar: メンバ名から先頭の `/&apos; を取り除きます tar: メンバ名から先頭の `/&apos; を取り除きます
 /usr/share/ollama/.ollama/models/ /usr/share/ollama/.ollama/models/
行 130: 行 132:
 </WRAP> </WRAP>
  
-リストア\\+==== リストア ====
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
 <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">tar</font> xvf <u style="text-decoration-style:solid">ollama_models.tar</u> <font color="#A347BA">-C</font> <u style="text-decoration-style:solid">/</u> <font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">tar</font> xvf <u style="text-decoration-style:solid">ollama_models.tar</u> <font color="#A347BA">-C</font> <u style="text-decoration-style:solid">/</u>
 </pre></html></WRAP> </pre></html></WRAP>
-<WRAP color_result><html><pre>+<WRAP color_result_hlong><html><pre>
  
 usr/share/ollama/.ollama/models/ usr/share/ollama/.ollama/models/
行 202: 行 204:
 </WRAP> </WRAP>
  
 +==== 追加リストア ====
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269"><u style="text-decoration-style:solid">sudo</u></font> <font color="#26A269">tar</font><font color="#999999"> xvf </font><font color="#999999"><u style="text-decoration-style:solid">ollama_models_002.tar</u></font><font color="#999999"> </font><font color="#A347BA">-C</font><font color="#999999"> </font><font color="#999999"><u style="text-decoration-style:solid">/</u></font>
 +</pre></html></WRAP>
 +<WRAP color_result_hlong><html><pre>
 +usr/share/ollama/.ollama/models/
 +usr/share/ollama/.ollama/models/blobs/
 +usr/share/ollama/.ollama/models/blobs/sha256-3a43f93b78ec50f7c4e4dc8bd1cb3fff5a900e7d574c51a6f7495e48486e0dac
 +usr/share/ollama/.ollama/models/blobs/sha256-8c17c2ebb0ea011be9981cc3922db8ca8fa61e828c5d3f44cb6ae342bf80460b
 +usr/share/ollama/.ollama/models/blobs/sha256-590d74a5569b8a20eb2a8b0aa869d1d1d3faf6a7fdda1955ae827073c7f502fc
 +usr/share/ollama/.ollama/models/blobs/sha256-2e0493f67d0c8c9c68a8aeacdf6a38a2151cb3c4c1d42accf296e19810527988
 +usr/share/ollama/.ollama/models/blobs/sha256-7f6a57943a88ef021326428676fe749d38e82448a858433f41dae5e05ac39963
 +usr/share/ollama/.ollama/models/blobs/sha256-316526ac7323d6f42305c5bbf1939e1197487c1e6ea1f01292ceb5e3040b707a
 +usr/share/ollama/.ollama/models/blobs/sha256-d040cc18521592f70c199396aeaa44cdc40224079156dc09d4283d745d9dc5fd
 +usr/share/ollama/.ollama/models/blobs/sha256-a3a0e9449cb691a12f4de1d03725fd41326614fdeaf5d80b28c51187da0bed0e
 +usr/share/ollama/.ollama/models/blobs/sha256-8893e08fa9f91f7dc39e24d27bdfaece4e9c86bb3269293ff8cea6cba98c872d
 +usr/share/ollama/.ollama/models/blobs/sha256-8972a96b8ff1957ca24ff839aeb54411e6849de68609857a3fa17a4e78114247
 +usr/share/ollama/.ollama/models/blobs/sha256-d55c9eb1669a22f75956872166c676634c77cd8dfb94900640bd09a474dfcd0c
 +usr/share/ollama/.ollama/models/blobs/sha256-59bb50d8116b6a1f9bfbb940d6bb946a05554e591e30c8c2429ed6c854867ecb
 +usr/share/ollama/.ollama/models/blobs/sha256-772f510b95588aeb9fbd2298b2b647bceba48aceb05e3a26ff14812eb1f6dc14
 +usr/share/ollama/.ollama/models/blobs/sha256-dd0c6f2ea876e4c433325df3398386f24e00d321abf6cec197c1bc1fcf1e0025
 +usr/share/ollama/.ollama/models/blobs/sha256-097a36493f718248845233af1d3fefe7a303f864fae13bc31a3a9704229378ca
 +usr/share/ollama/.ollama/models/blobs/sha256-9be8862a36378dff002b5114ffa6f5b30054cfb4875ed58195449e1848ae6e09
 +usr/share/ollama/.ollama/models/blobs/sha256-48d9a8140749f940a218cb55fe7074cc6b776b93bac231bd9ef02cf6d26a5964
 +usr/share/ollama/.ollama/models/blobs/sha256-ea4a24c038f59ed9a94db50d23d32dd36e73a85c10097b4b9fed9c70c3a5158d
 +usr/share/ollama/.ollama/models/manifests/
 +usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/
 +usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/
 +usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/codellama/
 +usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/codellama/7b
 +usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/deepseek-coder/
 +usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/deepseek-coder/1.3b
 +usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/deepseek-coder/6.7b
 +usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/codegemma/
 +usr/share/ollama/.ollama/models/manifests/registry.ollama.ai/library/codegemma/2b
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">ollama</font><font color="#999999"> list</font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>NAME                         ID              SIZE      MODIFIED
 +codegemma:2b                 926331004170    1.6 GB    15 hours ago
 +deepseek-coder:6.7b          ce298d984115    3.8 GB    15 hours ago
 +deepseek-coder:1.3b          3ddd2d3fc8d2    776 MB    15 hours ago
 +codellama:7b                 8fdf8f752f6e    3.8 GB    15 hours ago
 +llama3.2:3b-instruct-q4_0    9b9453afbdd6    1.9 GB    3 weeks ago
 +llama3.2:3b                  a80c4f17acd5    2.0 GB    3 weeks ago
 +starcoder2:3b-q4_0           9f4ae0aff61e    1.7 GB    3 weeks ago
 +gemma2:2b-instruct-q4_0      8ccf136fdd52    1.6 GB    3 weeks ago
 +starcoder2:3b                9f4ae0aff61e    1.7 GB    3 weeks ago
 +gemma2:2b                    8ccf136fdd52    1.6 GB    3 weeks ago
 +</pre></html></WRAP>
 +</WRAP>
 ===== モデルのダウンロード ===== ===== モデルのダウンロード =====
 [[https://ollama.com/library/llama3.2:3b|llama3.2:3b]]\\ [[https://ollama.com/library/llama3.2:3b|llama3.2:3b]]\\
行 314: 行 369:
  
 ===== 動作確認 ===== ===== 動作確認 =====
-バカボンのパパのヒゲの本数を聞いてみる🤔\\+バカボンのパパのヒゲの本数を聞いてみる...🤔\\
 <WRAP color_term> <WRAP color_term>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">ollama</font> run llama3.2:3b-instruct-q4_0 <font color="#A2734C">&quot;バカボンのパパのヒゲの本数は?&quot;</font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +おはやー! バカボンのパパのヒゲの数は、1つです。
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">ollama</font> run llama3.2:3b <font color="#A2734C">&quot;バカボンのパパのヒゲの本数は?&quot;</font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +バカボンの父親のヒゲの数は「100」と表現されることが知られています。
 +</pre></html></WRAP>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
 <font color="#0087FF"><b>$</b></font> <font color="#26A269">ollama</font> run gemma2:2b-instruct-q4_0 <font color="#A2734C">&quot;バカボンのパパのヒゲの本数は?&quot;</font> <font color="#0087FF"><b>$</b></font> <font color="#26A269">ollama</font> run gemma2:2b-instruct-q4_0 <font color="#A2734C">&quot;バカボンのパパのヒゲの本数は?&quot;</font>
行 328: 行 395:
  
 最終的に、パパのヒゲの本数については、**個人の想像力や解釈によって異なります**。 最終的に、パパのヒゲの本数については、**個人の想像力や解釈によって異なります**。
 +</pre></html></WRAP>
 +<WRAP color_command><html><pre>
 +<font color="#0087FF"><b>$</b></font> <font color="#26A269">ollama</font> run gemma2:2b <font color="#A2734C">&quot;バカボンのパパのヒゲの本数は?&quot;</font>
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 + バカボンのパパのヒゲの本数、実は **決まっていない** です!
 +
 +作者の**「アニメ」**や**「漫画」**は、バカボンのパパの姿や特徴を自由に描き換えてくれるところが面白いところですよね。
 +😊 
 +
 +だから、彼のヒゲの本数は、あなたの想像力次第で無限大!
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
  • ai/ollama.1757283358.txt.gz
  • 最終更新: 2025/09/08 07:15
  • by ともやん