How do you assign a NNUE file in Stockfish 12

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

Moderators: hgm, Rebel, chrisw

User avatar
reflectionofpower
Posts: 1610
Joined: Fri Mar 01, 2013 5:28 pm
Location: USA

How do you assign a NNUE file in Stockfish 12

Post by reflectionofpower »

I ask this question because I had an old one in there and then I figure when I put the new one in with the other deleted and saved it would be the new one but its the old one. Then Did something again and now the NNUE file is renamed differently but still has the NNUE extension.

Then when you go into properties for SF on the EvalFile its the old file name??
"Without change, something sleeps inside us, and seldom awakens. The sleeper must awaken." (Dune - 1984)

Lonnie
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: How do you assign a NNUE file in Stockfish 12

Post by Ferdy »

reflectionofpower wrote: Thu Jan 28, 2021 2:49 am I ask this question because I had an old one in there and then I figure when I put the new one in with the other deleted and saved it would be the new one but its the old one. Then Did something again and now the NNUE file is renamed differently but still has the NNUE extension.

Then when you go into properties for SF on the EvalFile its the old file name??
Which GUI do you use?
User avatar
reflectionofpower
Posts: 1610
Joined: Fri Mar 01, 2013 5:28 pm
Location: USA

Re: How do you assign a NNUE file in Stockfish 12

Post by reflectionofpower »

I use Deep Fritz 14 GUI
"Without change, something sleeps inside us, and seldom awakens. The sleeper must awaken." (Dune - 1984)

Lonnie
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: How do you assign a NNUE file in Stockfish 12

Post by Ferdy »

reflectionofpower wrote: Fri Jan 29, 2021 12:39 pm I use Deep Fritz 14 GUI
After changing the eval file, make sure to press the save button.

Press view->engine_output to see the eval file used by Stockfish.
User avatar
reflectionofpower
Posts: 1610
Joined: Fri Mar 01, 2013 5:28 pm
Location: USA

Re: How do you assign a NNUE file in Stockfish 12

Post by reflectionofpower »

I do that and the nnue file I put it is renamed a different filename but still NNUE extension
"Without change, something sleeps inside us, and seldom awakens. The sleeper must awaken." (Dune - 1984)

Lonnie
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: How do you assign a NNUE file in Stockfish 12

Post by Ferdy »

reflectionofpower wrote: Sun Jan 31, 2021 12:20 pm I do that and the nnue file I put it is renamed a different filename but still NNUE extension
* Record stockfish log by writing sf.log in the textbox next to "Debug Log File".
* Change the Evalfile using absolute path of your new eval file for example, c:\chess\nnue\nn.bin where nn.bin is your new eval file.
* Press save
* Press new game
* Adjust level
* Play a move
* Quit GUI
* Post the sf.log, let's see what is in there.
User avatar
reflectionofpower
Posts: 1610
Joined: Fri Mar 01, 2013 5:28 pm
Location: USA

Re: How do you assign a NNUE file in Stockfish 12

Post by reflectionofpower »

Thanks, I will try this out Wed. Going to bed and I work 10 hour days Monday & Tuesday
"Without change, something sleeps inside us, and seldom awakens. The sleeper must awaken." (Dune - 1984)

Lonnie
User avatar
reflectionofpower
Posts: 1610
Joined: Fri Mar 01, 2013 5:28 pm
Location: USA

Re: How do you assign a NNUE file in Stockfish 12

Post by reflectionofpower »

Ferdy wrote: Mon Feb 01, 2021 12:07 am
reflectionofpower wrote: Sun Jan 31, 2021 12:20 pm I do that and the nnue file I put it is renamed a different filename but still NNUE extension
* Record stockfish log by writing sf.log in the textbox next to "Debug Log File".
* Change the Evalfile using absolute path of your new eval file for example, c:\chess\nnue\nn.bin where nn.bin is your new eval file.
* Press save
* Press new game
* Adjust level
* Play a move
* Quit GUI
* Post the sf.log, let's see what is in there.

You lost me here: "Change the Evalfile using absolute path of your new eval file for example, c:\chess\nnue\nn.bin where nn.bin is your new eval file"
Where is this path. I thought putting in the NNUE file in Stockfish dir and naming it in the GUI was suffice and what's this BIN file??
"Without change, something sleeps inside us, and seldom awakens. The sleeper must awaken." (Dune - 1984)

Lonnie
carldaman
Posts: 2283
Joined: Sat Jun 02, 2012 2:13 am

Re: How do you assign a NNUE file in Stockfish 12

Post by carldaman »

