Not logged inCSS-Forum
Forum CSS-Online Help Search Login
CSS-Shop Impressum Datenschutz
Up Topic Hauptforen / CSS-Forum / Chessard
- - By Lothar Jung Date 2026-10-07 09:55
I'm happy to announce the open-source release of Chessard, an engine for modelling exceptionally strong human play built off of Leela's BT4 net, at https://github.com/daniel-monroe/chessard. On grandmaster-level classical games, it predicts the move played by a human 10% more often than Stockfish and Maia-3. It also does not deteriorate when its opponent plays abnormally like Maia-3 and other learning-based methods. Finally, it comes with a preliminary set of LoRA adapters that tailor the style to that of a specific player. The open-source release is intended primarily for research-- I would still point those who just want to play or analyze with the engine to the website at https://chessard.com

https://chessard.com/

https://discord.com/channels/425419482568196106/438088534755377204/1557099344459473016
Parent - - By Dietmar Klinger Date 2026-10-07 13:05
Lothar Jung schrieb:
Ich freue mich, die Open-Source-Veröffentlichung von Chessard bekannt zu geben........

Hallo Lothar,

ich habe mir Chessard unter Linux installiert und lasse diese gerade gegen Plenty-Chess 8.0 in paar Testpartien laufen.
Wie es bis jetzt aussieht scheint diese Engine saustark zu sein.
Danke für deine Info.

MfG Dietmar
Parent - - By Lothar Jung Date 2026-10-07 15:57 Edited 2026-10-07 16:00
Hallo Dietmar,

Hier noch folgende Info:

It is built on a Leela Chess Zero BT4 transformer body with a Stockfish-aware policy head.

chessard:
A UCI chess engine that plays like a human of a chosen rating. Instead of searching for the best move, it plays the move a person of that strength would most likely play, as predicted by the chessard network.

Quick start

Works on Windows, macOS and Linux. You need Git, Python 3.10 or newer, and about 1 GB of disk space.

Windows (PowerShell or Command Prompt; when installing Python, tick "Add python.exe to PATH"):

git clone https://github.com/daniel-monroe/chessard
cd chessard
py install.py
venv\Scripts\chessard.exe
macOS / Linux:

git clone https://github.com/daniel-monroe/chessard
cd chessard
python3 install.py
venv/bin/chessard
install.py sets everything up inside the chessard folder, then runs verify.py to check that the engine works. It takes a minute or two. Re-running it only redoes what is missing.

Step  What it does  Ends up in
Python  a virtualenv with the pinned versions in requirements.txt, plus PyTorch 2.14.1 (2.2.2 on Intel Macs, the last release for them)  venv/
Engine command  chessard (chessard.exe on Windows), a normal program to give to any chess GUI  venv/bin/ or venv\Scripts\
Stockfish  the official Stockfish 18 release for your OS and CPU. On Linux, if no release runs (an old glibc, or ARM), it is built from source, which needs make and g++  stockfish/
Weights  downloaded from Hugging Face (public, ~400 MB, no login) and checked against weights.sha256  weights/
Options:

--cpu / --cuda: choose the PyTorch build on Windows and Linux. The default is CUDA when an NVIDIA GPU is found (nvidia-smi works); it's a ~2.5 GB download, against ~200 MB for CPU. Macs always get the standard macOS build.
--weights-src DIR: copy the weights from a local folder instead of downloading them.
--skip-verify: don't run verify.py at the end.
verify.py checks that:

the UCI handshake lists all five players;
at Elo 2200 after 1.e4 d5, the first info line is score cp 91 ... pv e4d5 string p=93.81% and the move is bestmove e4d5;
--player kaufman loads at Elo 2188;
--elo 1500 is rejected.
Every push is tested this way on Windows, macOS and Linux (.github/workflows/test.yml).

Running it

venv/bin/chessard                          # Elo 2200   (Windows: venv\Scripts\chessard.exe)
venv/bin/chessard --elo 2400
venv/bin/chessard --player carlsen         # Carlsen's style, at his rating (2840)
The engine finds weights/ and stockfish/ in the repo on its own. To use other copies, pass --weights-dir / --stockfish or set CHESSARD_DIR / STOCKFISH. The weights folder can be shared between programs. The Player option lists every <name>.pt in its loras/ subfolder, so an adapter you train yourself shows up once you copy it in; add it to loras/players.json to give it a default rating.

GUIs and lichess-bot

