SabakiHQ / Sabaki

An elegant Go board and SGF editor for a more civilized age.
https://sabaki.yichuanshen.de/
MIT License
2.42k stars 377 forks source link

Max move visits during analysis mode #948

Open hadim opened 1 year ago

hadim commented 1 year ago

When analysis mode is enabled (using katago GTP), Sabaki will let it run forever instead of stopping after a certain number of time or visited moves or playouts. I tried to tweak the katago config file with no success.

It seems to be more a Sabaki thing than a Katago one but I am not sure. Anyone has an idea?

hadim commented 1 year ago

The reason is simple: I don't want my CPU or GPU to run 100% whenever I let Sabaki in analysis mode open.

hadim commented 1 year ago

Might be related to https://github.com/SabakiHQ/Sabaki/issues/781?

HackYardo commented 1 year ago

It's an unsolved issue since LeelaZero. The GTP and SGF are old, they just be built for play, not for analyze. Far before 2016, they don't have analyze standards at all. Then LeelaZero build the analyze standard at its own, it will run forever until a new command, as described in KataGo/docs/GTPExtension.md:

This command is a bit unusual for GTP in that it will run forever on its own, but asynchronously if any new GTP command or a raw newline is received, then it will terminate.

Fortunately, you could try genmove_analyze command if it work fine. And if you have JavaScript NPM installed, try a utility of Sabaki. Or just write a little C++ words to wrap KataGo by your hand. Last but not least, try other GUIs like Katrain or Ogatak. But be careful, as mentioned at beginning it's an unsolved issue, different GUIs' sgf kifu files mey not be exchanged, as far as I know, Ogatak use the same sgf format as Sabaki does.