Skip to content

v1.4.0

Compare
Choose a tag to compare
@MAOmao000 MAOmao000 released this 22 Sep 17:55
· 261 commits to main since this release

Notable Changes

  • Get KataGo information via GTP.

How to use the KataGo engine

The following files are in the folder with the LeelaGUI executable file (In windows it is in C:\Users\xxx\AppData\Local\Programs\LeelaI18N by default..)

  • LeelaGUI.ini (Without GPU)
  • LeelaGUI_OpenCL.ini (When using GPU)

The default definition is below.
For LeelaGUI.ini

katago.exe gtp -model kata1-b40c256-s11840935168-d2898845681.bin.gz
time_settings 0 5 1

For LeelaGUI_OpenCL.ini

katago_OpenCL.exe gtp -model kata1-b40c256-s11840935168-d2898845681.bin.gz
time_settings 0 5 1

Write the KataGo startup command on the first line.
After the second line, write the GTP command to send to KataGo after starting KataGo. (Unnecessary unless otherwise.)

If you add a # to the beginning of all lines to comment them out, LeelaGUI will search for moves with the Leela engine. (Existing process works.)
The definition of KataGo's operating environment is described in the default_gtp.cfg file.
For games with handicaps, it is necessary to follow the Chinese rules to make the komi calculation match the LeelaGUI process.
Everything else is freely configurable.
There may be some glitches due to lack of testing yet, but it is working fine for normal games against KataGo.

Build example on Linux (Ubuntu)

$ git clone https://github.com/MAOmao000/LeelaGUI.git
$ cd LeelaGUI
$ mkdir build
$ cd build
$ cmake .. -DUSE_GPU=1
$ cmake --build .
$ strip leelagui
$ cp -rf ../installer_win64/bin/catalogs ./
$ cp -p ../LeelaGUI_OpenCL.ini ./

Install KataGo.
Download the weights of KataGo.
Edit KataGo's default_gtp.cfg.
Edit Leelagui_opencl.ini or Leelagui.ini according to the installation location of KataGo.