{"id":1242,"date":"2026-05-05T00:53:18","date_gmt":"2026-05-04T15:53:18","guid":{"rendered":"https:\/\/strikenetwork.mydns.jp\/masa\/?page_id=1242"},"modified":"2026-05-05T00:57:20","modified_gmt":"2026-05-04T15:57:20","slug":"ai","status":"publish","type":"page","link":"https:\/\/strikenetwork.mydns.jp\/masa\/?page_id=1242","title":{"rendered":"AI"},"content":{"rendered":"\n<p class=\"has-large-font-size wp-block-paragraph\">Gemma4\u306e\u5c0e\u5165\u65b9\u6cd5<br><br>1. Ollama \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u307e\u305a\u306f\u30d9\u30fc\u30b9\u3068\u306a\u308b\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u5c0e\u5165\u3057\u307e\u3059\u3002\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u306e\u5834\u5408\u306f\u3001\u6700\u65b0\u7248\u306b\u30a2\u30c3\u30d7\u30c7\u30fc\u30c8\u3057\u3066\u304f\u3060\u3055\u3044\uff08Gemma 4\u5bfe\u5fdc\u306e\u305f\u3081\uff09\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Windows (PowerShell) \/ macOS \/ Linux:<\/strong> \u516c\u5f0f\u30b5\u30a4\u30c8 <a href=\"https:\/\/ollama.com\" target=\"_blank\" rel=\"noreferrer noopener\">ollama.com<\/a> \u304b\u3089\u30a4\u30f3\u30b9\u30c8\u30fc\u30e9\u30fc\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u304b\u3001Linux\u306a\u3089\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u307e\u3059\u3002Bash<code>curl -fsSL https:\/\/ollama.com\/install.sh | sh<\/code><\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\">2. \u30e2\u30c7\u30eb\u306e\u30d7\u30eb\uff08\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\uff09<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b21\u306b\u300126B MoE\u30e2\u30c7\u30eb\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ollama pull gemma4:26b<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u203b \u7d0415GB\u301c20GB\u7a0b\u5ea6\u306e\u30c7\u30a3\u30b9\u30af\u5bb9\u91cf\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\">3. \u300c\u6700\u9069\u5316\u8a2d\u5b9a\u300d (Modelfile)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">RTX 3050 Ti\u306e8GB VRAM\u3092\u9650\u754c\u307e\u3067\u4f7f\u3044\u3001\u6b8b\u308a\u309248GB RAM\u306b\u7dba\u9e97\u306b\u6d41\u3057\u8fbc\u3080\u305f\u3081\u306e\u5c02\u7528\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>\u9069\u5f53\u306a\u30d5\u30a9\u30eb\u30c0\u306b <code>Modelfile<\/code> \u3068\u3044\u3046\u540d\u524d\u306e\u30c6\u30ad\u30b9\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Dockerfile<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>FROM gemma4:26b\n\n# VRAM 8GB\u306b\u5408\u308f\u305b\u3066\u3001GPU\u306b\u5272\u308a\u5f53\u3066\u308b\u30ec\u30a4\u30e4\u30fc\u6570\u3092\u8abf\u6574\n# (3050 Ti\u306a\u3089 20\u301c30 \u3042\u305f\u308a\u304b\u3089\u8abf\u6574\u3002\u591a\u3059\u304e\u308b\u3068\u30e1\u30e2\u30ea\u4e0d\u8db3\u3067\u843d\u3061\u307e\u3059)\nPARAMETER num_gpu 25\n\n# \u63a8\u8ad6\u901f\u5ea6\u3092\u7a3c\u3050\u305f\u3081\u3001\u30b3\u30f3\u30c6\u30ad\u30b9\u30c8\u30b5\u30a4\u30ba\u3092\u5c11\u3057\u7d5e\u308b (\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u9577\u3044\u306e\u3067)\nPARAMETER num_ctx 8192\n\n# \u5275\u9020\u6027\u3068\u6b63\u78ba\u6027\u306e\u30d0\u30e9\u30f3\u30b9\nPARAMETER temperature 0.7\n<\/code><\/pre>\n\n\n\n<ol start=\"2\" class=\"wp-block-list\">\n<li>\u30bf\u30fc\u30df\u30ca\u30eb\uff08PowerShell\u7b49\uff09\u3067\u305d\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u3001\u72ec\u81ea\u30e2\u30c7\u30eb\u3068\u3057\u3066\u767b\u9332\u3057\u307e\u3059\u3002<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-code\"><code>ollama create gemma4-optimized -f Modelfile<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading has-large-font-size\">4. \u5b9f\u884c\u3068\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u78ba\u8a8d<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u6e96\u5099\u304c\u6574\u3044\u307e\u3057\u305f\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ollama run gemma4-optimized<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u904b\u7528\u306e\u30b3\u30c4\uff1aMoE\u306e\u300c\u52d5\u304d\u300d\u3092\u7406\u89e3\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">26B MoE\u306f\u3001\u5de8\u5927\u306a\u77e5\u8b58\u3092\u6301\u3061\u306a\u304c\u3089\u3001\u8a08\u7b97\u6642\u306b\u306f\u300c\u4e00\u90e8\u306e\u5c02\u9580\u5bb6\uff08Expert\uff09\u300d\u3060\u3051\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u521d\u56de\u8d77\u52d5\u6642:<\/strong> 48GB\u306eRAM\u3078\u30e2\u30c7\u30eb\u3092\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u3001\u5c11\u3057\u6642\u9593\u304c\u304b\u304b\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li><strong>\u63a8\u8ad6\u6642:<\/strong> RTX 3050 Ti\u306eVRAM\u306b\u8f09\u3063\u3066\u3044\u308b\u300c\u30b2\u30fc\u30c8\uff08Router\uff09\u300d\u304c\u7d20\u65e9\u304f\u5224\u65ad\u3057\u3001\u5fc5\u8981\u306a\u5c02\u9580\u5bb6\u3092\u547c\u3073\u51fa\u3057\u307e\u3059\u3002VRAM\u306b\u53ce\u307e\u3063\u3066\u3044\u308b\u30ec\u30a4\u30e4\u30fc\u304c\u591a\u3044\u307b\u3069\u3001\u6587\u5b57\u304c\u51fa\u308b\u901f\u5ea6\u304c\u4e0a\u304c\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gemma4\u306e\u5c0e\u5165\u65b9\u6cd5 1. Ollama \u306e\u30a4\u30f3<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-1242","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/pages\/1242","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1242"}],"version-history":[{"count":3,"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/pages\/1242\/revisions"}],"predecessor-version":[{"id":1245,"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=\/wp\/v2\/pages\/1242\/revisions\/1245"}],"wp:attachment":[{"href":"https:\/\/strikenetwork.mydns.jp\/masa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1242"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}