Give the GUI the full path to the engine command: C:\...\chessard\venv\Scripts\chessard.exe on Windows, /.../chessard/venv/bin/chessard on macOS and Linux. install.py prints it at the end.

Cute Chess, Arena, BanksiaGUI, En Croissant, Nibbler: add a UCI engine with that path, then set Elo, Player, Sampling and so on in the engine options dialog.
cutechess-cli / fastchess:
cutechess-cli -engine cmd=/path/to/chessard/venv/bin/chessard name=chessard-2400 option.Elo=2400 \
              -engine cmd=stockfish option.UCI_LimitStrength=true option.UCI_Elo=2400 \
              -each proto=uci tc=60+1 -games 2
lichess-bot (config.yml):
engine:
  dir: "/path/to/chessard/venv/bin/"     # Windows: C:\path\to\chessard\venv\Scripts\
  name: "chessard"                        # Windows: chessard.exe
  protocol: "uci"
  uci_options:
    Elo: 2400            # 2000-2900, or 0 for the player's own rating
    Player: "none"       # or carlsen, nakamura, sadler, janik, kaufman
Options

Option  Default 
Elo  0 (auto)  rating to imitate, 2000–2900: the model was trained only on games by 2000+ players, and below that its behaviour is not meaningful. 0 means the selected player's own rating from loras/players.json, or 2200 with no player
Player  none  play in one player's style using their adapter: carlsen (2840), nakamura (2810), sadler (2692), janik (2504), kaufman (2188)
Sampling  true  sample a move from the distribution instead of always playing the most likely one; gives varied, more human games. --no-sampling turns it off
Temperature  50  percent; 100 is the network's own distribution, >100 flattens it, <100 sharpens it
MultiPV  5  how many candidate moves to report
SF_Depth  9  depth of the per-move Stockfish searches. The network was trained on depth 9; other depths work but shift its predictions
Threads  min(8, cores)  Stockfish processes run in parallel
Move Overhead  100  ms reserved for GUI/network lag
WeightsDir, StockfishPath    same as --weights-dir, --stockfish
Set the CHESSARD_DEVICE environment variable (cpu, cuda, cuda:1) to choose a device.

Time and stop

chessard does not search, so extra time doesn't make it better: each move costs one network forward pass plus a shallow Stockfish search of every legal move. The clock only acts as a safety cap (25% of remaining time plus most of the increment). If that runs out, or stop arrives, before the searches finish, the move is chosen from depth-1 evaluations instead, which is much cheaper. go infinite and go ponder hold bestmove until stop / ponderhit, as UCI requires. searchmoves is supported; depth, nodes and mate limits are accepted and ignored.

Troubleshooting

python/py is not found (Windows). Reinstall Python from python.org and tick "Add python.exe to PATH", or run it through the py launcher, which the installer adds.

could not create a virtualenv (Debian/Ubuntu). Run sudo apt install python3-venv.

The weights download fails. The repo is public, so this is usually the network (a proxy, a firewall, or an interrupted transfer). Re-run install.py and it resumes. Behind a proxy, set HTTPS_PROXY. You can also fetch the files another way and pass --weights-src DIR.

the weights don't match weights.sha256. A download was corrupted. Delete weights/ and re-run.

No Stockfish release runs, and the build needs make. This happens on Linux with an old glibc, or on ARM. Install a compiler (sudo apt install build-essential) and re-run.

Intel Mac: "PyTorch only goes up to Python 3.12". PyTorch's last Intel Mac release (2.2.2) supports Python 3.10–3.12, so run the installer with one of those (e.g. python3.12 install.py).

The GUI shows no moves, or chessard failed to load. Run the engine command in a terminal and type uci, then isready; errors go to stderr. The usual causes are a wrong WeightsDir/CHESSARD_DIR or StockfishPath.

--elo 1500 is rejected. This is intentional, because the model was trained only on games by 2000+ players. Through setoption, out-of-range values are clamped to 2000-2900.

It runs on CPU even though there's an NVIDIA GPU. You have the CPU build of PyTorch. Re-run install.py --cuda to swap it.

verify.py fails only on the probability. It allows ±0.05 points. A bigger difference means a different Stockfish version, SF_Depth or weights.

Starting over. Delete venv/, weights/ and stockfish/ and run install.py again.

Python API

import chess
from chessard import Chessard

