Stockfish NN release (NNUE)

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Dann Corbit, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
zullil
Posts: 6442
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Re: Stockfish NN release (NNUE)

Post by zullil » Sat Jul 18, 2020 8:48 pm

amchess wrote:
Fri Jul 17, 2020 10:18 pm
I created a fork from Joergoster repository and updated to the latest stockfish patch:

https://github.com/amchess/Stockfish-NNUE/

Let me know if it's all good.
Andrea
No, it's not.

Code: Select all

eval/nnue/evaluate_nnue.h:22:8: error: ‘AlignedPtr’ does not name a type; did you mean ‘aligned’?
   22 | extern AlignedPtr<FeatureTransformer> feature_transformer;
      |        ^~~~~~~~~~
      |        aligned
eval/nnue/evaluate_nnue.h:25:8: error: ‘AlignedPtr’ does not name a type; did you mean ‘aligned’?
   25 | extern AlignedPtr<Network> network;
      |        ^~~~~~~~~~
      |        aligned
Your header file seems different from Joerg's version.

amchess
Posts: 157
Joined: Tue Dec 05, 2017 1:42 pm

Re: Stockfish NN release (NNUE)

Post by amchess » Sat Jul 18, 2020 11:44 pm

thanks
I corrected them.

User avatar
MikeB
Posts: 4627
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: Stockfish NN release (NNUE)

Post by MikeB » Sun Jul 19, 2020 7:30 am

For those who can find some humor in chess ...




Specifically, the placement of Black's queen after 14.Nc3
Image

User avatar
Thomas Lagershausen
Posts: 292
Joined: Mon Jun 11, 2007 4:59 pm

Re: Stockfish NN release (NNUE)

Post by Thomas Lagershausen » Sun Jul 19, 2020 8:48 am

Thx for sharing. :P

What a cat and mouse play.8-)
TL

User avatar
M ANSARI
Posts: 3500
Joined: Thu Mar 16, 2006 6:10 pm

Re: Stockfish NN release (NNUE)

Post by M ANSARI » Sun Jul 19, 2020 8:51 am

Black side was basically playing without a Queen but didn't realize it while white side did. Interesting game and clearly shows a case where bean counting fails against AI.

amchess
Posts: 157
Joined: Tue Dec 05, 2017 1:42 pm

Re: Stockfish NN release (NNUE)

Post by amchess » Sun Jul 19, 2020 9:16 am

I updated the forked joergoster branch to the latest stockfish patches:
https://github.com/amchess/stockfish-nnue
In my opinion, the todo list is the following:
1. when building with profile-build the behaviour must be the same as stockfish, but the uci options for NN are showns anyway
2. there are a lot of warnings, also different based on the choiced target
3. the default NN path is bad for windows systems. Perhaps, we can simply put "nn.bin" and the net at the same level of the engine
4. there should be a file explaining the sense of all profiles.
Can someone confirm and or update/complete this, so I can contribute?
Many thanks in advance for the suggestions.

zullil
Posts: 6442
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Re: Stockfish NN release (NNUE)

Post by zullil » Sun Jul 19, 2020 10:47 am

amchess wrote:
Sun Jul 19, 2020 9:16 am
I updated the forked joergoster branch to the latest stockfish patches:
https://github.com/amchess/stockfish-nnue
In my opinion, the todo list is the following:
1. when building with profile-build the behaviour must be the same as stockfish, but the uci options for NN are showns anyway
2. there are a lot of warnings, also different based on the choiced target
3. the default NN path is bad for windows systems. Perhaps, we can simply put "nn.bin" and the net at the same level of the engine
4. there should be a file explaining the sense of all profiles.
Can someone confirm and or update/complete this, so I can contribute?
Many thanks in advance for the suggestions.
Related to 4: In the Makefile, please include information about the new nnue-related targets in the help target. So that, when a user types 'make help', he actually gets some help. :wink:

zullil
Posts: 6442
Joined: Mon Jan 08, 2007 11:31 pm
Location: PA USA
Full name: Louis Zulli

Re: Stockfish NN release (NNUE)

Post by zullil » Sun Jul 19, 2020 10:52 am

amchess wrote:
Sat Jul 18, 2020 11:44 pm
thanks
I corrected them.
Thanks. Yes, it builds successfully now.

Aleksei
Posts: 22
Joined: Thu Jul 05, 2018 11:14 pm
Full name: Aleksei

Re: Stockfish NN release (NNUE)

Post by Aleksei » Thu Jul 23, 2020 7:57 pm

Hello guys!
I have a couple questions regarding android engines. I've made engines armv7 and armv8 (from nodchip's source code), and when i start the engine in the Droidfish, engine's behavior is identical to normal SF (although nps are much lower). Also in Droidfish/uci directory i've created a folder "eval" with "nn.bin" file inside, So here is the questions, how can i be sure that engine is using nn.bin?
Maybe because i use NDK's Clang for Android, engine must to have support for Clang, or i need to make some changes in source code?
Any help is much appreciated!
Here is the engines if you want to try. https://www.mirrored.to/files/1JXPZSMW/

Regards.
Alex.

User avatar
MikeB
Posts: 4627
Joined: Thu Mar 09, 2006 5:34 am
Location: Pen Argyl, Pennsylvania

Re: Stockfish NN release (NNUE)

Post by MikeB » Thu Jul 23, 2020 9:43 pm

Aleksei wrote:
Thu Jul 23, 2020 7:57 pm
Hello guys!
I have a couple questions regarding android engines. I've made engines armv7 and armv8 (from nodchip's source code), and when i start the engine in the Droidfish, engine's behavior is identical to normal SF (although nps are much lower). Also in Droidfish/uci directory i've created a folder "eval" with "nn.bin" file inside, So here is the questions, how can i be sure that engine is using nn.bin?
Maybe because i use NDK's Clang for Android, engine must to have support for Clang, or i need to make some changes in source code?
Any help is much appreciated!
Here is the engines if you want to try. https://www.mirrored.to/files/1JXPZSMW/

Regards.
Alex.
start the engine in terminal and type "ucinewgame" - you should see a message confirming the nnfile was loaded.

If you do not, you may have that missed that the build command was changed for building NN

e.g., make ARCH=armv7 build COMP=gcc
would become
make -ARCH=armv7 nnue COMP=gcc
Image

Post Reply