LC0 For Android!!! History Made!!

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
User avatar
AdminX
Posts: 5133
Joined: Mon Mar 13, 2006 1:34 pm
Location: Acworth, GA
Contact:

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

Post by AdminX » Fri May 24, 2019 5:27 pm

Eduard wrote:
Fri May 24, 2019 5:14 pm
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.

With Acid-Ape go to Engine Settings, Scroll down and make sure you have the following filled in:

Working Directory
/Use/Full/Path to directory

WeightsFile
/Use/Full/Path to file

Syzygypath
/Use/Full/Path to directory
"Good decisions come from experience, and experience comes from bad decisions."
__________________________________________________________________
Ted Summers

Ferdy
Posts: 4079
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

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

Post by Ferdy » Fri May 24, 2019 6:01 pm

abik wrote:
Fri May 24, 2019 5:18 pm
Ferdy wrote:
Fri May 24, 2019 5: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.
Thanks, it works :)

User avatar
abik
Posts: 740
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik
Contact:

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

Post by abik » Fri May 24, 2019 6:10 pm

I did a very quick sanity 1-second-per-move tournament between BikJump and LC0 (weights file 11258-16x2-se-4.pb) in Chess for Android, but that did not go well for LC0. Since I (unfortunately) know that BikJump is not very strong, I must be doing something wrong still. Is there something essential in the setup that I am missing?

I am now running a tournament with the larger 11258-48x5-se.pb weights file.

Sample game.



Image

Ferdy
Posts: 4079
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

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

Post by Ferdy » Fri May 24, 2019 6:41 pm

abik wrote:
Fri May 24, 2019 6:10 pm
I did a very quick sanity 1-second-per-move tournament between BikJump and LC0 (weights file 11258-16x2-se-4.pb) in Chess for Android, but that did not go well for LC0. Since I (unfortunately) know that BikJump is not very strong, I must be doing something wrong still. Is there something essential in the setup that I am missing?
CDrill 1800 with around 1800 rating on CCRL 40/4 can beat Lc0 16x2, I think it is normal as Bikjump is way stronger than Cdrill. Net 48x5 is better than 16x2 based from my test on my tab. Also 48x5 is better than 64x6. But 32x4 is doing good vs 48x5, these of course varies from devices to devices. These tests are based only on a 4 or more game test matches using Acid Ape Chess at TC 3m+2s.

Deleted games of 16x2 as there are too many loses.

Code: Select all

Head to head statistics:

1) Lc0 v0.22.0-dev w11258-48x5 1907.9 :     27 (+10,=12,-5),  59.3 %

   vs.                                :  games (  +,  =, -),   (%) :    Diff,    SD, CFS (%)
   Lc0 v0.22.0-dev w11258-32x4        :      8 (  2,  4, 2),  50.0 :    +0.0, 106.3,   50.0
   Lc0 v0.22.0-dev w11258-64x6        :     15 (  6,  7, 2),  63.3 :  +103.8,  77.2,   91.1
   CDrill 1800                        :      4 (  2,  1, 1),  62.5 :  +107.9, 147.0,   76.9

2) Lc0 v0.22.0-dev w11258-32x4 1907.9 :      8 (+2,=4,-2),  50.0 %

   vs.                                :  games ( +, =, -),   (%) :    Diff,    SD, CFS (%)
   Lc0 v0.22.0-dev w11258-48x5        :      8 ( 2, 4, 2),  50.0 :    -0.0, 106.3,   50.0

3) Lc0 v0.22.0-dev w11258-64x6 1804.2 :     15 (+2,=7,-6),  36.7 %

   vs.                                :  games ( +, =, -),   (%) :    Diff,    SD, CFS (%)
   Lc0 v0.22.0-dev w11258-48x5        :     15 ( 2, 7, 6),  36.7 :  -103.8,  77.2,    8.9

4) CDrill 1800                 1800.0 :      4 (+1,=1,-2),  37.5 %

   vs.                                :  games ( +, =, -),   (%) :    Diff,    SD, CFS (%)
   Lc0 v0.22.0-dev w11258-48x5        :      4 ( 1, 1, 2),  37.5 :  -107.9, 147.0,   23.1

Last edited by Ferdy on Fri May 24, 2019 7:02 pm, edited 2 times in total.

User avatar
abik
Posts: 740
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik
Contact:

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

Post by abik » Fri May 24, 2019 6:46 pm