net = Chessard("chessard-weights/chessard.pt", stockfish="stockfish",
               adapter="chessard-weights/loras/carlsen.pt")   # adapter is optional
for m in net.predict(chess.STARTING_FEN, ["e2e4", "e7e5"], elo=2200)[:3]:
    print(m["uci"], f"{m['prob']:.1%}", m["cp"])
net.close()
Pass the real move sequence rather than a bare FEN. The network sees the last 8 positions, so predictions from a FEN with no history are worse.

License

GPL-3.0. See LICENSE.
Parent - By Dietmar Klinger Date 2026-10-07 16:36 Upvotes 1
Lothar Jung schrieb:
Hier noch folgende Info:

Hallo Lothar,

diese ganzen Informationen hatte ich vor der Installation alle schon erkundet.
Mich interessierte ohnehin nur die Installation unter Linux.
Da ich es ja nun nach langer Zeit hinbekommen habe, dass auch mein altes ChessBase 16 in einer Laufzeitumgebung unter Linux bis jetzt
läuft, wenn auch nur mit zusätzlichen Tasttatur-Funktionen neben der Mouse, benötige ich nun eigentlich für mich selbst so gut wie keinen Windows Rechner mehr,
wenn ich von meinem Certabo-Schachbrett mal absehe. Auch mein HIARCS Chess Explorer Pro funzt unter Lnux ausgezeichnet.

MfG Dietmar
Parent - By Christian Petersen Date 2026-10-07 23:35
Guten Abend Lothar!

Danke für die Info!

Zitat:
rating to imitate, 2000–2900: the model was trained only on games by 2000+ players, and below that its behaviour is not meaningful.


Für mich zu stark-bleibe daher bei den Maia-builds...

Grüße!
Parent - - By Dietmar Klinger Date 2026-10-08 10:06
Lothar Jung schrieb:
Eine Engine zur Modellierung eines außergewöhnlich starken menschlichen Spielstils

Hallo Lothar,

ja, das kann man wirklich laut sagen. Diese Engine eignet sich gerade unter en-croissant (hervorragende GUI) dafür als idealer Trainingspartner.
Allerdings behaupte ich, eher für Spieler ab 2200 ELO gut geeignet, denn dieses Monster spielt wirklich saustark und bestraft auch den kleinsten Fehler
gegen einen Mensch, wenngleich gegen Top-Engine diese keinen Stich sieht.
Jedenfalls eine feine Sache. Wenn ich mal viel Zeit habe werde ich das mal in einer Langzeit-Partie ausgiebig testen.

MfG Dietmar
Parent - - By Lothar Jung Date 2026-10-08 11:11 Upvotes 1
Wäre was für Kurt!?
Parent - - By Dietmar Klinger Date 2026-10-08 14:03
Lothar Jung schrieb:
Wäre was für Kurt!?

Ja, vielleicht liest er es hier.
Parent - - By Kurt Utzinger Date 2026-10-08 17:13 Edited 2026-10-08 17:32 Upvotes 1
Dietmar Klinger schrieb:

Lothar Jung schrieb:
Wäre was für Kurt!?

Ja, vielleicht liest er es hier.


Hallo Dietmar
Aber nur dann, wenn die Engine nicht auf GPU, sondern auf CPU läuft, was offenbar nicht der Fall ist. Für mich sind Leela Chess Zero & Co. keine Option mehr.
Gruss
Kurt
Parent - By Dietmar Klinger Date 2026-10-08 17:48 Edited 2026-10-08 17:52
Kurt Utzinger schrieb:

Aber nur dann, wenn die Engine nicht auf GPU, sondern auf CPU läuft, was offenbar nicht der Fall ist.

Hallo Kurt,

bei mir läuft es auf CPU. Spiele gerade auf meinen alten DeepShredder 11 für Linux Blitzpartien gegen diesen chessard.
Einfach hervorragend. Habe schon 4 remis geschafft aber auch schon 15 x verloren.

MfG Dietmar
Parent - - By Lothar Jung Date 2026-10-09 07:31
Hallo Kurt,

Chessard läuft nur auf CPU.

Gruß

Lothar
Parent - - By Kurt Utzinger Date 2026-10-09 08:38 Edited 2026-10-09 08:42
Lothar Jung schrieb:

Hallo Kurt,

Chessard läuft nur auf CPU.

Gruß

Lothar


