kaorahi / lizgoban

Leela Zero & KataGo visualizer
GNU General Public License v3.0
169 stars 28 forks source link

Remote engine #66

Closed dinohsu1019 closed 3 years ago

dinohsu1019 commented 3 years ago

Do you want to support remote engine (GTP) as Lizzie does? Thanks, Dino

kaorahi commented 3 years ago

If you are using a remote engine on Lizzie, the same command should work on LizGoban theoretically. Could you read engine in config.json in README?

Unfortunately, I cannot give you step-by-step instructions for Windows as I have no Windows machine.

dinohsu1019 commented 3 years ago

image image @kaorahi, Lizzie has the "engine command", while Lizgoban has multiple parameters, I am not sure how to configure the latter for remote engine.

kaorahi commented 3 years ago

like this :)

            "engine": ["plink.exe", "-ssh", "-pw", ...]

If you need more help, please paste "engine-command" line of Lizzie's config.txt as a text (not as a screenshot image).

dinohsu1019 commented 3 years ago

@kaorahi, here's the "engine-command" in text (including quotation marks but not the ending comma)

"plink.exe -ssh -pw ssh_in -P 22222 ssh_in@58.115.137.108 C:/katago-v1.7.0-gpu-cuda10.2-windows-x64/katago.exe gtp -config C:/katago-v1.7.0-gpu-cuda10.2-windows-x64/my_gtp.cfg -model C:/katago-v1.7.0-gpu-cuda10.2-windows-x64/my_katago_40b.gz"

Please help to show the right configuration for Lizgoban, thanks again.

kaorahi commented 3 years ago

Then this is the corresponding setting in lizgoban.

            "engine": ["plink.exe", "-ssh", "-pw", "ssh_in", "-P", "22222", "ssh_in@58.115.137.108",
                       "C:/katago-v1.7.0-gpu-cuda10.2-windows-x64/katago.exe", "gtp",
                       "-config", "C:/katago-v1.7.0-gpu-cuda10.2-windows-x64/my_gtp.cfg",
                       "-model", "C:/katago-v1.7.0-gpu-cuda10.2-windows-x64/my_katago_40b.gz"]
dinohsu1019 commented 3 years ago

@kaorahi It works now!! The only additional point to rectify is the the first command plink.exe should be with full path, namely C:/Program Files/PuTTY/plink.exe. Thanks a lot.

kaorahi commented 3 years ago

happy to hear it :)