official-stockfish/nnue-pytorch
Stockfish NNUE (Chess evaluation) trainer in Pytorch
What it solves
NNUE PyTorch provides a dedicated framework for training and testing the neural networks used by the Stockfish chess engine. It simplifies the complex process of setting up the necessary environment and managing the training pipeline for these specialized evaluation networks.
How it works
The project uses a containerized approach (via Docker) to bundle all required dependencies, including PyTorch and hardware-specific drivers for NVIDIA or AMD GPUs. This eliminates the need for manual environment configuration. For users on Apple Silicon, it provides a native setup path using Conda or Micromamba. Once set up, users can run training commands directly to process chess data and generate evaluation networks.
Who it’s for
This tool is designed for developers and researchers working on Stockfish engine development or those interested in training NNUE (Efficiently Updatable Neural Network) models for chess. It is intended for users comfortable with command-line workflows and hardware-intensive machine learning tasks.
Highlights
- Streamlined environment setup using pre-configured Docker containers.
- Support for major GPU hardware vendors including NVIDIA and AMD.
- Native support for Apple Silicon via Conda/Micromamba environments.
- Integrated tools for reproducible training and engine testing.
- Optimized for high-performance sparse data loading.
Related
- Project
- Project
- Project
- Project
- Project