chessnet-wide
A wider version of chessnet-base, the network chessnet plays with, trained on the same data with the same recipe for an equal-compute comparison: 10 residual blocks of 192 filters (7,572,332 parameters), trained on the second GPU of the session that trained base. Weights chessnet-wide-e1-20261126 (e1 is input encoding version 1, not an epoch: the checkpoint is from epoch 2 of 2), published with chessnet 1.0.0's evaluation (tag v1.0.0). The input encoding, the heads, the data, the usage and the limitations are those of chessnet-base; this card gives what differs.
| File | Contents |
|---|---|
model.safetensors |
the weights (a PyTorch state dict), loadable without pickle |
config.json |
the architecture, input and output sizes, encoding version and provenance |
model.onnx |
the ONNX export (dynamic batch size) |
manifest.json |
the training dataset's manifest (the same as base's) |
SHA256SUMS |
the SHA-256 of the four files above |
Architecture
| Type | SE-ResNet policy-value network (a Leela Chess Zero-style residual tower) |
| Trunk | 3x3 convolution of the 19 input planes to 192 channels, then 10 residual blocks of 192 filters (conv-BN-ReLU-conv-BN, squeeze-excitation, skip connection, ReLU) |
| Squeeze-excitation | ratio 4: global average pooling, 192 β 48 (ReLU) β 384, one half a sigmoid scale per channel and the other a bias |
| Policy head | 3x3 convolution (192 β 192), BN, ReLU, 1x1 convolution (192 β 73): 73 x 8 x 8 = 4,672 move logits |
| Value head | 1x1 convolution (192 β 32), BN, ReLU, fully connected 2,048 β 128, ReLU, 128 β 3 logits: win, draw and loss for the side to move |
| Parameters | 7,572,332 |
| Input | 19 x 8 x 8 planes from the side to move's perspective, encoding version 1 (as for chessnet-base) |
Training
Supervised learning on human games: the policy learns the move played (cross-entropy with label smoothing) and the value the game's result for the side to move (win/draw/loss cross-entropy). The loss is policy cross-entropy + 0.5 x value cross-entropy, with no legal-move mask. It was trained with chessnet train (chessnet 0.2.0.dev0, commit fd50dcf) on Kaggle.
| Hyperparameter | Value |
|---|---|
| Optimizer | AdamW, Ξ²1 = 0.9, Ξ²2 = 0.999, Ξ΅ = 1e-08 |
| Learning rate | 0.001 (peak) |
| Weight decay | 0.0001 on convolution and linear weights; none on biases and batch-norm parameters |
| Schedule | linear warmup over 2,000 steps, then cosine decay to 0.01 x the peak at step 75,144 |
| Batch size | 2,048 positions |
| Epochs | 2, 75,144 steps (completed) |
| Checkpoint | step 75,000 (epoch 2), the lowest validation loss |
| Label smoothing | 0.05 (policy) |
| Value-loss weight | 0.5 |
| Gradient clipping | global norm 5 |
| Precision | fp16 autocast (AMP) with a GradScaler |
| torch.compile | yes |
| Seed | 0 |
| Hardware | one T4 GPU (GPU 1 of Kaggle's T4 x2 machine) |
| Wall time | 8.73 h |
| GPU hours | 8.73 on the second T4, in the same Kaggle session as base (quota counted once: 10.1 h total) |
Results
Prediction
On 51,200 positions from held-out games (the validation subset, at the checkpoint's step):
| Metric | Value |
|---|---|
| Top-1 / top-3 / top-5 move accuracy | 54.94% / 83.21% / 91.74% |
| Top-1, White / Black to move | 54.60% / 55.28% (gap 0.68 points) |
| Top-1, opening / middlegame / endgame | 54.65% / 53.78% / 57.01% |
| WDL accuracy | 57.69% |
| Value loss (WDL cross-entropy) | 0.848 |
| Policy loss (cross-entropy with label smoothing) | 1.907 |
Against base
- Wide vs base at equal playouts (800 each, GPU): 12 / 25 / 13, no measurable difference (-7 Elo, -76 to +62). Per playout, wide's 2 epochs give as strong a network as base's 5.
- Wide vs base at equal time: on a T4, one game per GPU at 1 s per move each, wide scores 55% (+35, -27 to +99, not significant), most likely because the Python search loop, not the network, sets the pace on the GPU. On the laptop CPU wide loses 18 of 20 (5%, -512, -inf to -353): there the network is most of the cost, and wide completes about 257 playouts in a 1 s move against base's 490. On a CPU, base is the network to play with.
The matches, from base's full evaluation suite:
base-best.pt, full suite
2026-11-27, 2 x Tesla T4 (cuda, 4 worker(s)), chessnet 0.2.0.dev0. 50 balanced openings, each played with both colours.
| Match | Games | W / D / L | Score | Elo (95% CI) | Target |
|---|---|---|---|---|---|
| wide-best vs base, 800 playouts each | 50 | 12 / 25 / 13 | 49.0% | -7 (-76 to +62) | - |
| wide-best vs base, 1 s per move each | 50 | 13 / 29 / 8 | 55.0% | +35 (-27 to +99) | - |
| wide-best vs base, 1 s per move each (laptop CPU) | 20 | 0 / 2 / 18 | 5.0% | -512 (β€ -353, lower bound undefined) | - |
wide-best vs base, 1 s per move each was played 2 games at a time.
wide-best vs base, 1 s per move each (laptop CPU) was played on 11th Gen Intel(R) Core(TM) i3-1115G4 @ 3.00GHz (cpu), 1 game at a time.
How to use
With chessnet, which needs uv. download-weights --source hf needs chessnet β₯ 1.1. Until v1.1.0 is released, install chessnet from main, as below (git clone checks out main).
git clone https://github.com/NikaAtanelishvili/chess-ai && cd chess-ai
uv sync
uv run chessnet download-weights --source hf --model wide # nikaata007/chessnet-wide at v1.0.0, SHA-256 checked
uv run chessnet play --weights checkpoints/hf/chessnet-wide/model.safetensors
The UCI engine .venv/bin/chessnet-uci takes the same path in its Weights option.
In Python, load_network builds the network from config.json and loads model.safetensors:
from chessnet.model.checkpoint import load_network
network = load_network("checkpoints/hf/chessnet-wide/model.safetensors").eval()
Links
- Code, documentation and every evaluation game: https://github.com/NikaAtanelishvili/chess-ai
- The chessnet 1.0.0 release (base's training checkpoint and ONNX export): https://github.com/NikaAtanelishvili/chess-ai/releases/tag/v1.0.0
- Training data: https://huggingface.co/datasets/nikaata007/chessnet-lichess-2000plus
Citation
@software{chessnet,
author = {Nikoloz Atanelishvili},
title = {chessnet: an AlphaZero-style chess engine trained on Lichess games},
year = {2026},
version = {1.0.0},
url = {https://github.com/NikaAtanelishvili/chess-ai},
}
- Downloads last month
- 38