「KataGo/Linux」:修訂間差異

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋
本頁面具有訪問限制。如果您看見此訊息,這代表您沒有訪問本頁面的權限。
第13行: 第13行:
<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
git clone https://github.com/lightvector/KataGo.git; cd KataGo/cpp; cmake . -DBUILD_MCTS=1 -DUSE_BACKEND=OPENCL -DUSE_TCMALLOC=1; make -j8
git clone https://github.com/lightvector/KataGo.git; cd KataGo/cpp; cmake . -DBUILD_MCTS=1 -DUSE_BACKEND=OPENCL -DUSE_TCMALLOC=1; make -j8
</syntaxhighlight>
== 設定 ==
<syntaxhighlight lang="bash">
cd KataGo/cpp; cp configs/gtp_example.cfg ~/Lizzie/
</syntaxhighlight>
== 下載最新的訓練資料 ==
這邊會下載目前最強的20 blocks、30 blocks與40 blocks版本到[[Lizzie]]的目錄下並且解開:
<syntaxhighlight lang="bash">
cd ~/Lizzie/; wget https://d3dndmfyhecmj0.cloudfront.net/g170/neuralnets/g170-b40c256x2-s1349368064-d524332537.zip; wget https://d3dndmfyhecmj0.cloudfront.net/g170/neuralnets/g170-b30c320x2-s1287828224-d525929064.zip; wget https://d3dndmfyhecmj0.cloudfront.net/g170/neuralnets/g170e-b20c256x2-s2430231552-d525879064.zip; echo *.zip | xargs -n1 unzip
</syntaxhighlight>
</syntaxhighlight>



於 2020年3月7日 (六) 20:36 的修訂

KataGo是一套電腦圍棋軟件。

編譯

先安裝需要的套件:

apt install -y build-essential cmake git libboost-filesystem-dev libgoogle-perftools-dev libzip-dev nvidia-435 ocl-icd-opencl-dev zlib1g-dev

再來編譯:

git clone https://github.com/lightvector/KataGo.git; cd KataGo/cpp; cmake . -DBUILD_MCTS=1 -DUSE_BACKEND=OPENCL -DUSE_TCMALLOC=1; make -j8

設定

cd KataGo/cpp; cp configs/gtp_example.cfg ~/Lizzie/

下載最新的訓練資料

這邊會下載目前最強的20 blocks、30 blocks與40 blocks版本到Lizzie的目錄下並且解開:

cd ~/Lizzie/; wget https://d3dndmfyhecmj0.cloudfront.net/g170/neuralnets/g170-b40c256x2-s1349368064-d524332537.zip; wget https://d3dndmfyhecmj0.cloudfront.net/g170/neuralnets/g170-b30c320x2-s1287828224-d525929064.zip; wget https://d3dndmfyhecmj0.cloudfront.net/g170/neuralnets/g170e-b20c256x2-s2430231552-d525879064.zip; echo *.zip | xargs -n1 unzip

相關連結

外部連結