It is currently Fri Mar 01, 2024 4:28 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
Offline
 Post subject: KaTrain Command Line Partial Syntax
Post #1 Posted: Sun Jun 11, 2023 6:02 am 
Judan

Posts: 6082
Liked others: 0
Was liked: 786
Through trial and error, I have partially reverse-engineered the syntax of KaTrain's General & Engine Settings Override command line.


KaTrain for Windows and KataGo OpenCL General Remarks

analysis_config.cfg must exist with this or a different file name.

Otherwise, copy <path>\analysis_example.cfg to <path>\analysis_config.cfg

Tuning will be different from tuning KataGo for a gtp GUI and gtp_custom.cfg

After writing the KaTrain Override command line, press Update Settings.
Then, in particular, one of the following can happen:
- KataGo engine is ready. Playing is possible with GPU load 96~97%.
- KaTrain freezes. Kill its process. Restart KaTrain.
- KaTrain neither freezes nor applies the settings yet. Close KaTrain. Restart KaTrain.

Some names of model files look like <model_name>.gz instead of <model_name>.bin.gz

Presumably, an optional parameter is: -override-config homeDataDir=C:\Users\<username>/.katrain


KaTrain for KataGo OpenCL, Override Command Line

Syntax

Code:
<path>\<katago_file_name>.exe analysis -model <path>\<model_name>.bin.gz -config <path>\<analysis_file_name>.cfg


Example

Code:
C:\katago\katago.exe analysis -model C:\katago\b18.bin.gz -config C:\katago\analysis_config.cfg



KaTrain for KataGo OpenCL, Override Command Line, Paths or File Names with or without Blank(s)

Syntax

Code:
"<path>\<katago_file_name>.exe" analysis -model "<path>\<model_name>.bin.gz" -config "<path>\<analysis_file_name>.cfg"


Examples

Code:
"C:\katago\katago.exe" analysis -model "C:\katago\b18.bin.gz" -config "C:\katago\analysis_config.cfg"

"C:\kata go\katago.exe" analysis -model "C:\kata go\b18.bin.gz" -config "C:\kata go\analysis_config.cfg"

"C:\katago\kata go.exe" analysis -model "C:\katago\b 18.bin.gz" -config "C:\katago\analysis config.cfg"

"C:\kata go\kata go.exe" analysis -model "C:\kata go\b 18.bin.gz" -config "C:\kata go\analysis config.cfg"



KaTrain for KataGo OpenCL, Override Command Line with -analysis-threads Parameter

analysis_config.cfg may not contain numAnalysisThreads or its comment line starts with # .

Syntax

Code:
<path>\<katago_file_name>.exe analysis -model <path>\<model_name>.bin.gz -config <path>\<analysis_file_name>.cfg -analysis-threads <positive_integer>


Example

Code:
C:\katago\katago.exe analysis -model C:\katago\b18.bin.gz -config C:\katago\analysis_config.cfg -analysis-threads 2

Top
 Profile  
 
Offline
 Post subject: Re: KaTrain Command Line Partial Syntax
Post #2 Posted: Sun Jun 11, 2023 9:37 am 
Judan

Posts: 6082
Liked others: 0
Was liked: 786
I have also applied the first syntax rule to CUDA.

Top
 Profile  
 
Offline
 Post subject: Re: KaTrain Command Line Partial Syntax
Post #3 Posted: Sun Jun 11, 2023 4:31 pm 
Judan

Posts: 6082
Liked others: 0
Was liked: 786
Furthermore, the first syntax is tested for TensorRT.

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