LC0 For Android!!! History Made!!

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
Laskos
Posts: 10948
Joined: Wed Jul 26, 2006 10:21 pm
Full name: Kai Laskos

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

Post by Laskos »

MikeB wrote: Fri May 24, 2019 6:00 am
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) .
Wow, works like a charm with DroidFish (just set the weights filename and path manually). Using 64bit version, BLAS backend, 4 threads (4 faster cores), dkappe 11258-48x5-se network. Getting about 400 nps after 4-5 seconds. Beats the hell out of me. Usual Leela style, GM-like. Very fun!

As it beats me like a duck, maybe I will check its strength against some other engine.

Thanks everybody in this thread.
Nay Lin Tun
Posts: 708
Joined: Mon Jan 16, 2012 6:34 am

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

Post by Nay Lin Tun »

[pgn][Date "2019.05.24"] [Round "?"] [White "Player"] [Black "Lc0 v0.22.0-dev"] [Result "1-0"] [TimeControl "60/120"] 1. Nf3 c5 2. g3 f6 3. Bg2 c4 4. O-O e5 5. d4 a6 6. dxe5 a5 7. Nc3 d5 8. Nxd5 Qd6 9. exd6 g6 10. Qd4 c3 11. Nxf6+ Nxf6 12. Qxf6 Bxd6 13. Bf8 14. Bh6 Ke7 15. Qxf8+ Kd7 16. Rfd1+ Kc6 17. Nd4+ Kb6 18. Qd6+ Nc6 19. Nxc6 Bd7 20. Qxd7 Rd8 21. Qxd8+ Kb5 22. Qd6 cxb2 23. Rab1 g5 24. Rxb2+ Kc4 25. Qd4# 1-0 [/pgn]


I downloaded 11258 112x8 SE net which is the highest in the list.

