{"id":2134,"date":"2021-03-25T10:57:46","date_gmt":"2021-03-25T01:57:46","guid":{"rendered":"https:\/\/go-w.jp\/?p=2134"},"modified":"2025-01-13T17:30:50","modified_gmt":"2025-01-13T08:30:50","slug":"mac%e3%81%ablizgoban%e3%82%92%e5%85%a5%e3%82%8c%e3%81%a6katago%e3%81%a8%e5%af%be%e5%b1%80%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/go-w.jp\/?p=2134","title":{"rendered":"Mac\u306bLizGoban\u3092\u5165\u308c\u3066KataGo\u3068\u5bfe\u5c40\u3059\u308b"},"content":{"rendered":"<p>(2025\/1\/13 \u6539\u5b9a\u3000M1 \u306a\u3069\u306e Mac \u3067\u306e node.js \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u7279\u5225\u306e\u4f5c\u696d\u306f\u4e0d\u8981\u306b\u306a\u3063\u305f\u306e\u3067\u6d88\u3057\u305f\u308a\u3057\u307e\u3057\u305f\uff09<\/p>\n<p>Mac\u3078\u306eKataGo\u306e\u5c0e\u5165\u306f\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u2192<a href=\"https:\/\/go-w.jp\/?p=2031\">Mac\u3078\u306eKataGo\u5c0e\u5165<\/a><\/p>\n<p>LizGoban\u3092\u52d5\u304b\u3059\u305f\u3081\u306b\u306f\u307e\u305a node.js \u3092\u5c0e\u5165\u3057\u307e\u3059\u3002<br \/>\n\u4e0a\u8a18\u3067 KataGo \u5c0e\u5165\u6642\u306b Homebrew \u306f\u5c0e\u5165\u6e08\u307f\u3067\u3059\u306d\u3002Homebrew \u3067 node.js \u3092\u7ba1\u7406\u3059\u308b nodebrew \u3092\u5c0e\u5165\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"important-marker\">brew install nodebrew<\/span><\/p>\n<p>\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u4e0b\u306b .nodebrew\/src \u3068\u3044\u3046\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"important-marker\">mkdir -p ~\/.nodebrew\/src<\/span><\/p>\n<p>\u6700\u65b0\u5b89\u5b9a\u7248node.js\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"important-marker\">nodebrew install-binary stable<\/span><\/p>\n<div class=\"box-info\">\n<p>&nbsp;<\/p>\n<\/div>\n<p>\u3069\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"important-marker\">nodebrew ls<\/span><\/p>\n<p>v22.13.0<\/p>\n<p>current: none<\/p>\n<p>\u306e\u3088\u3046\u306a\u8868\u793a\u304c\u3055\u308c\u308b\u3068\u601d\u3044\u307e\u3059\u306e\u3067\u3001v23.133.0\uff08\u2190\u3053\u306e\u6570\u5b57\u306f\u6700\u65b0\u7248\u304c\u51fa\u308c\u3070\u5909\u308f\u308a\u307e\u3059\uff09\u3092\u4f7f\u3046\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"important-marker\">nodebrew use v22.13.0<\/span><\/p>\n<p>\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"important-marker\">nodebrew ls<\/span><\/p>\n<p>v22.13.0<\/p>\n<p>current: v22.13.0<\/p>\n<p>node \u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u30d1\u30b9\u3092\u901a\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b7\u30a7\u30eb\u306b bash \u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408<br \/>\n<span class=\"important-marker\">echo 'export PATH=$HOME\/.nodebrew\/current\/bin:$PATH' &gt;&gt; ~\/.bash_profile<\/span><br \/>\n<span class=\"important-marker\">source ~\/.bash_profile<\/span><\/p>\n<p>zsh \u3092\u4f7f\u3063\u3066\u3044\u308b\u5834\u5408<br \/>\n<span class=\"important-marker\">echo 'export PATH=$HOME\/.nodebrew\/current\/bin:$PATH' &gt;&gt; ~\/.zprofile<\/span><br \/>\n<span class=\"important-marker\">source ~\/.zprofile<\/span><\/p>\n<p>node\u304c\u4f7f\u3048\u308b\u3053\u3068\u306e\u78ba\u8a8d<\/p>\n<p><span class=\"important-marker\">node -v<\/span><\/p>\n<p>v22.13.0<\/p>\n<p>\u306a\u3069\u3068\u30d0\u30fc\u30b8\u30e7\u30f3\u304c\u8868\u793a\u3055\u308c\u308c\u3070OK\u3067\u3059\u3002<\/p>\n<p>\u7d9a\u3044\u3066 LizGoban \u3092\u30b2\u30c3\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"important-marker\">git clone https:\/\/github.com\/kaorahi\/lizgoban<\/span><\/p>\n<p>\uff08git \u304c\u5165\u3063\u3066\u306a\u3044\u5834\u5408\u306f <span class=\"important-marker\">brew install git<\/span> \u3067\u5165\u308c\u3066\u304f\u3060\u3055\u3044\u306d\uff09<\/p>\n<p>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"important-marker\">cd lizgoban<\/span><\/p>\n<p>\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059<\/p>\n<p><span class=\"important-marker\">npm install<\/span><\/p>\n<p>\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u3063\u3066\u73fe\u5728\u306e lizgoban \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b config.json \u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002 vi \u306e\u5834\u5408\u306f<\/p>\n<p><span class=\"important-marker\">vi config.json<\/span><\/p>\n<p>Mac \u306e \u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u306a\u3069\u3092\u4f7f\u3063\u3066\u3082\u69cb\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>\u4e2d\u8eab\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30d5\u30a1\u30a4\u30eb\u3001CFG\u30d5\u30a1\u30a4\u30eb\u306f\u304a\u4f7f\u3044\u306e\u3082\u306e\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u306d Lizzie + KataGo \u3067\u8a2d\u5b9a\u3057\u3066\u3044\u308c\u3070 Lizzie \u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e config.txt \u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u305f\u3068\u3048\u3070\u79c1\u306e\u5834\u5408\u3001Lizzie \u3092 \/Users\/masamitu\/Lizzie \u306b\u7f6e\u3044\u3066\u307e\u3059\u3002\u305d\u3053\u306e config.txt \u306b<\/p>\n<p>&lt;KataGo:40B&gt;\/opt\/homebrew\/bin\/katago gtp -model kata1-b40c256-s11840935168-d2898845681.bin.gz -config katago-opencl\/default_gtp.cfg\"<\/p>\n<p>\u3068\u3044\u3046\u8a2d\u5b9a\u304c\u3042\u308b\u306e\u3067\u3053\u308c\u3092\u4f7f\u3046\u3068\u3059\u308b\u3068 model \u3068 config \u306e\u30d1\u30b9\u3092 config.txt \u306b\u3042\u308b\u76f8\u5bfe\u30d1\u30b9\u304b\u3089\u3001\u7d76\u5bfe\u30d1\u30b9\u306b\u3057\u3066(\u982d\u306b \/Users\/masamitu\/Lizzie \u3092\u3064\u3051\u308b\uff09<\/p>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092 config.json \u306b\u66f8\u304f\u3053\u3068\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>{ \"preset\": [ { \"label\": \"KataGo\", \"engine\": [\"\/opt\/homebrew\/bin\/katago\", \"gtp\", \"-override-config\", \"analysisPVLen=50, defaultBoardSize=19\", \"-model\", \"\/Users\/masamitu\/Lizzie\/kata1-b40c256-s11840935168-d2898845681.bin.gz\", \"-config\", \"\/Users\/masamitu\/Lizzie\/katago-opencl\/default_gtp.cfg\"] } ] }<\/p>\n<p>LizGoban \u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n<p><span class=\"important-marker\">npm start -- -c config.json<\/span><\/p>\n<p>Electron \u30e1\u30cb\u30e5\u30fc\u304b\u3089 Match vs. AI \u3092\u9078\u3073\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2137\" src=\"https:\/\/go-w.jp\/wp-content\/uploads\/79ea408f88dee537c89bb7df313b0f61-626x391.png\" alt=\"\" width=\"626\" height=\"391\" srcset=\"https:\/\/go-w.jp\/wp-content\/uploads\/79ea408f88dee537c89bb7df313b0f61-626x391.png 626w, https:\/\/go-w.jp\/wp-content\/uploads\/79ea408f88dee537c89bb7df313b0f61-313x196.png 313w, https:\/\/go-w.jp\/wp-content\/uploads\/79ea408f88dee537c89bb7df313b0f61-768x480.png 768w, https:\/\/go-w.jp\/wp-content\/uploads\/79ea408f88dee537c89bb7df313b0f61-1536x960.png 1536w, https:\/\/go-w.jp\/wp-content\/uploads\/79ea408f88dee537c89bb7df313b0f61-2048x1280.png 2048w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/p>\n<p>\u8def\u6570\u3001\u30cf\u30f3\u30c7\u3001AI \u306e\u5f37\u3055\u3001\u8003\u616e\u6642\u9593\u3092\u6307\u5b9a\u3057\u3066 start AI's turn \u3092\u62bc\u3059\u3068\u30b2\u30fc\u30e0\u304c\u30b9\u30bf\u30fc\u30c8\u3057\u307e\u3059\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2136\" src=\"https:\/\/go-w.jp\/wp-content\/uploads\/436ab9c6115dbc1c99ce3d9a74e9242a-626x391.png\" alt=\"\" width=\"626\" height=\"391\" srcset=\"https:\/\/go-w.jp\/wp-content\/uploads\/436ab9c6115dbc1c99ce3d9a74e9242a-626x391.png 626w, https:\/\/go-w.jp\/wp-content\/uploads\/436ab9c6115dbc1c99ce3d9a74e9242a-313x196.png 313w, https:\/\/go-w.jp\/wp-content\/uploads\/436ab9c6115dbc1c99ce3d9a74e9242a-768x480.png 768w, https:\/\/go-w.jp\/wp-content\/uploads\/436ab9c6115dbc1c99ce3d9a74e9242a-1536x960.png 1536w, https:\/\/go-w.jp\/wp-content\/uploads\/436ab9c6115dbc1c99ce3d9a74e9242a-2048x1280.png 2048w\" sizes=\"auto, (max-width: 626px) 100vw, 626px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>(2025\/1\/13 \u6539\u5b9a\u3000M1 \u306a\u3069\u306e Mac \u3067\u306e node.js \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u7279\u5225\u306e\u4f5c\u696d\u306f\u4e0d\u8981\u306b\u306a\u3063\u305f\u306e\u3067\u6d88\u3057\u305f\u308a\u3057\u307e\u3057\u305f\uff09 Mac\u3078\u306eKataGo\u306e\u5c0e\u5165\u306f\u3053\u3061\u3089\u3092\u3054\u89a7\u304f\u3060\u3055\u3044\u2192Mac\u3078\u306eKataGo\u5c0e\u5165 Li [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":2136,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-2134","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-igo_ai"],"_links":{"self":[{"href":"https:\/\/go-w.jp\/index.php?rest_route=\/wp\/v2\/posts\/2134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/go-w.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/go-w.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/go-w.jp\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/go-w.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2134"}],"version-history":[{"count":10,"href":"https:\/\/go-w.jp\/index.php?rest_route=\/wp\/v2\/posts\/2134\/revisions"}],"predecessor-version":[{"id":2267,"href":"https:\/\/go-w.jp\/index.php?rest_route=\/wp\/v2\/posts\/2134\/revisions\/2267"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/go-w.jp\/index.php?rest_route=\/wp\/v2\/media\/2136"}],"wp:attachment":[{"href":"https:\/\/go-w.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/go-w.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/go-w.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}