It is currently Tue Apr 23, 2024 1:54 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
Offline
 Post subject: KaTrain Bug and Suggestions
Post #1 Posted: Fri Jun 09, 2023 11:41 pm 
Judan

Posts: 6155
Liked others: 0
Was liked: 788
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:
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:
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:
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:
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

Top
 Profile  
 
Offline
 Post subject: Re: KaTrain Bug and Suggestions
Post #2 Posted: Sat Jun 10, 2023 12:58 am 
Lives in sente
User avatar

Posts: 1311
Liked others: 14
Was liked: 153
Rank: German 1 Kyu
RobertJasiek wrote:
PATH TO KATAGO MODEL FILE[/b]
KaTrain 1.7.2.0 for Windows writes in General & Engine Settings, for example,
Code:
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:
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)

Top
 Profile  
 
Offline
 Post subject: Re: KaTrain Bug and Suggestions
Post #3 Posted: Sat Jun 10, 2023 9:13 am 
Judan

Posts: 6155
Liked others: 0
Was liked: 788
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.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group