This is 2 min bullet on my Galaxy S10+
Leela played like random. :(
jp
Posts: 1470
Joined: Mon Apr 23, 2018 7:54 am

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

Post by jp »

Nay Lin Tun wrote: Fri May 24, 2019 11:07 am I downloaded 11258 112x8 SE net which is the highest in the list.

This is 2 min bullet on my Galaxy S10+
Leela played like random. :(
Does it show how many nodes per move it's calculating?
User avatar
AdminX
Posts: 6339
Joined: Mon Mar 13, 2006 2:34 pm
Location: Acworth, GA

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

Post by AdminX »

Eduard wrote: Fri May 24, 2019 5:29 am 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.
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
Nay Lin Tun
Posts: 708
Joined: Mon Jan 16, 2012 6:34 am

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

Post by Nay Lin Tun »

jp wrote: Fri May 24, 2019 11:22 am
Nay Lin Tun wrote: Fri May 24, 2019 11:07 am I downloaded 11258 112x8 SE net which is the highest in the list.

This is 2 min bullet on my Galaxy S10+
Leela played like random. :(
Does it show how many nodes per move it's calculating?

Approx 200knps. I am using small net.
User avatar
AdminX
Posts: 6339
Joined: Mon Mar 13, 2006 2:34 pm
Location: Acworth, GA

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

Post by AdminX »

Two games using Acid-Ape ID: 11258-48x5-se.pb.gz

[pgn] [Event "5+3 engine duel"] [Site "?"] [Date "2019.05.24"] [Round "?"] [White "Rodent III 0.171 \[Default\]"] [Black "Lc0 v0.22.0"] [Result "1/2-1/2"] [ECO "A39"] [WhiteElo "3069"] [BlackElo "3049"] [PlyCount "284"] [EventDate "2019.??.??"] [TimeControl "5+3"] [WhiteClock "0:00:29"] [BlackClock "0:01:53"] 1. Nf3 c5 {0} 2. g3 {0} Nc6 {0} 3. c4 {0} Nf6 {0} 4. Nc3 {0} g6 {0} 5. d4 {0} cxd4 {0} 6. Nxd4 {0} Bg7 {0} 7. Bg2 {0} O-O {0} 8. O-O {0} Nxd4 {0} 9. Qxd4 {0} d6 {0} 10. Qd3 {0} Bf5 {0} 11. e4 {0} Be6 {0} 12. Bd2 {0} Nd7 {0} 13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{3} 119. Qf1+ {3} Kg6 {3} 120. Qd3+ {4} Kg7 {3} 121. Qe3 {4} Kh8 {1} 122. Qe6 {3} Qd4+ { 5} 123. Qd7 {4} Qb6+ {3} 124. Qc7 {3} Qd4+ {1} 125. Kc8 {4} Qg4+ {2} 126. Qd7 { 3} Qc4+ {1} 127. Kd8 {3} Qh4 {2} 128. Qd5 {4} Kg7 {2} 129. Qd1 {3} Qf6 {6} 130. Qg1+ {4} Kf7 {1} 131. Qf1 {3} Qxf1 {2} 132. e8=Q+ {4} Kg7 {1} 133. Qe7+ {3} Kg6 {7} 134. Qe3 {3} Qf8+ {4} 135. Kc7 {4} Qf7+ {3} 136. Kd6 {3} Qf8+ {5} 137. Kd7 {4} Qf5+ {3} 138. Kc6 {3} Qf6+ {4} 139. Kd7 {3} Qf7+ {2} 140. Kc6 {4} Qf6+ {3} 141. Kd7 {3} Qf7+ {4} 142. Kc6 {3} Qf6+ {3 ½-½} 1/2-1/2 [/pgn]

[pgn] [Event "5+3 engine duel"] [Site "?"] [Date "2019.05.24"] [Round "?"] [White "Lc0 v0.22.0"] [Black "Rodent III 0.171 \[Default\]"] [Result "1-0"] [ECO "A04"] [WhiteElo "3049"] [BlackElo "3069"] [PlyCount "161"] [EventDate "2019.??.??"] [TimeControl "5+3"] [WhiteClock "0:02:58"] [BlackClock "0:00:31"] 1. e4 e6 {0} 2. d3 {0} c5 {0} 3. g3 {0} Nc6 {0} 4. Nf3 {0} g6 {0} 5. Bg2 {0} Bg7 {0} 6. O-O {0} Nge7 {0} 7. c3 {0} e5 {0} 8. Be3 {0} d6 {0} 9. d4 {0} exd4 { 0} 10. cxd4 {0} Bg4 {0} 11. d5 {0} Nd4 {0} 12. Nbd2 {0} O-O {0} 13. h3 {0} Nxf3+ {0} 14. Nxf3 {0} Bxf3 {0} 15. Qxf3 {0} f5 {0} 16. Rae1 {0} fxe4 {0} 17. Qxe4 {0} Nf5 {0} 18. Bf4 {0} Bxb2 {0} 19. Qe6+ {0} Rf7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6 {4} 74. Kd5 {10} Kb7 {1} 75. Rc5 {6} Kb6 {0} 76. Kd6 {0} Kb7 {0} 77. Rb5+ {5} Ka6 {1} 78. Kc6 {0 } Ka7 {0} 79. Ra5+ {11} Kb8 {0} 80. Ra1 {3} Kc8 {0} 81. Ra8# {0} 1-0 [/pgn]
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

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

Post by Eduard »

Problem with Acid Ape.

Can anyone explane why LC0 Android does not works under "Acid Ape Chess Grandmaster." I have set the same Engine Settings like with/in Droidfish, but the Engine does not calculate.
User avatar
abik
Posts: 819
Joined: Fri Dec 01, 2006 10:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik

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

Post by abik »

Ferdy wrote: Fri May 24, 2019 7:25 am 2. Chess for android, not ok
Actually you can run LC0 in Chess for Android too with an extra setup step.
  • Copy lc0 binary and weights files to /sdcard
  • Install engine from SD card on lc0
  • Install engine from SD card on weights file (not intuitive, but this puts file in right place)
  • Import engine lc0
After this you can play lc0. The auto-discover default will find the weights file in the same directory.
Last edited by abik on Fri May 24, 2019 7:35 pm, edited 1 time in total.
User avatar
AdminX
Posts: 6339
Joined: Mon Mar 13, 2006 2:34 pm
Location: Acworth, GA

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

Post by AdminX »

Acid-Ape MCTS NN two more.

[pgn] [Event "5+3 engine duel"] [Site "?"] [Date "2019.05.24"] [Round "?"] [White "Scorpio_2.8.9 MCTS+NN"] [Black "Lc0 v0.22.0"] [Result "1-0"] [ECO "B27"] [WhiteElo "2619"] [BlackElo "3049"] [PlyCount "119"] [EventDate "2019.??.??"] [TimeControl "5+3"] [WhiteClock "0:00:40"] [BlackClock "0:00:55"] 1. e4 g6 {0} 2. Nf3 {0} c5 {0} 3. h3 {0} Bg7 {0} 4. Nc3 {0} Nc6 {0} 5. B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kh8 {6} 60. Qc8# {1} 1-0 [/pgn]

[pgn] [Event "5+3 engine duel"] [Site "?"] [Date "2019.05.24"] [Round "?"] [White "Lc0 v0.22.0"] [Black "Scorpio_2.8.9 MCTS+NN"] [Result "1-0"] [ECO "D56"] [WhiteElo "3049"] [BlackElo "2619"] [PlyCount "79"] [EventDate "2019.??.??"] [TimeControl "5+3"] [WhiteClock "0:00:50"] [BlackClock "0:02:33"] 1. d4 d5 {0} 2. Bf4 {0} Nf6 {0} 3. e3 {0} e6 {0} 4. Nf3 {0} Nc6 {0} 5. c4 {0} Bd6 {0} 6. Bg5 {0} O-O {0} 7. Nc3 {0} Be7 {0} 8. Rc1 {0} h6 {0} 9. Bh4 {0} a6 { 0} 10. a3 {0} Na5 {0} 11. cxd5 {0} exd5 {0} 12. Bd3 {0} b5 {0} 13. O-O {0} Nc4 {0} 14. Qc2 {0} Bb7 {0} 15. a4 {0} c6 {0} 16. h3 {0} Re8 {0} 17. b3 {0} Na3 {0} 18. Qd1 {0} b4 {0} 19. Ne2 {0} Bd6 {0} 20. Ng3 {0} g6 {0} 21. Qd2 {0} g5 {0} 22. Nxg5 {0} hxg5 {0} 23. Bxg5 {0} Bf8 {0} 24. Qd1 {0} Bg7 {0} 25. Nf5 {0} Qd7 {0} 26. Bxf6 {0} Bxf6 {0} 27. Qh5 {0} Qc7 {0} 28. Qh6 {0} Re6 {0} 29. f4 {0} Bxd4 {0} 30. Qg5+ {0} Rg6 {0} 31. Ne7+ {0} Kg7 {4} 32. Bxg6 {0} Bxe3+ {13} 33. Kh1 {0} fxg6 {7} 34. Nxd5 {0} Qd8 {5} 35. Nxe3 {0} Qxg5 {5} 36. fxg5 {0} Re8 { 19} 37. Ng4 {0} Ba8 {8} 38. Nf6 {0} Re3 {8} 39. Rcd1 {0} Re7 {5} 40. Rd8 {0} 1-0 [/pgn]
Last edited by AdminX on Fri May 24, 2019 7:30 pm, edited 1 time in total.
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers
Eduard
Posts: 1439
Joined: Sat Oct 27, 2018 12:58 am
Location: Germany
Full name: N.N.

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

Post by Eduard »

I have found the reason. The path to the network hase not the same name. :roll:

Droidfish:

sdcard/Droidfish/uci/11258-48x5-se.pb

Acip Ape:

storage/emulated/0/Droidfish/uci/11258-48x5-se.pb