You could put the nnue net (with a .nnue extension, not sure current SF can take .bin nets) anywhere and provide that path in the GUI under uci options (for example, c:\nets\mynet.nnue).
User avatar
reflectionofpower
Posts: 1610
Joined: Fri Mar 01, 2013 5:28 pm
Location: USA

Re: How do you assign a NNUE file in Stockfish 12

Post by reflectionofpower »

carldaman wrote: Thu Feb 04, 2021 12:31 am You could put the nnue net (with a .nnue extension, not sure current SF can take .bin nets) anywhere and provide that path in the GUI under uci options (for example, c:\nets\mynet.nnue).
o yeah,hmm, L try it. I know I have edited UCI options b4. let's see

This is what I am getting from the log. Weired thing I am not using nn-82215d0fd0df.nnue? I had to chop some of it out as posting have a character limit.

SF.LOG

>> position startpos moves e2e4 d7d5 e4d5 g8f6 d2d4 d8d5 c2c4 d5e4 g1e2 e7e5 b1c3
>> go infinite
>> go infinite
<< info string NNUE evaluation using nn-82215d0fd0df.nnue enabled
<< info depth 1 seldepth 1 multipv 1 score cp -61 nodes 330 nps 165000 tbhits 0 time 2 pv f8b4 d4e5
<< info depth 2 seldepth 2 multipv 1 score cp -74 nodes 448 nps 224000 tbhits 0 time 2 pv f8b4 a2a3
<< info depth 3 seldepth 3 multipv 1 score cp -43 nodes 687 nps 343500 tbhits 0 time 2 pv f8b4 h2h3 b4c3 b2c3
<< info depth 4 seldepth 4 multipv 1 score cp 13 nodes 888 nps 444000 tbhits 0 time 2 pv f8b4 d4e5 e4e5
<< info depth 5 seldepth 5 multipv 1 score cp -42 nodes 1709 nps 569666 tbhits 0 time 3 pv f8b4 c1d2 b4c3 d2c3 b8c6 d4e5
<< info depth 6 seldepth 6 multipv 1 score cp -42 nodes 2046 nps 682000 tbhits 0 time 3 pv f8b4 c1d2 b4c3 d2c3 b8c6 d4e5
<< info depth 7 seldepth 7 multipv 1 score cp 0 nodes 2283 nps 761000 tbhits 0 time 3 pv f8b4 c1d2 b4c3 d2c3 b8c6
<< info depth 8 seldepth 10 multipv 1 score cp -97 nodes 11694 nps 835285 tbhits 0 time 14 pv f8b4 c1d2 b4c3 d2c3 e5d4 d1d4 e8g8 f2f3 e4d4 e2d4
<< info depth 9 seldepth 13 multipv 1 score cp -61 nodes 12937 nps 808562 tbhits 0 time 16 pv f8b4 c1d2 b4c3 d2c3 b8c6 f2f3 e4h4 g2g3
<< info depth 10 seldepth 15 multipv 1 score cp -77 nodes 32728 nps 779238 tbhits 0 time 42 pv f8b4 c1d2 b4c3 d2c3 e5d4 d1d4 e4e6 d4e3 e6e3 f2e3

<< info depth 27 seldepth 38 multipv 1 score cp 405 nodes 27241489 nps 1234154 hashfull 221 tbhits 0 time 22073 pv c8e6 b3a3 e8c8 e1g1 d6c4 a3a4 h4e7 g3e4 c4b6 a4c2 e6c4 a2a4 c6a5 c1a3 e7e6 a3b4 d8d5 f3f4 e5f4 a1e1 c4e2 c2e2 c8b8 e4c5 e6e2 e1e2 a5c6 a4a5 b6c4 f1f4 c4d6 c5b7 b8b7 b4d6 d5d6 f4f7
<< info depth 28 currmove c8e6 currmovenumber 1
>> stop
<< info depth 28 seldepth 38 multipv 1 score cp 405 nodes 28760940 nps 1230098 hashfull 231 tbhits 0 time 23381 pv c8e6 b3a3 e8c8 e1g1 d6c4 a3a4 h4e7 g3e4 c4b6 a4c2 e6c4 a2a4 c6a5 c1a3 e7e6 a3b4 d8d5 f3f4 e5f4 a1e1 c4e2 c2e2 c8b8 e4c5 e6e2 e1e2 a5c6 a4a5 b6c4 f1f4 c4d6 c5b7 b8b7 b4d6 d5d6 f4f7
<< bestmove c8e6 ponder b3a3
>> setoption name Clear Hash
>> quit
"Without change, something sleeps inside us, and seldom awakens. The sleeper must awaken." (Dune - 1984)

Lonnie