KaTrain Bug and Suggestions

For discussing go computing, software announcements, etc.
Post Reply
RobertJasiek
Judan
Posts: 6273
Joined: Tue Apr 27, 2010 8:54 pm
GD Posts: 0
Been thanked: 797 times
Contact:

KaTrain Bug and Suggestions

Post by RobertJasiek »

SYNTAX

For Windows, the manual ought to describe the syntax of, and give examples for, the command line for
a) paths without blanks,
b) paths with blanks,
c) commands with gtp,
d) commands without gtp,
e) commands with -model,
f) commands without -model,
g) commands with -config,
h) commands without -config
etc. as far as such variants are possible. Currently, I guess that the following is an example with a correct syntax but I cannot be sure due to bugs:

Code: Select all

C:\katago\katago.exe gtp -model C:\katago\b18.bin.gz -config C:\katago\gtp_custom.cfg

PATH TO KATAGO MODEL FILE


KaTrain 1.7.2.0 for Windows writes in General & Engine Settings, for example,

Code: Select all

Path to KataGo model file = C:/baduk/lizzie/KataGo40b.gz
In Windows, this is misleading as it suggests an apparently wrong syntax for the command line. Windows paths use backslashes instead of slashes. Therefore, the following with backslashes should be written:

Code: Select all

Path to KataGo model file = C:\baduk\lizzie\KataGo40b.gz

BUG

I use Windows 11 Pro 64b, Baduk AI Megapack 4_18_0 x64 and its KaTrain 1.7.2.0. In Lizzie, the following command line works:

Code: Select all

C:\katago\katago.exe gtp -model C:\katago\b18.bin.gz -config C:\katago\gtp_custom.cfg
In KaTrain, this command line does not work, although I guess that it has a correct syntax. For details, see
https://www.lifein19x19.com/viewtopic.p ... 63#p278163
https://www.lifein19x19.com/viewtopic.p ... 84#p278184
https://www.lifein19x19.com/viewtopic.p ... 87#p278187
User avatar
Cassandra
Lives in sente
Posts: 1326
Joined: Wed Apr 28, 2010 11:33 am
Rank: German 1 Kyu
GD Posts: 0
Has thanked: 14 times
Been thanked: 153 times

Re: KaTrain Bug and Suggestions

Post by Cassandra »

RobertJasiek wrote:PATH TO KATAGO MODEL FILE[/b]
KaTrain 1.7.2.0 for Windows writes in General & Engine Settings, for example,

Code: Select all

Path to KataGo model file = C:/baduk/lizzie/KataGo40b.gz
In Windows, this is misleading as it suggests an apparently wrong syntax for the command line. Windows paths use backslashes instead of slashes. Therefore, the following with backslashes should be written:

Code: Select all

Path to KataGo model file = C:\baduk\lizzie\KataGo40b.gz
In Windows CMD inputs, "/" can be used instead of "\". You can also mix these in one full filename.

Windows' output uses only "\", of course.
The really most difficult Go problem ever: https://igohatsuyoron120.de/index.htm
Igo Hatsuyōron #120 (really solved by KataGo)
RobertJasiek
Judan
Posts: 6273
Joined: Tue Apr 27, 2010 8:54 pm
GD Posts: 0
Been thanked: 797 times
Contact:

Re: KaTrain Bug and Suggestions

Post by RobertJasiek »

According to https://www.lifein19x19.com/viewtopic.p ... 08#p278208
KaTrain is not buggy but expects a different command line and CFG file:

If analysis_config.cfg is missing, copy analysis_example.cfg to analysis_config.cfg . In KaTrain | General & Engine Settings | Override set a command line like this:

C:\<path>\katago.exe analysis -model C:\<path>\<model_name>.bin.gz -config C:\<path>\analysis_config.cfg

This works for me for a KataGo OpenCL version. Whether CUDA or TensorRT versions work with the same kind of command, I need to test later.

If gtp_custom.cfg is the tuning file, editing of the contents of analysis_config.cfg may be necessary for (much) faster analysis by KataGo.
Post Reply