Assuming -analysis-threads XXXX -override-config "homeDataDir=DDDD" is partially or fully needed, can you please give an example for this command part?katago.exe analysis -model MMMM -config CCCC -analysis-threads XXXX -override-config "homeDataDir=DDDD"
[...] I don't know if "-analysis-threads" or the rest is necessary.
KaTrain Questions
-
RobertJasiek
- Judan
- Posts: 6273
- Joined: Tue Apr 27, 2010 8:54 pm
- GD Posts: 0
- Been thanked: 797 times
- Contact:
Re: KaTrain Questions
That a command was copied on itself was my suspicion:) I will try your second echo syntax. Again, I will guess that "name" is a parameter, for which to insert one of KataGo's GTP commands.
-
RobertJasiek
- Judan
- Posts: 6273
- Joined: Tue Apr 27, 2010 8:54 pm
- GD Posts: 0
- Been thanked: 797 times
- Contact:
Re: KaTrain Questions
Each of the following commands creates the same output.
Code: Select all
C:\echo>echo -h | katago.exe gtp -model b18.bin.gz -config gtp_custom.cfg
C:\echo>echo -version | katago.exe gtp -model b18.bin.gz -config gtp_custom.cfg
C:\echo>echo -model | katago.exe gtp -model b18.bin.gz -config gtp_custom.cfg
C:\echo>echo -config | katago.exe gtp -model b18.bin.gz -config gtp_custom.cfg
-
RobertJasiek
- Judan
- Posts: 6273
- Joined: Tue Apr 27, 2010 8:54 pm
- GD Posts: 0
- Been thanked: 797 times
- Contact:
-
kvasir
- Lives in sente
- Posts: 1040
- Joined: Sat Jul 28, 2012 12:29 am
- Rank: panda 5 dan
- GD Posts: 0
- IGS: kvasir
- Has thanked: 25 times
- Been thanked: 187 times
Re: KaTrain Questions
"name" is a GTP command that outputs the name of the engine. "list_commands" is another one that outputs the list of commands.RobertJasiek wrote:That a command was copied on itself was my suspicion:) I will try your second echo syntax. Again, I will guess that "name" is a parameter, for which to insert one of KataGo's GTP commands.
From Task Manager (and I also tested it in the Katrain).RobertJasiek wrote:Assuming -analysis-threads XXXX -override-config "homeDataDir=DDDD" is partially or fully needed, can you please give an example for this command part?
Code: Select all
C:\Users\Thor\Desktop\katago\katago-v1.13.1-trt8.5-cuda11.2-windows-x64\katago.exe analysis -model C:\Users\Thor\Desktop\katago\models\b18c384nbt-optimisticv13-s5971M.bin.gz -config C:\Users\Thor\Desktop\katago\katago-v1.13.1-trt8.5-cuda11.2-windows-x64\analysis_config.cfg -analysis-threads 12 -override-config homeDataDir=C:\Users\Thor/.katrain'homeDataDir' is set to a directory that Katrain uses various data, I guess this is useful if you want different versions of KataGo to share things like TensorRT plan files and the results of OpenCL tuning.
-
RobertJasiek
- Judan
- Posts: 6273
- Joined: Tue Apr 27, 2010 8:54 pm
- GD Posts: 0
- Been thanked: 797 times
- Contact:
Re: KaTrain Questions
Do you think my second echo outputs indicate a working KataGo?
list_commands: I see, will study that much later...
From my current tests, it appears that KaTrain expects several parameters submitted by the referred CFG file or by additional command paramaters. The gtp_custom.cfg has too few of those parameters KaTrain expects so I have become creative and copied analysis_example.cfg to analysis_config.cfg then set the following Override command:
C:\echo\katago.exe analysis -model C:\echo\b18.bin.gz -config C:\echo\analysis_config.cfg
KataGo engine is ready.
Processes:
Playing. GPU load 97%. It works! Many thanks for enabling the start!
So it seems KaTrain is not buggy after all but a description of the syntax in its manual is essential.
Now, a fundamental problem remains: in the Windows command line, gtp_custom.cfg has been created for a purpose: better tuning of KataGo. So far instead only the renamed analysis_example.cfg works. Apparently, it will be necessary to merge both. Since the file is a) read by KaTrain and b) submitted as a parameter to KataGo when calling it, then this should achieve both: get KaTrain going and tuning KataGo. So tuning will be even more difficult. Besides getting the essential parameters right, one must also edit and merge both CFG files.
Anyway, the main insight is: a GUI and KataGo communicate in one of a few possible different modes, among which there are gtp and analysis. Some GUIs run on gtp mode while other GUIs run on analysis mode. KaTrain uses the latter.
How could earlier eager users of KaTrain figure out this without description in manuals?
list_commands: I see, will study that much later...
From my current tests, it appears that KaTrain expects several parameters submitted by the referred CFG file or by additional command paramaters. The gtp_custom.cfg has too few of those parameters KaTrain expects so I have become creative and copied analysis_example.cfg to analysis_config.cfg then set the following Override command:
C:\echo\katago.exe analysis -model C:\echo\b18.bin.gz -config C:\echo\analysis_config.cfg
KataGo engine is ready.
Processes:
So it seems KaTrain is not buggy after all but a description of the syntax in its manual is essential.
Now, a fundamental problem remains: in the Windows command line, gtp_custom.cfg has been created for a purpose: better tuning of KataGo. So far instead only the renamed analysis_example.cfg works. Apparently, it will be necessary to merge both. Since the file is a) read by KaTrain and b) submitted as a parameter to KataGo when calling it, then this should achieve both: get KaTrain going and tuning KataGo. So tuning will be even more difficult. Besides getting the essential parameters right, one must also edit and merge both CFG files.
Anyway, the main insight is: a GUI and KataGo communicate in one of a few possible different modes, among which there are gtp and analysis. Some GUIs run on gtp mode while other GUIs run on analysis mode. KaTrain uses the latter.
How could earlier eager users of KaTrain figure out this without description in manuals?
-
kvasir
- Lives in sente
- Posts: 1040
- Joined: Sat Jul 28, 2012 12:29 am
- Rank: panda 5 dan
- GD Posts: 0
- IGS: kvasir
- Has thanked: 25 times
- Been thanked: 187 times
Re: KaTrain Questions
Yes, the error is about the command being unknown. Prior to printing that error some information about loading the model and other things is printed in the output. I also saw that you managed to get it to play moves in KaTrain.RobertJasiek wrote: Do you think my second echo outputs indicate a working KataGo?
You can use 'katago.exe genconfig ...' to create a good config. It will ask some questions first and then run a benchmark to search for good parameters that affect performance.RobertJasiek wrote:Now, a fundamental problem remains: in the Windows command line, gtp_custom.cfg has been created for a purpose: better tuning of KataGo. So far instead only the renamed analysis_example.cfg works. Apparently, it will be necessary to merge both. Since the file is a) read by KaTrain and b) submitted as a parameter to KataGo when calling it, then this should achieve both: get KaTrain going and tuning KataGo. So tuning will be even more difficult. Besides getting the essential parameters right, one must also edit and merge both CFG files.
I guess you could run it like this to create a new config 'C:\echo\new_analysis_config.cfg'. I haven't tested this exact command line, but I think you can figure it out.
Code: Select all
C:\echo\katago.exe genconfig -model C:\echo\b18.bin.gz -output C:\echo\new_analysis_config.cfgKaTrain comes with a working KataGo and you can download new versions in the program. You can also download different versions (OpenCL, Eigen, ...) but when it comes to CUDA and TensorRT they are not available in this way for Windows at least. For CUDA and TensorRT you have to install lot of libraries, like you have done, before they will run and there is no way around that. Still, the KataGo versions that you can download in KaTrain really work out of the box.RobertJasiek wrote:How could earlier eager users of KaTrain figure out this without description in manuals?
I think the documentation for KataGo and KaTrain is actually surprisingly good. If you look for it then you can find many text files in the GitHub repositories, that are documentation about various things, and KaTrain even has a manual.
-
RobertJasiek
- Judan
- Posts: 6273
- Joined: Tue Apr 27, 2010 8:54 pm
- GD Posts: 0
- Been thanked: 797 times
- Contact:
Re: KaTrain Questions
My use of programs differs from some of their programmers' directed intentions: I use go AI software offline for PC security reasons. I prefer to download files manually under a separate online Windows user account.kvasir wrote:KaTrain comes with a working KataGo and you can download new versions in the program.
Oh. It seems I need to dig deeply. So far, I have mostly noticed the main manuals of every GitHub project, and those are totally missing relevant information.I think the documentation for KataGo and KaTrain is actually surprisingly good. If you look for it then you can find many text files in the GitHub repositories, that are documentation about various things
A few days ago, my opinion was that installing and using go AI well is 20 times as difficult as installing a large ordinary software suite. Meanwhile, I rather think it is 30 or 40 times as difficult.
I know, there are the quick installers to get something running. However, it does not make sense to only get things running somehow when different KataGo versions and tuning affect speed apparently more than the difference between slowest and fastest GPUs of a generation.
-
RobertJasiek
- Judan
- Posts: 6273
- Joined: Tue Apr 27, 2010 8:54 pm
- GD Posts: 0
- Been thanked: 797 times
- Contact:
Re: KaTrain Questions
REFLECTION OF AN EARLY ATTEMPT
Having revisted various information of this week, I notice that there was an early hint to a command line like this:
KaTrain reported errors. At that time, I lacked background knowledge to judge whether the errors were meaningful or, as suggested on KataGo's information page, the result of the GUI not knowing how to interpret KataGo's error messages. Meanwhile, I have got some background knowledge and find KaTrain's error messages useful if they are specific (a char(0) error still tells me nothing).
At that time (and still now), the missing syntax description was (and remains) the major hurdle.
At that time, I think there might have been two causes for the errors: 1) analysis_config.cfg might have been missing; 2) the parameter -analysis-threads 12 should not have been used if analysis_config.cfg existed with the number of threads already declared there.
At that time, however, I knew nothing about possible causes for the errors. Instead, I had to guess causes. I thought:
- I gave the parameter analysis a chance but since it failed, I should revert back to trying the paramter gtp according to KataGo's information page.
- The parameter analysis seemed to be for also specifying an "analysis" type of config file, such as analysis_config.cfg. Since various sources of information suggested to specify gtp_custom.cfg, I thought that this would be more likely together with the allegedly expected gtp parameter.
UNCLEAR SUCCESS OF COMMAND LINE
Whether this works seems to depend on whether -analysis-threads 12 is needed or number of threads already specified in analysis_config.cfg. It is unclear whether -override-config homeDataDir=C:\Users\<username>/.katrain is needed.
SUCCESSFUL BUT COMPLICATED COMMAND LINE
Instead of my earlier reported successful command line, the following is an alternative but complicated one and with an error the user must ignore:
This lets KaTrain tune, then output this error: ERROR: ERROR: Could not find any configuration that worked
Despite the error, then playing with GPU load 96% works.
Having revisted various information of this week, I notice that there was an early hint to a command line like this:
Code: Select all
<path>\katago.exe analysis -model <path>\<model_name>.gz -config <path>\analysis_config.cfg -analysis-threads 12
-override-config homeDataDir=C:\Users\<username>/.katrainAt that time (and still now), the missing syntax description was (and remains) the major hurdle.
At that time, I think there might have been two causes for the errors: 1) analysis_config.cfg might have been missing; 2) the parameter -analysis-threads 12 should not have been used if analysis_config.cfg existed with the number of threads already declared there.
At that time, however, I knew nothing about possible causes for the errors. Instead, I had to guess causes. I thought:
- I gave the parameter analysis a chance but since it failed, I should revert back to trying the paramter gtp according to KataGo's information page.
- The parameter analysis seemed to be for also specifying an "analysis" type of config file, such as analysis_config.cfg. Since various sources of information suggested to specify gtp_custom.cfg, I thought that this would be more likely together with the allegedly expected gtp parameter.
UNCLEAR SUCCESS OF COMMAND LINE
Code: Select all
<path>\katago.exe analysis -model <path>\<model_name>.gz -config <path>\analysis_config.cfg -analysis-threads 12
-override-config homeDataDir=C:\Users\<username>/.katrainSUCCESSFUL BUT COMPLICATED COMMAND LINE
Instead of my earlier reported successful command line, the following is an alternative but complicated one and with an error the user must ignore:
Code: Select all
<path>\katago.exe analysis -model <path>\<model_name>.bin.gz -config <path>\analysis_config.cfg -override-config homeDataDir=C:\Users\<user_name>\.katrainDespite the error, then playing with GPU load 96% works.