Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

矩池云上安装ikatago及远程链接教程 #1

Open
zionfuo opened this issue Sep 6, 2021 · 0 comments
Open

矩池云上安装ikatago及远程链接教程 #1

zionfuo opened this issue Sep 6, 2021 · 0 comments

Comments

@zionfuo
Copy link

zionfuo commented Sep 6, 2021

https://github.com/kinfkong/ikatago-resources/tree/master/dockerfiles

image

从作者的库中可以看到,该程序支持cuda9.2、cuda10、cuda10.1、cuda10.2、cuda11.1等镜像,矩池云上的镜像基本上都可以满足他的要求,可以任意选用。

案例:用的cuda10.2的镜像

image
image
image

利用脚本安装

cd ~; /bin/bash -c "$(curl -fsSL https://ikatago-resources.oss-cn-beijing.aliyuncs.com/all/install.sh)"

如果报错“sh: curl: command not found”是没有curl,先安装一下。

apt-get update
apt install curl

image

安装后,文件路径在root目录下的work文件夹内,文件有如下

image

运行

运行命令:

cd ~/work; ./run.sh 你的用户名 你的密码

建议使用 挂后台运行命令:

cd ~/work; nohup ./run.sh 你的用户名 你的密码 &

密码建议使用复杂一些的密码,可以用生成工具生成,比如lastpass的password generator。

https://www.lastpass.com/password-generator

案例如下:

cd ~/work; nohup ./run.sh matpool sNoeoLSVDVrZ &

image
image

下载ikatago-client

https://github.com/kinfkong/ikatago-client

https://github.com/kinfkong/ikatago-client/releases/tag/1.3.3

直接下载

https://github.com/kinfkong/ikatago-client/releases/download/1.3.3/ikatago-1.3.3-win64.zip

image

下载Sabaki

https://github.com/SabakiHQ/Sabaki

https://github.com/SabakiHQ/Sabaki/releases/tag/v0.51.1

image

portable便携版

https://github.com/SabakiHQ/Sabaki/releases/download/v0.51.1/sabaki-v0.51.1-win-x64-portable.exe

安装版

https://github.com/SabakiHQ/Sabaki/releases/download/v0.51.1/sabaki-v0.51.1-win-x64-setup.exe

Sabaki配置

image

在菜单栏点击 Engines - Show Engines Sidebar 显示侧边引擎栏。

image

引擎栏点击 Attach Engine... 按钮,选择 Manage Engines...。

image

在引擎菜单中分别填写 4 行引擎信息。

引擎名称:自定义填写。

这里我写的是

matpool

路径:ikatago 客户端路径,可点击前方文件夹图标通过浏览选择。

D:\ikatago-1.3.3-win64\ikatago.exe

参数:ikatago 客户端参数,用户密码替换为服务端启动时的用户名和密码参数。

--platform all --username USER_NAME --password USER_PASSWORD

此次我的是

--platform all --username matpool --password sNoeoLSVDVrZ

初始命令:可定义一些命令参数,如定义 10 秒下一次棋。

time_settings 0 10 1

填写完成后点击 Close。

image

引擎栏点击 Attach Engine... 按钮,选择刚创建的引擎点击他。

image

点击 Start Engine vs. Engine Game 开始机机对弈,每过 10 秒机器会走出一步。再次点击该按钮可以停止对弈。

image

保存环境下次使用

image
image

这样下次可以直接使用,不用再配置环境了。

详情可以查看如何使用矩池云的保存环境功能

参考文章

在百度aistudio上跑katago (v100), 然后可以用Sabaki, Lizzie等进行远程连接。
ikatago-server

在矩池云上使用A6000/3090跑ikatago说明

因为英伟达30系和a系列对cuda版本的要求是cuda11及以上。

https://github.com/kinfkong/ikatago-resources/tree/master/dockerfiles

image

通过查看官方仓库发现有cuda11.1的版本。矩池云上有cuda11.1的镜像可以选用他。

image
image

详细教程可以查看 矩池云上安装ikatago及链接教程

watch -n 1 nvidia-smi

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant