Stockfish NN release (NNUE)

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

Moderators: bob, hgm, Harvey Williamson

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
Raphexon
Posts: 302
Joined: Sun Mar 17, 2019 11:00 am
Full name: Henk Drost

Re: Stockfish NN release (NNUE)

Post by Raphexon » Fri Jun 05, 2020 6:29 pm


User avatar
Master Om
Posts: 397
Joined: Wed Nov 24, 2010 9:57 am
Location: INDIA

Re: Stockfish NN release (NNUE)

Post by Master Om » Sat Jun 06, 2020 5:32 am

hi,
The BMI2 compiles are not running on AMD Ryzen box. Also I am not able to figure out how to use the nn.bin
Please give a detailed instruction and popcnt compiles.
Always Expect the Unexpected

pohl4711
Posts: 1355
Joined: Sat Sep 03, 2011 5:25 am
Location: Berlin, Germany
Contact:

Re: Stockfish NN release (NNUE)

Post by pohl4711 » Sat Jun 06, 2020 8:33 am

Master Om wrote:
Sat Jun 06, 2020 5:32 am
hi,
The BMI2 compiles are not running on AMD Ryzen box. Also I am not able to figure out how to use the nn.bin
Please give a detailed instruction and popcnt compiles.
On my Haswell CPU i7-6700HQ (mobile CPU), it does not run, too. I can start the engine in console-mode, but when I type "go infinite", it closes immediately. All other engines start thinking, then (Lc0, Stockfish, Komodo etc.)

Raphexon
Posts: 302
Joined: Sun Mar 17, 2019 11:00 am
Full name: Henk Drost

Re: Stockfish NN release (NNUE)

Post by Raphexon » Sat Jun 06, 2020 9:12 am

pohl4711 wrote:
Sat Jun 06, 2020 8:33 am
Master Om wrote:
Sat Jun 06, 2020 5:32 am
hi,
The BMI2 compiles are not running on AMD Ryzen box. Also I am not able to figure out how to use the nn.bin
Please give a detailed instruction and popcnt compiles.
On my Haswell CPU i7-6700HQ (mobile CPU), it does not run, too. I can start the engine in console-mode, but when I type "go infinite", it closes immediately. All other engines start thinking, then (Lc0, Stockfish, Komodo etc.)
The "...halfkp_256x2-32-32" binary needs the 20MB eval in the eval folder:

This is Chickenlogic's big net, that's afaik the strongest yet:
https://drive.google.com/file/d/1-x8x0M ... sp=sharing

Do use the latest binaries with it:
https://github.com/nodchip/Stockfish/re ... 2020-06-04

The "...k-p_256x2-32-32" binary needs the 400 kb eval in the eval folder: (and also needs the latest binaries)
Use this net with it:
viewtopic.php?f=2&t=74059&start=50#p845988

Also the nn file has to be called nn.bin, or it won't load.

Does it work now?

Joerg Oster
Posts: 783
Joined: Fri Mar 10, 2006 3:29 pm
Location: Germany

Re: Stockfish NN release (NNUE)

Post by Joerg Oster » Sat Jun 06, 2020 10:59 am

pohl4711 wrote:
Sat Jun 06, 2020 8:33 am
Master Om wrote:
Sat Jun 06, 2020 5:32 am
hi,
The BMI2 compiles are not running on AMD Ryzen box. Also I am not able to figure out how to use the nn.bin
Please give a detailed instruction and popcnt compiles.
On my Haswell CPU i7-6700HQ (mobile CPU), it does not run, too. I can start the engine in console-mode, but when I type "go infinite", it closes immediately. All other engines start thinking, then (Lc0, Stockfish, Komodo etc.)
Try issuing an 'ucinewgame' and 'isready' command to make the engine load the net.
Without this it didn't work for me, either.
Jörg Oster

Raphexon
Posts: 302
Joined: Sun Mar 17, 2019 11:00 am
Full name: Henk Drost

Re: Stockfish NN release (NNUE)

Post by Raphexon » Sat Jun 06, 2020 11:07 am

