「KataGo/Linux」:修訂間差異
跳至導覽
跳至搜尋
第16行: | 第16行: | ||
== 設定 == | == 設定 == | ||
等下會使用[[Lizzie]]當作前端,所以這邊會把KataGo的設定檔丟到Lizzie的目錄下: | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> |
於 2020年3月7日 (六) 20:37 的修訂
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
設定
等下會使用Lizzie當作前端,所以這邊會把KataGo的設定檔丟到Lizzie的目錄下:
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
相關連結
外部連結
- 官方網站 (英文)