Skip to content
Fabian Fichter edited this page Sep 10, 2021 · 20 revisions

In order to improve playing strength compared to the classical/handcrafted evaluation, NNUE (efficiently updatable neural network) evaluation - if available for the variant - can be used to enhance playing strength. An overview of available NNUE evaluation files for variants can be found in this spreadsheet.

What is NNUE?

NNUE are efficiently updateable neural networks, that were first applied to shogi, then later also applied to official Stockfish. From there it made its way into Fairy-Stockfish. Several generalizations have been applied to the architecture of the neural network, so that it can be used for different board sizes, arbitrary piece types, as well as variants with piece drops.

An overview over NNUE in Stockfish can be found in the chessprogramming wiki.

How to use it?

In order to use NNUE evaluation for chess variants in Fairy-Stockfish, follow the below steps:

  • Download the NNUE evaluation file you want to use from patreon. Also see the above spreadsheet for an overview.
  • Download a compatible Fairy-Stockfish release.
  • Set the path of the downloaded NNUE file in the EvalFile parameter, either in your GUI or via the command line.
  • When you select a variant for which an NNUE file was defined in the EvalFile, it will start using NNUE automatically. If the GUI you are using supports to print engine debug output (such as cutechess), you can check there whether Fairy-Stockfish prints a message starting like NNUE evaluation using ... enabled to make sure that it correctly detected it.