Stockfish network tuning

Discussion of chess software programming and technical issues.

Moderator: Ras

jdart
Posts: 4398
Joined: Fri Mar 10, 2006 5:23 am
Location: http://www.arasanchess.org

Stockfish network tuning

Post by jdart »

Not being deeply plugged into the project, I'm having a little hard time understanding what Stockfish has been doing for network tuning these days.

I hear it is now using Lc0 data - I guess this is Lc0 self-play? t seems the Lc0 project is generating copious data for its own tuning needs. How is this used by SF? Does it tune on game result, or eval or both? What size data set is it tuned on? (Anyone can do their own network tuning, but I guess I am asking about how commonly network updates in the official branch are made).
dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: Stockfish network tuning

Post by dangi12012 »

Best you ask them on their discord!
They are really nice and have a special questions channel.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
connor_mcmonigle
Posts: 544
Joined: Sun Sep 06, 2020 4:40 am
Full name: Connor McMonigle

Re: Stockfish network tuning

Post by connor_mcmonigle »

https://tests.stockfishchess.org/nns
Here's a list of all networks uploaded to fishtest with networks passing SPRT highlighted in green which should give some idea of the frequency at which the default network is updated. Alternatively, you can check the commit history to see when the default network is updated. This might be misleading though as many of the networks tested correspond to SPSA tunes on top of existing networks.
Sopel
Posts: 391
Joined: Tue Oct 08, 2019 11:39 pm
Full name: Tomasz Sobczyk

Re: Stockfish network tuning

Post by Sopel »

jdart wrote: Mon Dec 20, 2021 1:42 am I hear it is now using Lc0 data - I guess this is Lc0 self-play?
yes
t seems the Lc0 project is generating copious data for its own tuning needs. How is this used by SF? Does it tune on game result, or eval or both?
Recently pretty much purely on eval, since we started skipping positions based on how close the eval is to the result (the less likely the result is from the current eval the higher chance to skip a position). Before that the best was around 0.8 * eval + .2 * result.
what size data set is it tuned on?
Around 10B-100B positions. Depending on how many datasets you want to throw at it. You can get good results with around 10-20B.
(Anyone can do their own network tuning, but I guess I am asking about how commonly network updates in the official branch are made).
Very irregularly.
dangi12012 wrote:No one wants to touch anything you have posted. That proves you now have negative reputations since everyone knows already you are a forum troll.

Maybe you copied your stockfish commits from someone else too?
I will look into that.
dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: Stockfish network tuning

Post by dangi12012 »

Sopel wrote: Mon Dec 20, 2021 11:03 am
jdart wrote: Mon Dec 20, 2021 1:42 am I hear it is now using Lc0 data - I guess this is Lc0 self-play?
yes
t seems the Lc0 project is generating copious data for its own tuning needs. How is this used by SF? Does it tune on game result, or eval or both?
Recently pretty much purely on eval, since we started skipping positions based on how close the eval is to the result (the less likely the result is from the current eval the higher chance to skip a position). Before that the best was around 0.8 * eval + .2 * result.
what size data set is it tuned on?
Around 10B-100B positions. Depending on how many datasets you want to throw at it. You can get good results with around 10-20B.
(Anyone can do their own network tuning, but I guess I am asking about how commonly network updates in the official branch are made).
Very irregularly.
Where is the source for your wild claims?
This guy sopel does make up stuff 99% of the time so - take that with a big chunk of salt since he is a known forum troll here..
Without URLS to the actual source you shouldnt believe sopel.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
Guenther
Posts: 4718
Joined: Wed Oct 01, 2008 6:33 am
Location: Regensburg, Germany
Full name: Guenther Simon

Re: Stockfish network tuning

Post by Guenther »

dangi12012 wrote: Mon Dec 20, 2021 12:40 pm
Sopel wrote: Mon Dec 20, 2021 11:03 am
jdart wrote: Mon Dec 20, 2021 1:42 am I hear it is now using Lc0 data - I guess this is Lc0 self-play?
yes
t seems the Lc0 project is generating copious data for its own tuning needs. How is this used by SF? Does it tune on game result, or eval or both?
Recently pretty much purely on eval, since we started skipping positions based on how close the eval is to the result (the less likely the result is from the current eval the higher chance to skip a position). Before that the best was around 0.8 * eval + .2 * result.
what size data set is it tuned on?
Around 10B-100B positions. Depending on how many datasets you want to throw at it. You can get good results with around 10-20B.
(Anyone can do their own network tuning, but I guess I am asking about how commonly network updates in the official branch are made).
Very irregularly.
Where is the source for your wild claims?
This guy sopel does make up stuff 99% of the time so - take that with a big chunk of salt since he is a known forum troll here..
Without URLS to the actual source you shouldnt believe sopel.
The one forum troll I see here is always you the giganut! Stay out of threads you have no clue about and don't stalk sopel anymore.
You are endlessly pestering the programmers section... ignored by most of all here already.
https://rwbc-chess.de