Ferdy wrote:
Fri May 24, 2019 6:41 pm
CDrill 1800 with around 1800 rating on CCRL 40/4 can beat Lc0 16x2, I think it is normal as Bikjump is way stronger than Cdrill. Net 48x5 is better than 16x2 based from my test on my tab. Also 48x5 is better than 64x6. But 32x4 is doing good vs 48x5, these of course varies from devices to devices. These tests are based only on an 8-game test matches using Acid Ape Chess.
Thanks. I am currently using a Pixel C.

A quick 2-seconds-per-move tournament using the weights file 11258-48x5-se.pb tipped the balance, 5.5 vs 4.5 in LC0's favor.
Here is a sample game of one of LC0's victories (per adjudication).


flither
Posts: 16
Joined: Thu Aug 02, 2018 9:16 pm
Full name: Raf Levsky

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

Post by flither » Fri May 24, 2019 7:43 pm

Finally someone dug out and appreciated LC0 for Android after weeks! This is getting interesting now :D

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

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

Post by Laskos » Fri May 24, 2019 8:44 pm

abik wrote:
Fri May 24, 2019 6:46 pm
Ferdy wrote:
Fri May 24, 2019 6:41 pm
CDrill 1800 with around 1800 rating on CCRL 40/4 can beat Lc0 16x2, I think it is normal as Bikjump is way stronger than Cdrill. Net 48x5 is better than 16x2 based from my test on my tab. Also 48x5 is better than 64x6. But 32x4 is doing good vs 48x5, these of course varies from devices to devices. These tests are based only on an 8-game test matches using Acid Ape Chess.
Thanks. I am currently using a Pixel C.

A quick 2-seconds-per-move tournament using the weights file 11258-48x5-se.pb tipped the balance, 5.5 vs 4.5 in LC0's favor.
Here is a sample game of one of LC0's victories (per adjudication).

I only have BikJump 2.1 for Android from your website. On one core of my phone it gets about 250-300knps. Using Chess for Android, Lc0 11258-48x5-se.pb on 4 cores beat it +7 -1 =2 in games at 10s/move. I would estimate BikJump on 1 core of my phone as about 2000 CCRL 40/4, or maybe 2200 FIDE rating in Blitz (maybe even 2300). Therefore Lc0 on 4 cores is about 2400-2500 FIDE level in blitz using this net.

It also managed to get 3 draws in 10 games against Ethereal 9.00 one core, which is about 2800 CCRL Elo level engine on my phone, in line with 2400-2500 FIDE rating of Lc0 11258-48x5-se.pb on my phone.

User avatar
abik
Posts: 740
Joined: Fri Dec 01, 2006 9:46 pm
Location: Mountain View, CA, USA
Full name: Aart Bik
Contact:

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

Post by abik » Fri May 24, 2019 9:28 pm

Laskos wrote:
Fri May 24, 2019 8:44 pm
I only have BikJump 2.1 for Android from your website. On one core of my phone it gets about 250-300knps. Using Chess for Android, Lc0 11258-48x5-se.pb on 4 cores beat it +7 -1 =2 in games at 10s/move. I would estimate BikJump on 1 core of my phone as about 2000 CCRL 40/4, or maybe 2200 FIDE rating in Blitz (maybe even 2300). Therefore Lc0 on 4 cores is about 2400-2500 FIDE level in blitz using this net.

It also managed to get 3 draws in 10 games against Ethereal 9.00 one core, which is about 2800 CCRL Elo level engine on my phone, in line with 2400-2500 FIDE rating of Lc0 11258-48x5-se.pb on my phone.
Thank you for those data points. I am now running a 5 minutes for 40 moves gauntlet between LC0 and some other Android engines. I will post the results when available.

petero2
Posts: 581
Joined: Mon Apr 19, 2010 5:07 pm
Location: Sweden
Contact:

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

Post by petero2 » Fri May 24, 2019 10:19 pm

Ferdy wrote:
Fri May 24, 2019 5:25 am
Tried the 64bit compile and it worked.
...
Weak at tactics but plays an opening as if it is using an opening book.
...
Tried to install it at different gui.
1. Droidfish, ok
DroidFish has an old optimization that makes it not send the complete game history to the chess engine. Moves in the history that cannot affect the game theoretical value of the current game are not sent. This is bad in the lc0 case since it will cause the history planes to not get set up correctly.

This optimization is very old and made sense at a time when smart phones were a lot slower than today and when Android did not even JIT-compile the bytecode. With modern devices this optimization is likely no longer useful.

supersharp77
Posts: 746
Joined: Sat Jul 05, 2014 5:54 am
Location: Southwest USA

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

Post by supersharp77 » Fri May 24, 2019 11:56 pm

Ferdy wrote:
Fri May 24, 2019 5:25 am
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.



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.
Interesting game! LC0 working in Acid Ape chess Arm8..... :D :wink:

Post Reply