Compressed network parameters

Implemented LEB128 (de)compression for the feature transformer.
Reduces embedded network size from 70 MiB to 39 Mib.

The new nn-78bacfcee510.nnue corresponds to the master net compressed.

closes https://github.com/official-stockfish/Stockfish/pull/4617

No functional change
This commit is contained in:
maxim
2023-06-13 23:09:05 +03:00
committed by Joost VandeVondele
parent 0187546275
commit a46087ee30
3 changed files with 84 additions and 7 deletions

View File

@@ -39,7 +39,7 @@ namespace Eval {
// The default net name MUST follow the format nn-[SHA256 first 12 digits].nnue
// for the build process (profile-build and fishtest) to work. Do not change the
// name of the macro, as it is used in the Makefile.
#define EvalFileDefaultName "nn-cd2ff4716c34.nnue"
#define EvalFileDefaultName "nn-78bacfcee510.nnue"
namespace NNUE {