Hallo Lothar
Hab ich was falsch verstanden: --cpu / --cuda: choose the PyTorch build on Windows and Linux. The default is CUDA when an NVIDIA GPU is found (nvidia-smi works); it's a ~2.5 GB download, against ~200 MB for CPU. Soll ich meine Grafikarte "ausschalten". Überhaupt scheint mir die ganze Installation "steinzeitlich" mit Terminal und den üblichen kryptischen Befehlen, wohl nur für Linux User gedacht. Und vermutlich muss man gar noch kompilieren und Sachen installieren, die ich sonst nie auf einem Windows-PC brauche.
Gruss
Kurt
Parent - - By Lothar Jung Date 2026-10-09 08:57
Hallo Kurt,

sorry bei mir läuft es auf dem iPad.

Ich glaube es macht keinen wesentlichen Unterschied, da die maximale Spielstärke auf 2.900 Elo festgelegt ist.
Auch findet keine Suche statt.
Probiere doch beide Optionen aus.

Grüße

Lothar
Parent - - By Kurt Utzinger Date 2026-10-09 09:04 Upvotes 1
Lothar Jung schrieb:

Hallo Kurt,

sorry bei mir läuft es auf dem iPad.

Ich glaube es macht keinen wesentlichen Unterschied, da die maximale Spielstärke auf 2.900 Elo festgelegt ist.
Auch findet keine Suche statt. Probiere doch beide Optionen aus.

Grüße
Lothar


Hi Lothar
Unser iPad braucht meine Frau. Ich kann mit dem Ding gar nichts anfangen, wie auch mit Tablets. Und das "Installations-Getöse" unter Windows tue ich mir wohl nicht an.
Gruss
Kurt
Parent - - By Tommy Tulpe Date 2026-10-09 10:17
Eine zeitgemäße Schachengine muss als UCI Engine für Windows verwendbar sein und natürlich auf der CPU laufen. Deckt sich mit meiner Meinung!

Gern für die Apple- oder Linux-Gemeinde noch andere Optionen, aber nur als Zusatz.
Parent - - By Dietmar Klinger Date 2026-10-09 12:28
Tommy Tulpe schrieb:

Eine zeitgemäße Schachengine muss als UCI Engine für Windows verwendbar sein und natürlich auf der CPU laufen.

Genau das tut doch auch Chessard. Wer sich mit Computer Schach befasst, für den sollte die Installation ja nun auch kein Hexenwerk sein.

MfG Dietmar
Parent - - By Kurt Utzinger Date 2026-10-09 13:26 Upvotes 4
Dietmar Klinger schrieb:

Tommy Tulpe schrieb:

Eine zeitgemäße Schachengine muss als UCI Engine für Windows verwendbar sein und natürlich auf der CPU laufen.

Genau das tut doch auch Chessard. Wer sich mit Computer Schach befasst, für den sollte die Installation ja nun auch kein Hexenwerk sein.

MfG Dietmar


Hallo Dietmar

Wenn ich für das Laufen einer Schachengine noch zusätzliche Software installieren und mich mit solchen Sachen herumschlagen muss wie

Quick start

Works on Windows, macOS and Linux. You need Git, Python 3.10 or newer, and about 1 GB of disk space.

Windows (PowerShell or Command Prompt; when installing Python, tick "Add python.exe to PATH"):

git clone https://github.com/daniel-monroe/chessard
cd chessard
py install.py
venv\Scripts\chessard.exe

dann hört bei mir der Spass auf.

Beste Grüsse
Kurt
Parent - - By Dietmar Klinger Date 2026-10-09 17:06 Upvotes 1
Kurt Utzinger schrieb:

Wenn ich für das Laufen einer Schachengine noch zusätzliche Software installieren und mich mit solchen Sachen
herumschlagen muss wie....dann hört bei mir der Spass auf.

Hallo Kurt,

unter Windows in dieses Install-Verfahren aber eigentlich auch ungewöhnlich und da kann ich den Frust auch verstehen.
Wer das dann noch nie selbst gemacht hat, steht dann mehr oder weniger vor gewissen Problemen. In der Regel stehen ja die Engine
für Windows sonst fast immer zum Abholen fertig bereit.

MfG Dietmar
Parent - - By Kurt Utzinger Date 2026-10-09 20:14
Dietmar Klinger schrieb:

Kurt Utzinger schrieb:

Wenn ich für das Laufen einer Schachengine noch zusätzliche Software installieren und mich mit solchen Sachen
herumschlagen muss wie....dann hört bei mir der Spass auf.

