A containerized linux environment for training Stockfish NNUE with nnue-pytorch.
The container image is Ubuntu 22.04 LTS with Cuda, Torch, and all the necessary dependencies for running nnue-pytorch installed.
To use this, make sure Nvidia drivers, Docker, and the Nvidia container toolkit are installed.
See server_setup.sh for commands to install dependencies from a clean Ubuntu server environment.
Afterwards, use these scripts to prepare and run the container image.
./docker_build.sh # builds an image with a working nnue-pytorch environment
./docker_run.sh # access the command-line within the container
See training data files in this July 2022 PR: official-stockfish/Stockfish#4100
Info on how the training data is generated is in the nnue-pytorch wiki.
Use this interleave_binpacks.py script to
mix downloaded .binpack
files together to prepare training data.
- Go to OAuth 2.0 Playground
- In the "Input your own scopes" text box, enter in:
https://www.googleapis.com/auth/drive.readonly
- Click Authorize APIs and then click "Exchange authorization code for tokens"
- Copy the access token
curl -H "Authorization: Bearer <access_token>" \
"https://www.googleapis.com/drive/v3/files/<file_id>?alt=media" \
-o output.binpack