Page 1 of 7

LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 12:42 am
by supersharp77
Wow...This Is Great!....... :D :wink:

Get lc0 for Android

Android builds are not official yet, but there are some that you could try. First lookup the architecture of your Android device and if it's 32 bits, choose this first build:

https://github.com/LeelaChessZero/lc0/f ... -armv7.zip

If your device supports 64 bits then choose this one:

https://github.com/LeelaChessZero/lc0/f ... arch64.zip

If you want to read more information about the above builds, browse this PR: https://github.com/LeelaChessZero/lc0/pull/848

Re: LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 12:54 am
by Dann Corbit
Do android devices have powerful GPUs?
If not, then I guess it stinks on android.

Re: LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 1:00 am
by ernest
Lc0 for iPad, now Lc0 for Android...

Just for the fantasm to have Lc0 !

But without a good GPU, what a weak Lc0... :shock:

I am impatient to see the results. :D

Re: LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 1:04 am
by Dann Corbit
On the other hand, it might be fun to have something that sounds powerful and yet does not beat your brains in every single game.

And you can say, "I beat the world's strongest chess program the other day!"
:twisted:

Re: LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 3:52 am
by dkappe
Weak? I suppose against stockfish. But pick up the 48x5 network and even a GM won’t beat it on an android device. https://github.com/dkappe/leela-chess-w ... d-Networks

Re: LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 5:26 am
by supersharp77
dkappe wrote: Fri May 24, 2019 3:52 am Weak? I suppose against stockfish. But pick up the 48x5 network and even a GM won’t beat it on an android device. https://github.com/dkappe/leela-chess-w ... d-Networks
Man I was ready to do some android testing..but unfortunately (engine exits error) with chess for android and with Droidfish for LC0 (special droidfish for LC0) my version needs a pgo compile or pie... unknown what this compile is.....back to the drawing board.. :wink:

Re: LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 5:29 am
by Eduard
Can someone explain how to correctly install the engine under Droidfish? I have Android 8.1.0 64 Bit. I installed the engine (blas) and copied a distilled network to the same directory. The engine loads, but it does not runs.

Re: LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 6:00 am
by MikeB
Dann Corbit wrote: Fri May 24, 2019 12:54 am Do android devices have powerful GPUs?
If not, then I guess it stinks on android.
Correct no GPU, but it will not stink if you use a one of the smaller nets offered by dkappe - GM+ strength on a Pi ( similar to a weak andriod) .

Re: LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 7:25 am
by Ferdy
Tried the 64bit compile and it worked. I use Acid Ape Chess Grandmaster Edition to run the engine at 1 core, on blas backend on Android 7.0. Here is a sample game using network file 11258-16x2-se from dkappe. Speed is around 500 nps from startpos.

Weak at tactics but plays an opening as if it is using an opening book.

[pgn] [Event "3+2 engine game"] [Site "?"] [Date "2019.05.24"] [Round "?"] [White "Myself"] [Black "Lc0 v0.22.0-dev"] [Result "1-0"] [WhiteCountry "usa"] [BlackElo "3049"] [TimeControl "3+2"] [Time "12:40:28"] [AacUser "White"] [AacWhitePlayerType "Human"] [AacBlackPlayerType "Engine"] [AacIsRated "0"] [AacDuration "04:07.232"] 1. d4 d5 {[%clk 02:58]} 2. c4 {[%clk 02:59]} c6 {[%clk 02:56]} 3. e3 {[%clk 02:40]} Nf6 {[%clk 02:55]} 4. Nc3 {[%clk 02:38]} e6 {[%clk 02:53]} 5. Qc2 {[%clk 02:34]} Nbd7 {[%clk 02:51]} 6. Nf3 {[%clk 02:33]} Bd6 {[%clk 02:50]} 7. Be2 {[%clk 02:27]} O-O {[%clk 02:48]} 8. O-O {[%clk 02:27]} dxc4 {[%clk 02:46]} 9. Bxc4 {[%clk 02:26]} b5 {[%clk 02:44]} 10. Bd3 {[%clk 02:24]} Bb7 {[%clk 02:42]} 11. Rd1 {[%clk 02:22]} a6 {[%clk 02:40]} 12. e4 {[%clk 02:12]} c5 {[%clk 02:39]} 13. e5 {[%clk 02:02]} Bxf3 {[%clk 02:38]} 14. gxf3 {[%clk 02:00]} cxd4 {[%clk 02:37]} 15. exd6 {[%clk 01:50]} dxc3 {[%clk 02:35]} 16. Qxc3 {[%clk 01:50]} Rc8 {[%clk 02:34]} 17. Qd4 {[%clk 01:48]} Nd5 {[%clk 02:31]} 18. Bd2 {[%clk 01:43]} Rc6 {[%clk 02:29]} 19. Qe4 {[%clk 01:37]} N7f6 {[%clk 02:26]} 20. Qh4 {[%clk 01:33]} Rxd6 {[%clk 02:23]} 21. Bg5 {[%clk 01:30]} h6 {[%clk 02:21]} 22. Bxh6 {[%clk 01:28]} gxh6 {[%clk 02:19]} 23. Qxh6 {[%clk 01:27]} Re8 {[%clk 02:17]} 24. Kh1 {[%clk 01:27]} Nb4 {[%clk 02:14]} 25. Rg1+ {[%clk 01:24]} Ng4 {[%clk 02:16]} 26. Rxg4+ {[%clk 01:23]} Qg5 {[%clk 02:18]} 27. Rxg5+ {[%clk 01:21]} 1-0 [/pgn]

Tried to intall it at different gui.
1. Droidfish, ok
2. Chess for android, not ok
3. Analyze this pro, not ok
4. Acid Ape Chess Grandmaster edition, ok

Items 2 and 3 did not work because the WeightsFile option cannot be set.

Auto discover of weight file does not work, it should be set via WeightsFile option which items 1 and 4 are capable.

Re: LC0 For Android!!! History Made!!

Posted: Fri May 24, 2019 8:55 am
by Eduard
Thank You for this message. It works now on my Smartphone with droidfish. I had to set the following line manually (no auto):

sdcard/Droidfish/uci/11258-16x2-se-4.pb