SF NNUE absolutely smokes on AMD
Moderator: Ras
-
Dann Corbit
- Posts: 12827
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
SF NNUE absolutely smokes on AMD
I just can't believe how well it runs. I put the two most recent Sergio nets for NNUE in the archive. I built it from the bleeding edge source.
It runs at SF speed on my AMD threadripper. At first, I thought I must have forgotten to connect the net, but no. The net is working,
Slack-jawed, buggy-eyed wowsers.
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.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
zullil
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: SF NNUE absolutely smokes on AMD
Seems hard to believe. I just built from the nnue-player-wip branch at the Stockfish repo. I ran bench with Use NNUE = false (the default) and then again with Use NNUE = true (and a recent sergio nn). The second bench took about twice as long as the first.Dann Corbit wrote: ↑Thu Jul 30, 2020 8:44 pm
I just can't believe how well it runs. I put the two most recent Sergio nets for NNUE in the archive. I built it from the bleeding edge source.
It runs at SF speed on my AMD threadripper. At first, I thought I must have forgotten to connect the net, but no. The net is working,
Slack-jawed, buggy-eyed wowsers.
Intel(R) Xeon(R) CPU E5-2687W v3 @ 3.10GHz
Linux 4.15.0-112-generic (Ubuntu 18.04.4 LTS)
What special instructions would make your AMD binary so much faster? Mine has bmi2 avx2
-
towforce
- Posts: 12795
- Joined: Thu Mar 09, 2006 12:57 am
- Location: Birmingham UK
- Full name: Graham Laight
Re: SF NNUE absolutely smokes on AMD
I've heard someone who bought a ThreadRipper CPU complain that people who write software should use more threading, because now that processor is in his PC, it doesn't have enough processing to do! 
Human chess is partly about tactics and strategy, but mostly about memory
-
Dann Corbit
- Posts: 12827
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: SF NNUE absolutely smokes on AMD
OK, the mystery is solved.zullil wrote: ↑Thu Jul 30, 2020 9:13 pmSeems hard to believe. I just built from the nnue-player-wip branch at the Stockfish repo. I ran bench with Use NNUE = false (the default) and then again with Use NNUE = true (and a recent sergio nn). The second bench took about twice as long as the first.Dann Corbit wrote: ↑Thu Jul 30, 2020 8:44 pm
I just can't believe how well it runs. I put the two most recent Sergio nets for NNUE in the archive. I built it from the bleeding edge source.
It runs at SF speed on my AMD threadripper. At first, I thought I must have forgotten to connect the net, but no. The net is working,
Slack-jawed, buggy-eyed wowsers.
Intel(R) Xeon(R) CPU E5-2687W v3 @ 3.10GHz
Linux 4.15.0-112-generic (Ubuntu 18.04.4 LTS)
What special instructions would make your AMD binary so much faster? Mine has bmi2 avx2
I was running as ordinary SF, and I based the "net is being used" on correct eval even from short searches.
I will run again with the checkbox checked and see how it goes.
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.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
Dann Corbit
- Posts: 12827
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: SF NNUE absolutely smokes on AMD
OK, now that I am actually running the nnue version, I am getting 60% of Stockfish speed.
Still pretty good, but it was too good to be true.
Still pretty good, but it was too good to be true.
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.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.
-
zullil
- Posts: 6442
- Joined: Tue Jan 09, 2007 12:31 am
- Location: PA USA
- Full name: Louis Zulli
Re: SF NNUE absolutely smokes on AMD
Dann Corbit wrote: ↑Thu Jul 30, 2020 9:34 pm OK, now that I am actually running the nnue version, I am getting 60% of Stockfish speed.
![]()
Still pretty good, but it was too good to be true.
-
Zenmastur
- Posts: 919
- Joined: Sat May 31, 2014 8:28 am
Re: SF NNUE absolutely smokes on AMD
I did basically the same thing the other day. I was wondering which was the fastest EXE version for threadripper, so I started testing them all against the new PO versions. The version that was the fastest was the no.nnue version. Unfortunately it doesn't use a net, just straight SF. LOLzullil wrote: ↑Thu Jul 30, 2020 9:52 pmDann Corbit wrote: ↑Thu Jul 30, 2020 9:34 pm OK, now that I am actually running the nnue version, I am getting 60% of Stockfish speed.
![]()
Still pretty good, but it was too good to be true.![]()
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.
-
Ovyron
- Posts: 4562
- Joined: Tue Jul 03, 2007 4:30 am
Re: SF NNUE absolutely smokes on AMD
What I did when compiling NNUE for the first time was forgetting to set CPUs to 4, so I thought my compile was running at 1/10 of the speed that it should, and spent 2 days looking for a solution. Which was... to set threads=4 instead of default threads=1!Zenmastur wrote: ↑Thu Jul 30, 2020 11:13 pmI did basically the same thing the other day. I was wondering which was the fastest EXE version for threadripper, so I started testing them all against the new PO versions. The version that was the fastest was the no.nnue version. Unfortunately it doesn't use a net, just straight SF. LOLzullil wrote: ↑Thu Jul 30, 2020 9:52 pmDann Corbit wrote: ↑Thu Jul 30, 2020 9:34 pm OK, now that I am actually running the nnue version, I am getting 60% of Stockfish speed.
![]()
Still pretty good, but it was too good to be true.![]()
![]()
![]()
![]()
![]()
-
towforce
- Posts: 12795
- Joined: Thu Mar 09, 2006 12:57 am
- Location: Birmingham UK
- Full name: Graham Laight
Re: SF NNUE absolutely smokes on AMD
I would guess that if, like Dann, you have a CPU like ThreadRipper, the optimal setting for threads would be higher than 4.
Human chess is partly about tactics and strategy, but mostly about memory
-
Dann Corbit
- Posts: 12827
- Joined: Wed Mar 08, 2006 8:57 pm
- Location: Redmond, WA USA
Re: SF NNUE absolutely smokes on AMD
I am running 60 threads.
That way, I can run three threads and 2 GPUs for LC0 at the same time, and have one thread left over for whatever.
That way, I can run three threads and 2 GPUs for LC0 at the same time, and have one thread left over for whatever.
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.
But sharing ideas is an even greater virtue. We have another word for this. It is called teaching.