SF-NNUE going forward...

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

Moderators: hgm, Rebel, chrisw

perejaslav
Posts: 240
Joined: Sat Mar 18, 2006 4:01 am
Location: Cold

Re: SF-NNUE going forward...

Post by perejaslav »

Ovyron wrote: Mon Jul 27, 2020 10:44 pm but people are just stopping using Leela because Leela is worse than NNUE at beating Stockfish.
people are just stopping using Leela because Leela cannot be tested in very fast time control using multithreaded mode.
marsell
Posts: 106
Joined: Tue Feb 07, 2012 11:14 am

Re: SF-NNUE going forward...

Post by marsell »

People need several expensive and power-hungry GPUs to beat Stockfish
perejaslav
Posts: 240
Joined: Sat Mar 18, 2006 4:01 am
Location: Cold

Re: SF-NNUE going forward...

Post by perejaslav »

That's true, too. I would really like to test Leela against Stockfish, but under current conditions it will take a lot of time. Besides, I don't understand how to choose the right time control so that the programs are in equal conditions.
User avatar
Ovyron
Posts: 4556
Joined: Tue Jul 03, 2007 4:30 am

Re: SF-NNUE going forward...

Post by Ovyron »

marsell wrote: Tue Jul 28, 2020 11:01 am People need several expensive and power-hungry GPUs to beat Stockfish
What is interesting is that those people got the GPUs for Leela. They still have the GPUs. The GPUs didn't just disappear.

And yet they're choosing to use their CPUs and NNUE nets because that gives them better performance (less loses, more wins). I rub shoulders with those people, and they kept complaining that Leela wasn't winning them games, and that no matter what they tried, they were still drawing their games. With NNUE they get wins and don't complain anymore...

I was really close to getting one of those GPUs, I'm just glad I never did if now I'd be dropping Leela in favor of NNUE! :mrgreen:
Raphexon
Posts: 476
Joined: Sun Mar 17, 2019 12:00 pm
Full name: Henk Drost

Re: SF-NNUE going forward...

Post by Raphexon »

Ovyron wrote: Tue Jul 28, 2020 10:22 pm
marsell wrote: Tue Jul 28, 2020 11:01 am People need several expensive and power-hungry GPUs to beat Stockfish
What is interesting is that those people got the GPUs for Leela. They still have the GPUs. The GPUs didn't just disappear.

And yet they're choosing to use their CPUs and NNUE nets because that gives them better performance (less loses, more wins). I rub shoulders with those people, and they kept complaining that Leela wasn't winning them games, and that no matter what they tried, they were still drawing their games. With NNUE they get wins and don't complain anymore...

I was really close to getting one of those GPUs, I'm just glad I never did if now I'd be dropping Leela in favor of NNUE! :mrgreen:
Has NNUE refuted a few lines yet?
User avatar
Ovyron
Posts: 4556
Joined: Tue Jul 03, 2007 4:30 am

Re: SF-NNUE going forward...

Post by Ovyron »

Raphexon wrote: Tue Jul 28, 2020 11:03 pm Has NNUE refuted a few lines yet?
Yes, there's a little opening revolution as we speak, people that haven't updated their lines have lost +70 elo points. I'm currently outperforming people in much faster hardware than mine and I'm not even using NNUE, just holding up with drawish openings that don't lose while others go down in flames.

