Stockfish NN release (NNUE)

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

Moderators: hgm, Rebel, chrisw

kranium
Posts: 2129
Joined: Thu May 29, 2008 10:43 am

Re: Stockfish NN release (NNUE)

Post by kranium »

matejst wrote: Tue Jun 30, 2020 2:49 am Norm, I am not using bench: you know that it is too complicated for me. I was surprised when I noticed a surge in performance with the new binaries, two days ago -- on my old AMD A8, SF is achieves 550kn/s, the binaries from the 26th were ten times slower, about 53kn/s, and those of the 27th were achieving 155 kn/s. The new one are slower again. I also checked the number of positions after one mn, the depth, and it seems coherent with the nodes's count. Anyway, thank you for the popcount binaries -- it allowed me to finally try this new engine. It is similar to Winter, and recently Jonathan tried with two NN for the eval. I see a lot of intriguing, new possibilities arising.
Please try the new ones I just uploaded: 06-30-2020
These should be a lot faster.
matejst
Posts: 364
Joined: Mon May 14, 2007 8:20 pm
Full name: Boban Stanojević

Re: Stockfish NN release (NNUE)

Post by matejst »

Thanks, Norman. They seem to be the fastest so far. Will there soon be a new NN?
kranium
Posts: 2129
Joined: Thu May 29, 2008 10:43 am

Re: Stockfish NN release (NNUE)

Post by kranium »

matejst wrote: Tue Jun 30, 2020 3:14 am Thanks, Norman. They seem to be the fastest so far. Will there soon be a new NN?
I haven't really involved myself in training NN's, just run one once in awhile to test functionality.
Lot of experimenting at the moment.
It's still early in development, the codebase is changing every day...and getting better and better.

If someone creates a strong net, they often post it here, otherwise you should be able to find something to test here:
https://discord.com/channels/4359437104 ... 6266188890
Engin
Posts: 918
Joined: Mon Jan 05, 2009 7:40 pm
Location: Germany
Full name: Engin Üstün

Re: Stockfish NN release (NNUE)

Post by Engin »

how its really works from PGN to EPD and then to BIN format ?

if i try i got assertion error!
Rom77
Posts: 45
Joined: Wed Oct 24, 2018 7:37 am
Full name: Roman Zhukov

Re: Stockfish NN release (NNUE)

Post by Rom77 »

New popcnt versions of Stockfish NN do not run in the Fritz (12) GUI:
https://github.com/joergoster/Stockfish ... ses/tag/v1
https://github.com/FireFather/sf-nnue/r ... 07-07-2020

But older versions of Stockfish NN popcnt run fine:
https://github.com/FireFather/sf-nnue/r ... 06-30-2020

Now I rarely test in the Fritz GUI (switched to Banksia GUI), but maybe for someone this is important. Probably the developers should pay attention to this (if the problem is confirmed). In the Banksia GUI, all versions of Stockfish NN run without problems.
kranium
Posts: 2129
Joined: Thu May 29, 2008 10:43 am

Re: Stockfish NN release (NNUE)

Post by kranium »

Rom77 wrote: Tue Jul 07, 2020 8:39 pm New popcnt versions of Stockfish NN do not run in the Fritz (12) GUI:
https://github.com/joergoster/Stockfish ... ses/tag/v1
https://github.com/FireFather/sf-nnue/r ... 07-07-2020

But older versions of Stockfish NN popcnt run fine:
https://github.com/FireFather/sf-nnue/r ... 06-30-2020

Now I rarely test in the Fritz GUI (switched to Banksia GUI), but maybe for someone this is important. Probably the developers should pay attention to this (if the problem is confirmed). In the Banksia GUI, all versions of Stockfish NN run without problems.
Hi Roman-

There are really only 2 things that have changed:
the newer 'popcnt' named compiles include support for SSE4.1 instruction set
and they load nn.bin upon 'ucinewgame' instead of the ''isready' command.

If the binary runs on your machine, and the GUI is UCI compliant (i.e issues 'ucinewgame')
there's no logical explanation for it to not work.

Some on sf-nnue discord have suggested Chessbase/Fritz are not 100% UCI compatible...
but that I know nothing about, I don't use them.

May I ask what happens when you double click on the executable?
Rom77
Posts: 45
Joined: Wed Oct 24, 2018 7:37 am
Full name: Roman Zhukov

Re: Stockfish NN release (NNUE)

Post by Rom77 »

kranium wrote: Tue Jul 07, 2020 11:56 pm If the binary runs on your machine, and the GUI is UCI compliant (i.e issues 'ucinewgame')
there's no logical explanation for it to not work.
...
May I ask what happens when you double click on the executable?
Hi kranium

The binary runs fine. Bench test passes. Most likely the problem is really in:
kranium wrote: Tue Jul 07, 2020 11:56 pm Some on sf-nnue discord have suggested Chessbase/Fritz are not 100% UCI compatible...
JohnS
Posts: 215
Joined: Sun Feb 24, 2008 2:08 am

Re: Stockfish NN release (NNUE)

Post by JohnS »

Rom77 wrote: Wed Jul 08, 2020 4:55 am
kranium wrote: Tue Jul 07, 2020 11:56 pm If the binary runs on your machine, and the GUI is UCI compliant (i.e issues 'ucinewgame')
there's no logical explanation for it to not work.
...
May I ask what happens when you double click on the executable?
Hi kranium

The binary runs fine. Bench test passes. Most likely the problem is really in:
kranium wrote: Tue Jul 07, 2020 11:56 pm Some on sf-nnue discord have suggested Chessbase/Fritz are not 100% UCI compatible...
Ok in command mode, crashes in Chessbase 15 if I try to use it for analysis - causes exception.
kranium
Posts: 2129
Joined: Thu May 29, 2008 10:43 am

Re: Stockfish NN release (NNUE)

Post by kranium »

JohnS wrote: Wed Jul 08, 2020 12:35 pm
Rom77 wrote: Wed Jul 08, 2020 4:55 am
kranium wrote: Tue Jul 07, 2020 11:56 pm If the binary runs on your machine, and the GUI is UCI compliant (i.e issues 'ucinewgame')
there's no logical explanation for it to not work.
...
May I ask what happens when you double click on the executable?
Hi kranium

The binary runs fine. Bench test passes. Most likely the problem is really in:
kranium wrote: Tue Jul 07, 2020 11:56 pm Some on sf-nnue discord have suggested Chessbase/Fritz are not 100% UCI compatible...
Ok in command mode, crashes in Chessbase 15 if I try to use it for analysis - causes exception.
Hi John, Roman-
sf-nnue run (halfkp-256x2-32-32) x64-popc.exe

Per discussion on sf-nnue discord,
it's seems likely that Fritz/Chessbase can't handle long file names...
you might try shortening it
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfish NN release (NNUE)

Post by zullil »

OK, I've skimmed through 19 pages and I'm still uncertain.

I'd like to use this engine on a Linux machine. I can certainly clone from here: https://github.com/nodchip/Stockfish

Are there any posted instructions on building and then running this engine? Do I need to obtain a NN file from somewhere?