Joerg Oster wrote:
Sat Jun 06, 2020 10:59 am
pohl4711 wrote:
Sat Jun 06, 2020 8:33 am
Master Om wrote:
Sat Jun 06, 2020 5:32 am
hi,
The BMI2 compiles are not running on AMD Ryzen box. Also I am not able to figure out how to use the nn.bin
Please give a detailed instruction and popcnt compiles.
On my Haswell CPU i7-6700HQ (mobile CPU), it does not run, too. I can start the engine in console-mode, but when I type "go infinite", it closes immediately. All other engines start thinking, then (Lc0, Stockfish, Komodo etc.)
Try issuing an 'ucinewgame' and 'isready' command to make the engine load the net.
Without this it didn't work for me, either.
I see your patch has been applied to the original Nodchip branch and new binaries with your patch have been released.

Interesting, time to train again with depth 4 and see what happens now after 1 iteration.

Joerg Oster
Posts: 783
Joined: Fri Mar 10, 2006 3:29 pm
Location: Germany

Re: Stockfish NN release (NNUE)

Post by Joerg Oster » Sat Jun 06, 2020 11:58 am

Raphexon wrote:
Sat Jun 06, 2020 11:07 am
Joerg Oster wrote:
Sat Jun 06, 2020 10:59 am
pohl4711 wrote:
Sat Jun 06, 2020 8:33 am
Master Om wrote:
Sat Jun 06, 2020 5:32 am
hi,
The BMI2 compiles are not running on AMD Ryzen box. Also I am not able to figure out how to use the nn.bin
Please give a detailed instruction and popcnt compiles.
On my Haswell CPU i7-6700HQ (mobile CPU), it does not run, too. I can start the engine in console-mode, but when I type "go infinite", it closes immediately. All other engines start thinking, then (Lc0, Stockfish, Komodo etc.)
Try issuing an 'ucinewgame' and 'isready' command to make the engine load the net.
Without this it didn't work for me, either.
I see your patch has been applied to the original Nodchip branch and new binaries with your patch have been released.

Interesting, time to train again with depth 4 and see what happens now after 1 iteration.
Generating fens now might take a little bit more time,
but the scores should be more reliable now.
Jörg Oster

ChickenLogic
Posts: 69
Joined: Sun Jan 20, 2019 10:23 am
Full name: Julian Willemer

Re: Stockfish NN release (NNUE)

Post by ChickenLogic » Sat Jun 06, 2020 3:21 pm

Joerg Oster wrote:
Sat Jun 06, 2020 11:58 am
Generating fens now might take a little bit more time,
but the scores should be more reliable now.
So, I'd like to compile it on Linux. What do I have to do to make it work? And are there benefits using openMP? On Windows I get a warning that it is disabled but it still works.
Currently working on SFNN.

carldaman
Posts: 1985
Joined: Sat Jun 02, 2012 12:13 am

Re: Stockfish NN release (NNUE)

Post by carldaman » Sat Jun 06, 2020 4:39 pm

Raphexon wrote:
Sat Jun 06, 2020 9:12 am
pohl4711 wrote:
Sat Jun 06, 2020 8:33 am
Master Om wrote:
Sat Jun 06, 2020 5:32 am
hi,
The BMI2 compiles are not running on AMD Ryzen box. Also I am not able to figure out how to use the nn.bin
Please give a detailed instruction and popcnt compiles.
On my Haswell CPU i7-6700HQ (mobile CPU), it does not run, too. I can start the engine in console-mode, but when I type "go infinite", it closes immediately. All other engines start thinking, then (Lc0, Stockfish, Komodo etc.)
The "...halfkp_256x2-32-32" binary needs the 20MB eval in the eval folder:

This is Chickenlogic's big net, that's afaik the strongest yet:
https://drive.google.com/file/d/1-x8x0M ... sp=sharing

Do use the latest binaries with it:
https://github.com/nodchip/Stockfish/re ... 2020-06-04

The "...k-p_256x2-32-32" binary needs the 400 kb eval in the eval folder: (and also needs the latest binaries)
Use this net with it:
viewtopic.php?f=2&t=74059&start=50#p845988

Also the nn file has to be called nn.bin, or it won't load.

Does it work now?
Both the small and big nets are named nn.bin, so which one is best to use with the latest binaries? The 400kb or 20mb?
Very interesting project!
Thanks!

ChickenLogic
Posts: 69
Joined: Sun Jan 20, 2019 10:23 am
Full name: Julian Willemer

Re: Stockfish NN release (NNUE)

Post by ChickenLogic » Sat Jun 06, 2020 5:13 pm

For now there might not be a huge difference in the nets. But the bigger net will have a way higher ceiling and we're trying to get there. Although the bigger net might already be stronger.
Currently working on SFNN.

Post Reply