Hallo Kurt,

unter Windows in dieses Install-Verfahren aber eigentlich auch ungewöhnlich und da kann ich den Frust auch verstehen.
Wer das dann noch nie selbst gemacht hat, steht dann mehr oder weniger vor gewissen Problemen. In der Regel stehen ja die Engine
für Windows sonst fast immer zum Abholen fertig bereit.

MfG Dietmar


Hallo Dietmar

So etwas ärgert mich, vor allem, dass man einen derartigen Aufwand betreiben muss. Vielleicht werde ich doch einen Versuch machen.

1. Git-2.56.0.2-64-bit
und
2. python-manager-26.3.msix
sowie
3. chessard-master.zip

habe ich schon heruntergeladen. Ich stelle mir vor, dass ich Nr. 1 installiere (Pfad??), die Nr. 3 entpacke (wohin?) sowie schliesslich Nr. 2 installiere und dabei irgendwie/wo "Add python.exe to PATH" eingeben muss. Dann geht es zum Terminal wo ich mit dem Befehl

git clone https://github.com/daniel-monroe/chessard
cd chessard
py install.py
venv\Scripts\chessard.exe


dann endlich zur ausführenden Datei "chesscard.exe" unter Windows gelange.

Beste Grüsse
Kurt
Parent - - By Dietmar Klinger Date 2026-10-10 12:15
Kurt Utzinger schrieb:
So etwas ärgert mich, vor allem, dass man einen derartigen Aufwand betreiben muss.

Hallo Kurt,

ich habe mir heute zum Vergleich Chessert zusätzlich noch auf meinen Windows 11 Rechner installiert.
Wem da die PowerShell und Eingabeaufforderung fremd sind und da auch noch nie kompiliert hat, wird damit kaum zurecht kommen.
Ich habe es auch mit der Python Version 3.13.16-64 Bit gemacht. Zum Schluss musste ich dann noch einen Launcher bauen welcher die
chessard.exe startet. Ein Aufwand welcher ein Laie da kaum bewältigt.

MfG Dietmar
Parent - By Kurt Utzinger Date 2026-10-10 12:54 Upvotes 1
Dietmar Klinger schrieb:

Kurt Utzinger schrieb:
So etwas ärgert mich, vor allem, dass man einen derartigen Aufwand betreiben muss.

Hallo Kurt,

ich habe mir heute zum Vergleich Chessert zusätzlich noch auf meinen Windows 11 Rechner installiert.
Wem da die PowerShell und Eingabeaufforderung fremd sind und da auch noch nie kompiliert hat, wird damit kaum zurecht kommen.
Ich habe es auch mit der Python Version 3.13.16-64 Bit gemacht. Zum Schluss musste ich dann noch einen Launcher bauen welcher die
chessard.exe startet. Ein Aufwand welcher ein Laie da kaum bewältigt.

MfG Dietmar


Hallo Dietmar
Also wie erwartet eine "fürchterliche" Installation für normale Windows-User. Dann gebe ich den Geist auf. Kompiliert habe ich noch nie. Trotzdem danke für die Info.
MfG Kurt
Parent - - By Dietmar Klinger Date 2026-10-11 10:28 Edited 2026-10-11 10:32
Lothar Jung schrieb:
https://chessard.com/

Hallo Lothar,

hast Du u.A. Chessard auch noch unter Windows 11 installiert?
Ich habe da nämlich festgestellt das Chessard im Gegensatz der Linux Installation dort nur unter den Fritz GUIs normal läuft.
Sobald man Chessard da unter einer anderen GUI laufen läßt, spielt diese absolut schwach bzw, macht unsinnige Züge.
Ich konnte den Fehler bis heute nicht finden, woran das liegen könnte. Ich habe unter Windows 11 Python Version 3.12.3 installiert.
Vielleicht weißt Du Rat.

MfG Dietmar
Parent - By Lothar Jung Date 2026-10-11 11:30
Hallo Dietmar,

ich habe chessard überhaupt nicht installiert.
Ich rufe es über den Link mit dem iPad auf.
Mein Windows PC macht mir zur Zeit große Treiber Probleme.

Grüße

Lothar
- By Lothar Jung Date 2026-10-07 10:31
https://github.com/daniel-monroe/chessard
Up Topic Hauptforen / CSS-Forum / Chessard

Powered by mwForum 2.29.3 © 1999-2014 Markus Wichitill