KataGo Distributed Training and new networks

For discussing go computing, software announcements, etc.
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

@PC_Screen
thank you! it works, but KataGo throws an error on the second move (in Sabaki and on the command line). probably not enough video memory.

Code: Select all

Uncaught exception: CL_OUT_OF_RESOURCES <possibly ran out of GPU memory?>
EDIT yes, there is not enough video memory - 7x7 works
could you make an eigenavx2 version?
hope366
Dies in gote
Posts: 20
Joined: Wed Jun 10, 2020 8:08 am
Rank: KGS3dan
GD Posts: 0
Been thanked: 3 times

Re: KataGo Distributed Training and new networks

Post by hope366 »

Thanks for uploading the engine files.
I tried "katago.exe" which was put on Google Drive.
I've tried with Lizzie and LizzieYzy, but I get an error and the engine doesn't work. The error message said something like "If you have ucrtbased.dll, it will work", so I got it from the internet and put it in the folder where katago.exe is located.

I wasn't expecting much, but this worked.
It's working with Lizzie and LizzieYzy, but it's noticeably slower compared to 40 blocks.
It is about 60 to 70% of the speed of 40 blocks.
I thought it was a problem related to FP16, so I tried changing the FP16 setting in the configuration file from "auto" to "true", but there was no change in speed.
Any good ideas?
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

I managed to run KataGo 18b on 19x19, and the speed has increased significantly! how I did it:
1 started tunning with a 10b network
2 renamed the resulting file to "tune8...x19_y19_c384_mv11.txt "
and that's it! :D

EDIT will it work for you? ... :)
PC_Screen
Beginner
Posts: 17
Joined: Sat Sep 10, 2022 6:03 am
GD Posts: 0
Has thanked: 1 time
Been thanked: 10 times

Re: KataGo Distributed Training and new networks

Post by PC_Screen »

Katago Eigen, same process, drop it inside the katago 1.11 eigen folder and replace the old katago.exe.

https://drive.google.com/file/d/18XJHc8 ... sp=sharing

As for the speed being lower, try running the benchmark in the command prompt (./katago.exe benchmark -model <NEURALNET>.bin.gz) and adjust the number of search threads based on it
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

KataGo (18b, playouts 1) - CS Zero 9d

Attachments
KataGo - CS Zero.sgf
(1.27 KiB) Downloaded 999 times
hope366
Dies in gote
Posts: 20
Joined: Wed Jun 10, 2020 8:08 am
Rank: KGS3dan
GD Posts: 0
Been thanked: 3 times

Re: KataGo Distributed Training and new networks

Post by hope366 »

>EDIT will it work for you? ... :)

I tried that method, but unfortunately I didn't see any speed improvement.
I also ran a benchmark test and it's slower than 40 blocks due to false FP16 relationships.

CUDA version or TensorRT version will enable FP16 and speed will be faster.
The katago.exe provided by @PC_Screen seems to be the OpenCL version.
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

second game KataGo (18b, playouts 1) - CS Zero 9d

Attachments
KataGo - CS Zero.sgf
(823 Bytes) Downloaded 1001 times
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

Similarly replaced the tuning file for the 40b network, the time to move 40b is 20% longer than that of 18b (playouts 1, gt 610)
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

KataGo 18b, playouts 10 - 40b, playouts 10

Attachments
18b - 40b.sgf
(576 Bytes) Downloaded 941 times
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

second game KataGo 18b, playouts 10 - 40b, playouts 10
(40b-s118)

Attachments
18b - 40b.sgf
(1.28 KiB) Downloaded 973 times
hope366
Dies in gote
Posts: 20
Joined: Wed Jun 10, 2020 8:08 am
Rank: KGS3dan
GD Posts: 0
Been thanked: 3 times

Re: KataGo Distributed Training and new networks

Post by hope366 »

If anyone has a CUDA version of KataGo for the new architecture, could you please upload it?
I tried to compile using cmake before, but it didn't work in my environment.
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

and the version of eigenavx2 for Windows please! :)
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

KataGo 18b, playouts 10 - 60b, playouts 10

Attachments
18b - 60b.sgf
(1.13 KiB) Downloaded 1580 times
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

PC_Screen wrote:Katago Eigen, same process, drop it inside the katago 1.11 eigen folder and replace the old katago.exe.

https://drive.google.com/file/d/18XJHc8 ... sp=sharing

As for the speed being lower, try running the benchmark in the command prompt (./katago.exe benchmark -model <NEURALNET>.bin.gz) and adjust the number of search threads based on it
many thanks! it works, with different networks, and 18b works. but the speed compared to eigen, eigenavx2 1.11.0 is tens times slower. something's wrong. :sad:

visits: 1
10b eigen 1.11 Time taken: 0.281
10b your file Time taken: 15.21

60b eigen 1.11 Time taken: 2.605
60b your file Time taken: 160.166

18b your file Time taken: 56.941
Last edited by And on Sun Nov 27, 2022 10:40 am, edited 1 time in total.
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: KataGo Distributed Training and new networks

Post by And »

second game KataGo 18b, playouts 10 - 60b, playouts 10
(60b-s665)

Attachments
18b - 60b.sgf
(1.1 KiB) Downloaded 1589 times
Post Reply