MAIA engine for Picochess

525 views
Skip to first unread message

Scally

unread,
Feb 5, 2021, 10:39:17 AM2/5/21
to PicoChess
Hi all,

You can download all that’s required to add Maia to Picochess from my Dropbox here:


Contrary to what I said yesterday, it’s not an NNUE engine it’s a derivative of Lc0 which was prior to the NNUE engines.

The best place for this engine is in the main armv7l folder, the engines.ini.maia contains text which should be copied directly after the Lc0v0270 entry in /opt/picochess/engines/engines.ini

The maia engine, maia.uci and folder maia_weights must be copied to the /opt/picochess/engines/armv7l/ folder

file maia will need executable permissions via:
chmod a+x maia  (sudo may be required)

That’s it, enjoy playing Maia at strengths between 1100 and 1900. it only searches 1 ply so replies quickly, so I suggest playing it at Fischer 5,3 or 10,5 time controls. Also select ‘no book’ so that it can play it’s own ‘learnt’ openings.


Cheers,

Al.

Kiko Gomez

unread,
Feb 5, 2021, 10:57:13 AM2/5/21
to PicoChess
Thank you Al,

it is amazing engine I tryed it in Lichess, good have it also for picochess.

Thank you for all your job compiling new engines.

BR

Kiko

Chessfriend

unread,
Feb 5, 2021, 2:18:56 PM2/5/21
to PicoChess

Hi Al,

I wanted to copy the files as you told us. I wanted to use the filemanager (your maia files on USB-Stick).
When i mark maia.uci (COPY). Open armv7 and (PASTE)

I see: The file operation was completed with errors. 
And
/opt/picochess/engines/armv7/maia.uci“: Permission denied.

Peter

RandyR

unread,
Feb 5, 2021, 2:32:28 PM2/5/21
to PicoChess
Assuming the files are in your Download folder, open a terminal and type:

sudo cp ~/Downloads/maia.uci /opt/picochess/engines/armv7l

Case is important. Root access is necessary.

Randy

RandyR

unread,
Feb 5, 2021, 2:36:06 PM2/5/21
to PicoChess
When everything is copied:

sudo chmod +x /opt/picochess/engines/armv7l/maia

Then edit engines.ini:

sudo nano /opt/picochess/engines/armv7l/engines.ini

and add the lines from engines.ini.maia. Then Ctrl-o, <Enter>, Ctrl-x.

Randy

Scally

unread,
Feb 5, 2021, 3:28:21 PM2/5/21
to PicoChess
Cheers Randy,

I was busy testing my RPi 3b.

Has anyone else loaded and tried Maia yet?

Al.

Dieter

unread,
Feb 5, 2021, 3:52:01 PM2/5/21
to PicoChess
Hi Al,

I just tested Maia. The engine does not start, because a library is apparently missing:

./maia: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory

Dieter

RandyR

unread,
Feb 5, 2021, 3:53:48 PM2/5/21
to PicoChess
Dieter,

sudo apt install libopenblas-dev

Randy

Scally

unread,
Feb 5, 2021, 4:00:39 PM2/5/21
to PicoChess
Hi all,

You will need to install openblas:

sudo apt install libopenblas-dev

I already had it installed from compiling Lc0, sorry.

Al.

Scally

unread,
Feb 5, 2021, 4:01:37 PM2/5/21
to PicoChess
Ah, great minds etc Randy ….

😄👍

Al.

RandyR

unread,
Feb 5, 2021, 4:13:27 PM2/5/21
to PicoChess
Ha ha.

I really should have given you more than a few seconds to reply.

:^)

Randy

Dieter

unread,
Feb 5, 2021, 4:20:23 PM2/5/21
to PicoChess
Al and Randy,

thank you both, now it's working. 👍

Dieter

Chessfriend

unread,
Feb 5, 2021, 4:55:47 PM2/5/21
to PicoChess

Hi Randy/Al

I copied all the files as you said. Using „File Manager“ I can see all files (maia.uci, mai_weights) but I can NOT see the engine.

Peter

Scally