[Trolls n'existent pas...]
ChickenLogic
Posts: 154
Joined: Sun Jan 20, 2019 11:23 am
Full name: kek w

Re: Stockfish network tuning

Post by ChickenLogic »

dangi12012 wrote: Mon Dec 20, 2021 12:40 pm
Sopel wrote: Mon Dec 20, 2021 11:03 am
jdart wrote: Mon Dec 20, 2021 1:42 am I hear it is now using Lc0 data - I guess this is Lc0 self-play?
yes
t seems the Lc0 project is generating copious data for its own tuning needs. How is this used by SF? Does it tune on game result, or eval or both?
Recently pretty much purely on eval, since we started skipping positions based on how close the eval is to the result (the less likely the result is from the current eval the higher chance to skip a position). Before that the best was around 0.8 * eval + .2 * result.
what size data set is it tuned on?
Around 10B-100B positions. Depending on how many datasets you want to throw at it. You can get good results with around 10-20B.
(Anyone can do their own network tuning, but I guess I am asking about how commonly network updates in the official branch are made).
Very irregularly.
Where is the source for your wild claims?
This guy sopel does make up stuff 99% of the time so - take that with a big chunk of salt since he is a known forum troll here..
Without URLS to the actual source you shouldnt believe sopel.
Yeah better not believe the guy who was responsible for every change of nnue architecture in Stockfish (after the initial halfkp) and documents all the experiments he does in detail. Just about 500 pages long: https://docs.google.com/document/d/1gTl ... 6jvNqqMkAY

I seriously don't get why you're still allowed to post in this forum. Willfully spreading misinformation just because you dislike Sopel. How about not being an a**hole?
dangi12012
Posts: 1062
Joined: Tue Apr 28, 2020 10:03 pm
Full name: Daniel Infuehr

Re: Stockfish network tuning

Post by dangi12012 »

ChickenLogic wrote: Mon Dec 20, 2021 2:39 pm
Look all I did was ask for a source for his wild random numbers he quoted. He did not provide them so for. Sopel likes to hate on multiple other people on hundreds of other threads. This is very discouraging for people who are new that the first post that comes is from a troll like sopel who likes to hate on things.

For example he is still claiming that opening books are totally useless:
Sopel wrote: Fri Dec 17, 2021 2:18 am Who in their right mind even needs to query ALL the games for a position AT ONCE? This is trying to optimize something that no one will ever use, while completely removing the possibility of partial queries.
While this is literally the core of chess databases...

No one should take anything he says seriously. Look at his posting history. 99% negative hating on others. He is making claims. He should back them up. Its really that simple.
Worlds-fastest-Bitboard-Chess-Movegenerator
Daniel Inführ - Software Developer
ChickenLogic
Posts: 154
Joined: Sun Jan 20, 2019 11:23 am
Full name: kek w

Re: Stockfish network tuning

Post by ChickenLogic »

dangi12012 wrote: Mon Dec 20, 2021 2:52 pm
ChickenLogic wrote: Mon Dec 20, 2021 2:39 pm
Look all I did was ask for a source for his wild random numbers he quoted. He did not provide them so for. Sopel likes to hate on multiple other people on hundreds of other threads. This is very discouraging for people who are new that the first post that comes is from a troll like sopel who likes to hate on things.

For example he is still claiming that opening books are totally useless:
Sopel wrote: Fri Dec 17, 2021 2:18 am Who in their right mind even needs to query ALL the games for a position AT ONCE? This is trying to optimize something that no one will ever use, while completely removing the possibility of partial queries.
While this is literally the core of chess databases...

No one should take anything he says seriously. Look at his posting history. 99% negative hating on others. He is making claims. He should back them up. Its really that simple.
Please back up your wild claim that 99% of his posts are just hating on other people. So far I didn't see any back up of this claim. You should back up your claims or you're just a troll. Thanks and good luck reading all the messages he ever wrote. It should be really simple.
User avatar
Rebel
Posts: 7299
Joined: Thu Aug 18, 2011 12:04 pm
Full name: Ed Schröder

Re: Stockfish network tuning

Post by Rebel »

dangi12012 wrote: Mon Dec 20, 2021 2:52 pm Look all I did was ask for a source for his wild random numbers he quoted.
You did more than that, you out of the blue on a neutral post insulted him.
dangi12012 wrote: Mon Dec 20, 2021 2:52 pm He did not provide them so for.
No need, known by insiders.
dangi12012 wrote: Mon Dec 20, 2021 2:52 pm Sopel likes to hate on multiple other people on hundreds of other threads. This is very discouraging for people who are new that the first post that comes is from a troll like sopel who likes to hate on things.
Sopel, Sopel, Sopel, go away man, find yourself another forum.
90% of coding is debugging, the other 10% is writing bugs.