A domain-specific ML library, generally used for training NNUE-style networks for many of the strongest chess engines in the world
due to its best-in-class performance, chess-specific tooling and ease of use. Training is supported on NVIDIA (cuda), AMD (rocm) and Apple Silicon (metal) GPUs.
Before attempting to use, check out the docs which contain the main information about building bullet, managing training data and the network output format.
Most people simply clone the repo and edit one of the examples to their taste:
simple- a basic(768 -> N)x2 -> 1network, with example inference code, that usesValueTrainerBuilderprogression- from a first network to input buckets, output buckets and multiple layersadvanced- a SOTA training example that does not useValueTrainerBuilder, instead usingbullet-trainerdirectlyataxx- a non-chess example, where a simple custom data format is defined
If you want to create your own example file to ease pulling from upstream, you need to add the example to bullet_lib's Cargo.toml.
Alternatively, import the bullet_lib crate with
bullet = { git = "https://github.com/jw1912/bullet", package = "bullet_lib" }Specific API documentation is covered by Rust's docstrings. You can create local documentations with cargo doc.
Open an issue to file any simple bug reports/feature requests.
The #bullet channel in the Engine Programming discord server exists for help with the use of bullet and discussing feature requests, development and/or potential bugs.
It is not for questions about how you should train your network - for that refer to #engines-dev in Stockfish or #nnue-dev in Alpha-Beta.