Skip to content

Commit ef94f77

Browse files
daniel-monroevondele
authored andcommitted
Update default net to nn-a3d1bfca1672.nnue
faster permutation of master net weights Activation data taken from https://drive.google.com/drive/folders/1Ec9YuuRx4N03GPnVPoQOW70eucOKngQe?usp=sharing Permutation found using https://github.com/Ergodice/nnue-pytorch/blob/836387a0e5e690431d404158c46648710f13904d/ftperm.py See also official-stockfish/nnue-pytorch#254 The algorithm greedily selects 2- and 3-cycles that can be permuted to increase the number of runs of zeroes. The percent of zero runs from the master net increased from 68.46 to 70.11 from 2-cycles and only increased to 70.32 when considering 3-cycles. Interestingly, allowing both halves of L1 to intermix when creating zero runs can give another 0.5% zero-run density increase with this method. Measured speedup: ``` CPU: 16 x AMD Ryzen 9 3950X 16-Core Processor Result of 50 runs base (./stockfish.master ) = 1561556 +/- 5439 test (./stockfish.patch ) = 1575788 +/- 5427 diff = +14231 +/- 2636 speedup = +0.0091 P(speedup > 0) = 1.0000 ``` closes official-stockfish#4640 No functional change
1 parent 0fd186f commit ef94f77

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ clefrks
4848
Dale Weiler (graphitemaster)
4949
Daniel Axtens (daxtens)
5050
Daniel Dugovic (ddugovic)
51+
Daniel Monroe (Ergodice)
5152
Dan Schmidt (dfannius)
5253
Dariusz Orzechowski (dorzechowski)
5354
David (dav1312)

src/evaluate.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace Eval {
3939
// The default net name MUST follow the format nn-[SHA256 first 12 digits].nnue
4040
// for the build process (profile-build and fishtest) to work. Do not change the
4141
// name of the macro, as it is used in the Makefile.
42-
#define EvalFileDefaultName "nn-5af11540bbfe.nnue"
42+
#define EvalFileDefaultName "nn-a3d1bfca1672.nnue"
4343

4444
namespace NNUE {
4545

0 commit comments

Comments
 (0)