New android app "BadukAI"

For discussing go computing, software announcements, etc.
lovego
Dies in gote
Posts: 61
Joined: Thu Jan 21, 2021 6:17 pm
Rank: KGS 1 dan
GD Posts: 0

Re: New android app "BadukAI"

Post by lovego »

Thanks a lot! :bow:
lovego
Dies in gote
Posts: 61
Joined: Thu Jan 21, 2021 6:17 pm
Rank: KGS 1 dan
GD Posts: 0

Re: New android app "BadukAI"

Post by lovego »

Haha, Katago 1.11.0 is released!
https://github.com/lightvector/KataGo/r ... ag/v1.11.0

Can you continue updating? :salute:
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

Fortunately, this is not necessary. There are only a few commits between release 1.11 and the revision that I built for BadukAI 1.14. And these commits are mainly concerned with the code for training and with documentation, which don't matter for BadukAI. So the KataGo code in BadukAI 1.14 is practically equivalent to release 1.11.
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: New android app "BadukAI"

Post by And »

in the worst case, depending on the hardware, what is the speed gain of an optimized network? and at the best?
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

If you compare the speeds of optimized and original network, you get:

a) If you choose the optimal number of search threads (in terms of speed) for each network:
In the worst (HW dependent) case the speed gain is factor 2 (e.g. 20 playouts/second instead of 10).
In the best (HW dependent) case the speed gain is factor 24 (e.g. 240 playouts/second instead of 10).

b) If you choose one search thread for both networks:
In the worst (HW dependent) case the speed gain is factor 2.
In the best (HW dependent) case the speed gain is factor 40.
lovego
Dies in gote
Posts: 61
Joined: Thu Jan 21, 2021 6:17 pm
Rank: KGS 1 dan
GD Posts: 0

Re: New android app "BadukAI"

Post by lovego »

I find a compatibility issue!
I have two phones(Dimensity 720 and Snapdragon 662)
When I use 40B weight, the output of winning rate is wrong.
Attachments
E95E81FC057E42712F6E195DB4361FF8.jpg
E95E81FC057E42712F6E195DB4361FF8.jpg (840.07 KiB) Viewed 73403 times
lovego
Dies in gote
Posts: 61
Joined: Thu Jan 21, 2021 6:17 pm
Rank: KGS 1 dan
GD Posts: 0

Re: New android app "BadukAI"

Post by lovego »

In my vivo y52s (Dimensity 720)
I have test all weights
Kata 10b -> ok
kata 20b -> bad
lz 15b -> ok
lz 40b ->ok
Attachments
a.png
a.png (1.05 MiB) Viewed 73384 times
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

Since version 1.14 BadukAI runs the optimized KG networks (20b and 40b) on NPU instead of CPU on Mediatek processors. This works well (and fast) on Dimensity 1100 (according to user reports). But your tests show that on the (slightly older) Dimensity 720 the NPU can't handle the KG network correctly and produces garbage output. What a pity.

Since I don't know on which Mediatek processors it works and on which it doesn't, I will add a switch to KataGo's config settings in the next release, so that every user can turn this on or off depending on whether it works on his/her device.
lovego
Dies in gote
Posts: 61
Joined: Thu Jan 21, 2021 6:17 pm
Rank: KGS 1 dan
GD Posts: 0

Re: New android app "BadukAI"

Post by lovego »

OK,thanks :bow:
And
Gosei
Posts: 1464
Joined: Tue Sep 25, 2018 10:28 am
GD Posts: 0
Has thanked: 212 times
Been thanked: 215 times

Re: New android app "BadukAI"

Post by And »

akigo wrote:If you compare the speeds of optimized and original network, you get:

a) If you choose the optimal number of search threads (in terms of speed) for each network:
In the worst (HW dependent) case the speed gain is factor 2 (e.g. 20 playouts/second instead of 10).
In the best (HW dependent) case the speed gain is factor 24 (e.g. 240 playouts/second instead of 10).

b) If you choose one search thread for both networks:
In the worst (HW dependent) case the speed gain is factor 2.
In the best (HW dependent) case the speed gain is factor 40.
stunningly!!!
lovego
Dies in gote
Posts: 61
Joined: Thu Jan 21, 2021 6:17 pm
Rank: KGS 1 dan
GD Posts: 0

Re: New android app "BadukAI"

Post by lovego »

My friend bought a new phone (Redmi K30 Pro with Dimensity 9000 chip), but the speed of kata 20b is very slow, it seems that there is no acceleration, only 20n/s.
The performance of Dimensity 9000 is stronger than that of Dimensity 1100, it should exceed 140n/s.

Is it possible to provide a new version that allows me to test different acceleration schemes. :salute:
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

Can you share the android system log for the time period when KataGo is starting ? Then I could check for error messages which give a hint what's going wrong. Otherwise I wouldn't know what to change ...
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

I made a new version (1.15) available on play store https://play.google.com/store/apps/deta ... r.baduk_ai and github https://github.com/aki65/aki65.github.i ... ag/v1.15.0 with the change I announced in post #428.
akigo
Lives with ko
Posts: 186
Joined: Sun Jun 28, 2020 11:20 am
GD Posts: 0
Has thanked: 13 times
Been thanked: 154 times

Re: New android app "BadukAI"

Post by akigo »

lovego wrote:My friend bought a new phone (Redmi K30 Pro with Dimensity 9000 chip), but the speed of kata 20b is very slow, it seems that there is no acceleration, only 20n/s.
The performance of Dimensity 9000 is stronger than that of Dimensity 1100, it should exceed 140n/s.

Is it possible to provide a new version that allows me to test different acceleration schemes. :salute:
You can do this with the version from https://github.com/aki65/aki65.github.i ... ag/v1.15.1 (see instructions there).
lovego
Dies in gote
Posts: 61
Joined: Thu Jan 21, 2021 6:17 pm
Rank: KGS 1 dan
GD Posts: 0

Re: New android app "BadukAI"

Post by lovego »

Haha, my Dimensity 720 works well when useSpecificNpuAccelerator is 3/4/5 :clap:
Post Reply