Hi everyone,

I've just made my chess engine RustyNNUE public, with its first release (6.9, GPL-3.0-or-later). It's a UCI engine, and the same binary also runs the rest of the pipeline: it plays self-play games to make training data and trains its own NNUE network (rusty train). No GPU or Python is needed anywhere.

Some of the Rust side, in case it's interesting:

  • Trainer: multithreaded with rayon and quantisation-aware, so the trained net matches the integer inference exactly (there's a test that checks this).
  • Inference: AVX2 intrinsics (std::arch) for the accumulator updates. I ship three builds: x86-64-v3, x86-64-v3 without PEXT (for Zen 1/2, where PEXT is slow) and plain x86-64.
  • Network: HalfKAv2_hm plus threat inputs → 2x1024 → 32 → 32 → 1, 8 output buckets.
  • lc0conv: a small tool that converts Leela Chess Zero's public training data into the engine's format. The current net used about 230M of those positions next to 1.3B of its own.

Strength is around 3500 on the CCRL 40/15 scale by my own testing (not an official rating yet). You can play it without installing anything, as a bot on Lichess: https://lichess.org/@/RustyNNUE-Bot

Repo: GitHub - Svetlozarko/RustyNNUE: A UCI chess engine written in Rust · GitHub
Release: Release RustyNNUE 6.9 · Svetlozarko/RustyNNUE · GitHub

Two good first issues are open if anyone wants to jump in: Linux release binaries (#4) and an MSRV check (#5).

And a question for people who've done this: has anyone shipped one binary that picks AVX2/BMI2 paths at runtime (is_x86_feature_detected!) for hot SIMD loops without losing speed? I'd like to replace the three builds with one, but I'm worried about the dispatch cost in the inner loops.

Feedback and bug reports are very welcome!

1 post - 1 participant

Read full topic