unread,
Feb 5, 2021, 5:07:35 PM2/5/21
to PicoChess
03D96832-A690-4095-84DB-39F61E9F107A.jpegHi Peter,

It’s this file …..^^^^^^^^


Al.

Randy Reade

unread,
Feb 5, 2021, 5:09:35 PM2/5/21
to pico...@googlegroups.com
I think he means in the menu.

😊

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/945dcf07-dfc4-4c15-be08-c679ad984bfcn%40googlegroups.com.

Chessfriend

unread,
Feb 5, 2021, 5:11:54 PM2/5/21
to PicoChess
Yes Al. I dowloaded it - as all the oher files. I copied it with:“sudo cp ~/Downloads/maia /opt/picochess/engines/armv7l“.
All other files are in „arm7l“ but NOT the engine!

Peter

Randy Reade

unread,
Feb 5, 2021, 5:12:06 PM2/5/21
to pico...@googlegroups.com
Or maybe not. 🙄

On Fri., Feb. 5, 2021, 4:07 p.m. Scally, <scall...@gmail.com> wrote:
--

Chessfriend

unread,
Feb 5, 2021, 5:34:58 PM2/5/21
to PicoChess
Can I try something else? In the WWW reas about the sücommand: „mv“ to move the file????

Peter

Chessfriend

unread,
Feb 5, 2021, 5:36:47 PM2/5/21
to PicoChess

Sorry I wanted to write:

Can I try something else? In the WWW I read about the command: „mv“ to move the file????

Peter

Randy Reade

unread,
Feb 5, 2021, 5:42:28 PM2/5/21
to pico...@googlegroups.com
Sudo cp will adjust the permissions for you. Can you try it again and watch the result of the command in the terminal? Then type

ls -la /opt/picochess/engines/armv7l

And paste the results in your reply.

Randy

You received this message because you are subscribed to a topic in the Google Groups "PicoChess" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/picochess/ka0oimR4o84/unsubscribe.
To unsubscribe from this group and all its topics, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/cf8edf04-f891-47c6-aa26-084482a6aa40n%40googlegroups.com.

Chessfriend

unread,
Feb 5, 2021, 5:55:25 PM2/5/21
to PicoChess
Hi Randy, thanks for your answer - but I found the soulution ALLONE
Haaaaaaaaaaaaaaaa I am proud!  :-)
I couldns see the file - so I asked WWW and tried YOUR comand AND (-r) for hidden files.
After this command - the file was copied in the folder. The rest was as described above.

Peter

Chessfriend

unread,
Feb 5, 2021, 6:37:11 PM2/5/21
to PicoChess
Hi Al,Thanks for Maya - its my favorite engine - just won on elo 1900 - nice.
Thaaaaaaaaaaaaaaaaaaank youuuuuuuuuuu!!

One Question: you said we should choose NO BOOK - so it will use its own.
But CAN I use another opening book - will the engine use it - or does it ignore the other opening book and use its intern book?

Peter



Randy Reade

unread,
Feb 5, 2021, 6:37:45 PM2/5/21
to pico...@googlegroups.com

Scally

unread,
Feb 6, 2021, 4:10:43 AM2/6/21
to PicoChess

Hi Peter,

Great, you’ve got it working and it’s a new favourite of yours. I gather that weights files for Elo 2000 and 2100 are being produced, I’ll add them as they become available.

Like any Engine, you can use the built in book files too, so go ahead and try them.


Cheers,

Al.

Luigi Vogliobene

unread,
Feb 6, 2021, 6:31:54 AM2/6/21
to PicoChess
Fantastic engine, Al, thank you. It works flawlessy.
Luigi

RandyR

unread,
Feb 10, 2021, 3:45:19 PM2/10/21
to PicoChess
Apparently I am missing the openblas libraries on my Desktop image. I will correct this and upload a version that already includes the library. Lc0 worked because it wasn't compiled for BLAS, whereas Maia is. In the meantime, as previously stated, it can be added via:

sudo apt install libopenblas-dev

Randy

On Friday, February 5, 2021 at 2:52:01 PM UTC-6 Dieter wrote:
Reply all
Reply to author
Forward
0 new messages