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 Remarksanalysis_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 LineSyntax
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 Parameteranalysis_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