Downloads · 30 days
0
aaahmet/chess-ai
chess-ai is a robotics model from aaahmet. Use it for the robotics task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as mit.
A neural network chess engine trained on master-level chess games from Lichess using supervised learning.
Downloads · 30 days
0
Access
Public
Updated Sep 8, 2026
Repo size
1.4 GB
Likes
0
Public
Click a slice to open those files.
.pth1.4 GB · 100%
From the Hugging Face model README
A neural network chess engine trained on master-level chess games from Lichess using supervised learning.
best_model.pth (119 MB): The best-performing checkpoint evaluated on held-out validation gamescheckpoint_epoch_1.pth through checkpoint_epoch_10.pth: Training progression checkpoints across 10 epochsmodel.py: PyTorch neural network definition (ChessNet)board_encoder.py: Fast board state to tensor conversionplay_engine.py: Engine move picker and evaluation logicimport torch
from model import ChessNet
import chess
# Initialize model
model = ChessNet(num_res_blocks=3, num_channels=128)
checkpoint = torch.load("best_model.pth", map_location="cpu")
model.load_state_dict(checkpoint)
model.eval()
print("Chess AI model loaded successfully!")
Created by Ahmet Dedeler. Full repository available on GitHub.