Introducing Maia2 ā New Human-style Chess in PicoChess
Hey Maia folks,
after a few days of tinkering, debugging, scratching my head and occasionally mumbling at my Raspberry Pi š ā Iām happy to say:
š Maia2 now runs as a working UCI engine inside PicoChess!
So what is Maia2, and why should you care? Hereās a quick (and slightly fun) intro:
1ļøā£ What is Maia2?
Maia2 is the follow-up to Maia1, a project from the University of Toronto and the Microsoft Research team. While Maia1 was based on Lc0 and used a policy head to mimic human mistakes at specific Elo levels, Maia2 takes things further:
š§ It uses a PyTorch model, trained purely on human online chess games - just one model for all Elo levels.
šÆ The goal? To predict human-like moves at different skill levels ā not necessarily to play perfect chess (and in my experience it does not!), but to play like us mere mortals.
2ļøā£ Key differences from Maia1
3ļøā£ UCI Integration Highlights
ā Two pretrained models included:
Just use the UCI option ModelType to switch between them.
š§® Elo settings? You got it:
š§ Bonus features:
ā ļø Known Limitations
Letās be honest ā Maia2 is not Stockfish. And itās not meant to be!
š« No search depth (same like Maia1 when not running in a standard lc0 engine), so it canāt calculate tactics or mates.
Itās basically playing based on what humans would probably play from a given position.
āļø Also, early opening play is a bit⦠"special". On level 1500 and even 2200 it might do things like:
So if you plan to play longer games:
š” Enable an opening book in PicoChess to help her through the early chaos.
š§Ŗ Tips
š Ready to try it?
It runs beautifully on a Raspberry Pi 4 (and also 5), with everything wrapped into a standalone Python script ā no Lc0 needed!
INSTALLATION
Installation of requirements:
1. Script-Engine-Files (see the attached files):
2. Execuatble & uci file:
3. Entry in engines.ini or favorites.ini:
[script/maia2]
name = Maia2 2024 by MIT CSSLab UCI version by Molli
small = maia2
medium = maia2
large = Maia 2
web = Maia2 by MIT CSSLab & Molli
elo = 2200
ponder/brain = n
When running it the very first time for a net (blitz or rapid) it will automatically downloaded (als long as it is hosted on googledrive - so get it now ;-) Ā and be patient until the engine is ready.
I have other checked (as I no longer own one) own a stock DGTPI but I guess torch might not be really usable ?
Cheers,
Dirk