KaTrain Command Line Partial Syntax
Posted: Sun Jun 11, 2023 6:02 am
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
Example
KaTrain for KataGo OpenCL, Override Command Line, Paths or File Names with or without Blank(s)
Syntax
Examples
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
Example
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: Select all
<path>\<katago_file_name>.exe analysis -model <path>\<model_name>.bin.gz -config <path>\<analysis_file_name>.cfgCode: Select all
C:\katago\katago.exe analysis -model C:\katago\b18.bin.gz -config C:\katago\analysis_config.cfgKaTrain for KataGo OpenCL, Override Command Line, Paths or File Names with or without Blank(s)
Syntax
Code: Select all
"<path>\<katago_file_name>.exe" analysis -model "<path>\<model_name>.bin.gz" -config "<path>\<analysis_file_name>.cfg"Code: Select all
"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: Select all
<path>\<katago_file_name>.exe analysis -model <path>\<model_name>.bin.gz -config <path>\<analysis_file_name>.cfg -analysis-threads <positive_integer>Code: Select all
C:\katago\katago.exe analysis -model C:\katago\b18.bin.gz -config C:\katago\analysis_config.cfg -analysis-threads 2