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

I don't know how to use --external-joseki-engine. #154

Open
mc-mong opened this issue Apr 16, 2023 · 2 comments
Open

I don't know how to use --external-joseki-engine. #154

mc-mong opened this issue Apr 16, 2023 · 2 comments

Comments

@mc-mong
Copy link

mc-mong commented Apr 16, 2023

Can I use it for sabaki? --external-joseki-engine.

This is using katago.

os: windows 10

@lemonsqueeze
Copy link
Collaborator

Hi,

Make sure katago is setup properly first :

  • Download neural net you want to use and rename as default_model.bin.gz in katago directory.
  • Edit default_gtp.cfg to suit your needs. You probably want :
    allowResignation = false (don't resign)
    logToStderr = false (log to file)
    logFile = c:\path\to\katago\kata.log
    Set thinking time with maxPlayouts or maxTime

Make sure it works from windows command prompt :

> cd c:\path\to\katago
> katago.exe gtp
KataGo v1.11.0
Using Japanese rules initially, unless GTP/GUI overrides this
Initializing board with boardXSize 19 boardYSize 19
Loaded config c:\path\to\katago\default_gtp.cfg
Loaded model c:\path\to\katago\default_model.bin.gz
Model name: g170-b10c128-s1141046784-d204142634
GTP ready, beginning main protocol loop

Then you can use this for Pachi command :

c:\path\to\pachi.exe --external-joseki-engine "c:\path\to\katago\katago.exe gtp"

If you try it in windows command prompt you should see something like this :

Pachi 12.70 (Jowa)
git aa281302 (master)
x86-64 dcnn build, Feb 11 2023

Random seed: 1681769356
External engine: KataGo version 1.11.0
Loading joseki fixes ...

Yes, it should work with sabaki.

@mc-mong
Copy link
Author

mc-mong commented Apr 17, 2023

thanks!

Pachi 12.70 (Jowa)
git aa28130 (master)
x86-64 dcnn build, Feb 11 2023

Random seed: 1681754909
External engine: KataGo version 1.12.4
Loading joseki fixes ...
Loaded 132 overrides.
Loaded Detlef's 54% dcnn for 19x19
Loaded spatial dictionary of 18016 patterns.
Loaded 18103 gammas.
Checking gammas ... OK
Threads: 16
IN: name
IN: version
IN: protocol_version
IN: list_commands

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

2 participants