This is very recent, since Eman Enigma 1.00 was released an started winning tourneys and people started jumping towards it, refuting opening theory still used by Stockfish dev users (mainly, out of book positions where, say, Stockfish dev depth 38 still claims 0.00, while NNUE at just depth 20 already shows 1.00 white advantage, then the white side goes on to win positions that the book claimed were fine for black, but weren't.)

NNUE is not outsearching Stockfish dev, but out-evaluating it, I used to play those 0.00 lines and get draws, now the NNUEs are killing me, I think anybody picking a great book from last week will be destroyed today when they play black (some white lines have fallen, but white still holds so NNUE isn't strong enough to break white Stockfish dev.)

Someone went and played with NNUE without book and got better performance than Stockfish dev with book, just because of those poor book likes that are being uncovered. I can't really imagine how out of opening eval will look like in 2021, but it's possible 0.00 positions of today will be 2.00 by then :shock:
Zenmastur
Posts: 919
Joined: Sat May 31, 2014 8:28 am

Re: SF-NNUE going forward...

Post by Zenmastur »

Ovyron wrote: Wed Jul 29, 2020 12:32 am
Raphexon wrote: Tue Jul 28, 2020 11:03 pm Has NNUE refuted a few lines yet?
Yes, there's a little opening revolution as we speak, people that haven't updated their lines have lost +70 elo points. I'm currently outperforming people in much faster hardware than mine and I'm not even using NNUE, just holding up with drawish openings that don't lose while others go down in flames.

This is very recent, since Eman Enigma 1.00 was released an started winning tourneys and people started jumping towards it, refuting opening theory still used by Stockfish dev users (mainly, out of book positions where, say, Stockfish dev depth 38 still claims 0.00, while NNUE at just depth 20 already shows 1.00 white advantage, then the white side goes on to win positions that the book claimed were fine for black, but weren't.)

NNUE is not outsearching Stockfish dev, but out-evaluating it, I used to play those 0.00 lines and get draws, now the NNUEs are killing me, I think anybody picking a great book from last week will be destroyed today when they play black (some white lines have fallen, but white still holds so NNUE isn't strong enough to break white Stockfish dev.)

Someone went and played with NNUE without book and got better performance than Stockfish dev with book, just because of those poor book likes that are being uncovered. I can't really imagine how out of opening eval will look like in 2021, but it's possible 0.00 positions of today will be 2.00 by then :shock:
I'm going through several opening books I have for computer play. Many of the lines give advantage to one side or another in order to get a non-book position. It seems that a lot of the lines given may be busted by SF-NNUE. I'm having to delete about 5% of the lines because they are either close to lost or ARE completely lost. Rather surprising the number of lines I'm being forced to remove loosing.

I was expecting to lose some lines, mostly the longer ones. I wasn't expecting to lose so many 4-move lines. I can do the short ones manually, but there are way too many long ones to do this way.
Only 2 defining forces have ever offered to die for you.....Jesus Christ and the American Soldier. One died for your soul, the other for your freedom.
User avatar
Ovyron
Posts: 4556
Joined: Tue Jul 03, 2007 4:30 am

Re: SF-NNUE going forward...

Post by Ovyron »

I think this game showcases the shift. White is regular Stockfish in much bigger hardware than mine. Black is NNUE with the slow machine with a bad out-of-book opening position:

[pgn][Event "Rated game, 5 min"]
[Site "Engine Room"]
[Date "2020.07.28"]
[White "Leluzechois, Stockfish 170720 64"]
[Black "Ulycrom, Chi-chi+NNUE"]
[Result "1/2-1/2"]
[ECO "E12"]
[WhiteElo "2629"]
[BlackElo "2539"]
[Annotator "2.04;1.69"]
[PlyCount "292"]
[EventDate "2020.07.28"]
[SourceTitle "playchess.com"]
[TimeControl "300"]

{Stockfish 170720 64 POPCNT (64 threads): 52.7 plies; 78,671kN/s AMD Ryzen
Threadripper 2990WX 32-Core Processor 3500MHz, (32 cores, 64 threads), 347 MB}
1. c4 {B 0} c5 {-0.05/1 0} 2. Nf3 {B 0} Nf6 {-0.05/1 1} 3. Nc3 {B 0} d5 {
-0.05/1 0} 4. cxd5 {B 0} Nxd5 {-0.05/1 0} 5. d4 {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 90. Rc3 {1.66/40
2 (Be2)} Rc8 {0.76/23 3 (Tb8-b2+)} 91. Rc2 {1.56/40 4 (Kh3)} Rb8 {0.45/20 1
(Rf6-g7)} 92. Ra2 {1.56/44 3 (Be2)} Rb4 {0.39/20 1 (Tb8-c8)} 93. Bf1 {1.56/38 2
} Rb7 {0.36/23 0 (Tb4-b3)} 94. Ra3 {1.56/43 2 (Ra4)} Rb2+ {0.48/24 1} 95. Kf3 {
1.56/42 0 (Kh3)} Rb1 {0.49/24 1} 96. Bh3 {1.56/40 0 (Be2)} Rg1 {0.49/31 2
(Tb1-b5)} 97. Kf2 {1.56/46 1 (Re3)} Rc1 {0.49/30 1 (Tg1-d1)} 98. g4 {1.56/44 2}
hxg4 {0.53/30 0} 99. Bxg4 {1.56/51 2} Rh1 {0.53/33 0 (Rf6-e7)} 100. Bh3 {
1.56/46 2} Rh2+ {0.53/34 0 (Th1-d1)} 101. Kg3 {1.56/50 1} Rb2 {0.53/32 0
(Th2-c2)} 102. Rc3 {1.56/47 2 (Bg2)} Rb1 {0.53/31 1 (Rf6-g7)} 103. Kg4 {
1.56/49 1 (Re3)} Kg7 {0.53/33 1} 104. Bg2 {1.56/50 0} Rb4 {0.53/33 0} 105. Rc5
{1.56/50 1 (Kg3)} Rb3 {0.53/29 1 (Tb4-b2)} 106. Bf3 {1.56/50 1} Ra3 {0.52/27 0
(Tb3-b1)} 107. Rc7 {1.56/50 1} Kf6 {0.53/29 0 (Ta3-a1)} 108. Be2 {1.56/48 1}
Kg7 {0.53/30 4 (Ta3-b3)} 109. Bb5 {1.56/52 1} Ra5 {0.53/31 0 (Rg7-f8)} 110. Be8
{1.56/51 1 (Bc4)} Rf5 {0.53/32 1} 111. Ba4 {1.56/55 0 (Rb7)} e5 {0.21/21 1
(Tf5-a5)} 112. fxe5 {1.47/47 1} Rxe5 {0.18/28 0} 113. Bb3 {1.47/49 0} Rf5 {
0.18/30 0} 114. Bc4 {1.37/47 1 (Be6)} Kg8 {0.18/32 1 (Tf5-f6)} 115. Bd3 {
1.28/51 1 (Rb7)} Re5 {0.18/27 1 (Tf5-a5)} 116. Bc4 {1.19/166 7} Rf5 {0.18/42 0}
117. Kh3 {1.19/50 0 (Rb7)} Kg7 {0.18/30 1} 118. Be6 {1.19/54 0 (Kg3)} Rf3+ {
0.18/35 0 (Tf5-f4)} 119. Kg4 {1.18/52 2 (Kg2)} Rf6 {0.18/36 1 (Tf3-f1)} 120.
Bc4 {1.18/47 1} Kg8 {0.18/41 0 (Tf6-f2)} 121. Kg3 {1.09/48 1 (Rb7)} Rf5 {
0.18/33 0 (Rg8-g7)} 122. Bd3 {1.09/52 1 (Bb3)} Re5 {0.18/34 0 (Tf5-a5)} 123.
Rd7 {1.09/51 1 (Kg4)} Kf8 {0.09/26 0 (Te5-c5)} 124. Bc2 {1.09/49 1 (Kg4)} Re1 {
0.09/17 1 (Te5-e3+)} 125. Bd1 {1.09/46 2 (Rd4)} Re4 {0.17/24 0 (Te1-g1+)} 126.
Bf3 {1.00/46 1 (Rc7)} Re7 {0.17/26 1 (Te4-a4)} 127. Rd8+ {1.00/43 1 (Rd4)} Kg7
{0.16/30 1} 128. Rd4 {1.00/49 0 (Rc8)} Rc7 {0.16/29 1 (Te7-a7)} 129. Rd3 {
1.00/48 1 (Bd1)} f5 {0.06/25 1 (Tc7-a7)} 130. Rd4 {1.00/46 1} Kh6 {0.00/26 0
(Tc7-c1)} 131. Rd6 {0.91/45 1} Rc1 {0.00/27 0} 132. Rb6 {0.91/49 0 (Ra6)} Kg7 {
0.00/28 1} 133. Kf4 {0.91/51 0 (Ra6)} Rf1 {0.00/28 1 (Rg7-h6)} 134. Rc6 {
0.82/51 1 (Ra6)} Rb1 {0.00/31 0 (Tf1-g1)} 135. Rc4 {0.73/48 1 Ulycrom,Chi-chi
offers a draw} Kh6 {0.00/36 0} 136. Rd4 {0.73/47 0} Rb6 {0.00/37 0 (Tb1-c1)}
137. Ra4 {0.64/49 1 (Bd1)} Rb3 {0.00/33 0} 138. Rd4 {0.54/47 0} Rb6 {0.00/35 0
(Tb3-c3)} 139. Ra4 {0.45/44 1 (Bd1)} Rb3 {0.00/28 0} 140. Rc4 {0.45/34 0 (Ra6)}
Rb6 {0.00/29 0 (Tb3-d3)} 141. Rd4 {0.09/37 1} Rb1 {0.00/35 0 (Tb6-b3)} 142. Bd1
{0.00/42 1} Rb6 {0.00/37 0} 143. Bf3 {0.00/56 1 (Rd7)} Rb3 {0.00/30 0} 144. Rd8
{0.00/37 0 (Bd1)} Rb6 {0.00/28 0 (Tb3-b4+)} 145. Rh8+ {0.00/37 1 (Rc8)} Kg7 {
0.00/1 0} 146. Ra8 {0.00/43 0 (Rd8)} Rb3 {0.00/25 0 (Rg7-h6)} 1/2-1/2[/pgn]

Stockfish is reaching much higher depths with outstanding eval and can't win. I think I'd have lost this game if I had hardware as fast as my opponent's but Stockfish dev. Using NNUE is like playing with software from the future.
Dann Corbit
Posts: 12537
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: SF-NNUE going forward...

Post by Dann Corbit »

Ovyron wrote: Tue Jul 28, 2020 10:22 pm
marsell wrote: Tue Jul 28, 2020 11:01 am People need several expensive and power-hungry GPUs to beat Stockfish
What is interesting is that those people got the GPUs for Leela. They still have the GPUs. The GPUs didn't just disappear.
GPUs are marvelous, incredible things. I bought GPUs long before I found out they can be useful for chess. I have GPUs in all of my machines and boxes of GPUs besides.

You can test Mersenne Prime candidates.
You can fold proteins and cure diseases.
You can look for gravitational waves
It's not a case of what can you do with a GPU, it's what can't you do. I guess you can even stop a herd of stampeding Yak with GPUs.

The uses are endless. I think GPUs are the most fabulous thing (hardware-wise) on the surface of the earth. I can't wait to buy some more and some really smoking hot ones are just around the corner
Taking ideas is not a vice, it is a virtue. We have another word for this. It is called learning.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
User avatar
Ovyron
Posts: 4556
Joined: Tue Jul 03, 2007 4:30 am

Re: SF-NNUE going forward...

Post by Ovyron »

Dann Corbit wrote: Wed Jul 29, 2020 7:54 am It's not a case of what can you do with a GPU, it's what can't you do.
Well, I can't run Leela on my GPU. It's NVIDIA, but from before they implemented CUDA. And I'm on Windows 8.1 so their DirectX 12 solution doesn't work, and the CPU Leela I can run is laughably bad.

So on all accounts NNUE is a winner for me.