Stockfish NNUE

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

Moderators: hgm, Rebel, chrisw

frankp
Posts: 228
Joined: Sun Mar 12, 2006 3:11 pm

Re: Stockfish NNUE

Post by frankp »

Thanks.
I should learn to read!
Compiled SF so many times, my fingers type the command automatically.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfish NNUE

Post by zullil »

frankp wrote: Sun Jul 26, 2020 3:36 pm Thanks.
I should learn to read!
Compiled SF so many times, my fingers type the command automatically.
Mine too, and I knew the answer only because I made the same error. :wink: At nodchip's repo, the make help target has been updated to include info about the various nnue targets. But not at the repo you cloned.
frankp
Posts: 228
Joined: Sun Mar 12, 2006 3:11 pm

Re: Stockfish NNUE

Post by frankp »

BTW I now have the same issue others have reported here.
Stockfish_nnue works fine in a console, but I cannot persuade it to read the nn.bin file in either scid or python chess - even though the paths are definitely correct. (Not tried other gui, or Windows.).
Just get a2a3 etc like others, presumably indicating that no bin file has been loaded.
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfish NNUE

Post by zullil »

frankp wrote: Sun Jul 26, 2020 5:02 pm BTW I now have the same issue others have reported here.
Stockfish_nnue works fine in a console, but I cannot persuade it to read the nn.bin file in either scid or python chess - even though the paths are definitely correct. (Not tried other gui, or Windows.).
Just get a2a3 etc like others, presumably indicating that no bin file has been loaded.
Did you try absolute paths?

The engine should load the net in response to ucinewgame. Does the GUI send that? Can you log communications?
frankp
Posts: 228
Joined: Sun Mar 12, 2006 3:11 pm

Re: Stockfish NNUE

Post by frankp »

Tried a few things. None of which worked.
File not found or wrong format error.
But works in the console.
ucinewgame does not seem to cause an attempt to reload the nn.bin file.
Thanks for the help, but time for a rest.


//----------------------------------------------------------------------
<scid gui logfile - relative path to eval/nn.bin>

Scid : setoption name EvalFile value ./eval/leela.bin
Scid : isready
Engine: Error! ./eval/leela.bin not found or wrong format
Engine: readyok

//-------------------------------------------------------------------
<scid guid with absolute path>


Scid : isready
Engine: readyok
Scid : setoption name EvalFile value /home/user/chess/engines/eval/stockfish_nnue/eval/leela.bin
Scid : isready
Engine: Error! /home/user/chess/engines/eval/stockfish_nnue/eval/leela.bin not found or wrong format
Engine: readyok
//-------------------------------------------------------------------------------------

<console from engine directory>

setoption name EvalFile value ./eval/leela.bin
info string NNUE ./eval/leela.bin found & loaded
go nodes 10000
info depth 1 seldepth 1 multipv 1 score cp 23 nodes 20 nps 20000 tbhits 0 time 1 pv d2d4
info depth 2 seldepth 2 multipv 1 score cp 28 nodes 65 nps 65000 tbhits 0 time 1 pv d2d4 g8f6

//------------------------------------------------------------------------------------------------
<Scid logfile after new game>

Scid : stop
Scid : ucinewgame
Scid : setoption name Ponder value false
Scid : isready
Engine: readyok
Scid : position startpos moves d2d4
Scid : go wtime 119401 btime 120000 winc 3000 binc 3000
Engine: info depth 1 seldepth 1 multipv 1 score cp 0 nodes 20 nps 20000 tbhits 0 time 1 pv a7a6
zullil
Posts: 6442
Joined: Tue Jan 09, 2007 12:31 am
Location: PA USA
Full name: Louis Zulli

Re: Stockfish NNUE

Post by zullil »

frankp wrote: Sun Jul 26, 2020 8:06 pm Tried a few things. None of which worked.
File not found or wrong format error.
But works in the console.
ucinewgame does not seem to cause an attempt to reload the nn.bin file.
Thanks for the help, but time for a rest.


//----------------------------------------------------------------------
<scid gui logfile - relative path to eval/nn.bin>

Scid : setoption name EvalFile value ./eval/leela.bin
Scid : isready
Engine: Error! ./eval/leela.bin not found or wrong format
Engine: readyok

//-------------------------------------------------------------------
<scid guid with absolute path>


Scid : isready
Engine: readyok
Scid : setoption name EvalFile value /home/user/chess/engines/eval/stockfish_nnue/eval/leela.bin
Scid : isready
Engine: Error! /home/user/chess/engines/eval/stockfish_nnue/eval/leela.bin not found or wrong format
Engine: readyok
//-------------------------------------------------------------------------------------

<console from engine directory>

setoption name EvalFile value ./eval/leela.bin
info string NNUE ./eval/leela.bin found & loaded
go nodes 10000
info depth 1 seldepth 1 multipv 1 score cp 23 nodes 20 nps 20000 tbhits 0 time 1 pv d2d4
info depth 2 seldepth 2 multipv 1 score cp 28 nodes 65 nps 65000 tbhits 0 time 1 pv d2d4 g8f6

//------------------------------------------------------------------------------------------------
<Scid logfile after new game>

Scid : stop
Scid : ucinewgame
Scid : setoption name Ponder value false
Scid : isready
Engine: readyok
Scid : position startpos moves d2d4
Scid : go wtime 119401 btime 120000 winc 3000 binc 3000
Engine: info depth 1 seldepth 1 multipv 1 score cp 0 nodes 20 nps 20000 tbhits 0 time 1 pv a7a6
Don't know. When you installed the engine in the GUI, did you set a working directory? I assume all paths used by the engine would be relative to that.

Don't have Scid installed, but this engine works fine in ChessX, for example. But I did need to supply both the path to the binary and a directory in which to run. Here's a bit of the config file:

Code: Select all

3\Command=/home/louis/Documents/Chess/Testing/Stockfish-NNUE/src/stockfish+nnue
3\Directory=/home/louis/Documents/Chess/Testing/Stockfish-NNUE/src/