Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache small net using Finny w/ psqtOnly support #5194

Closed
wants to merge 2 commits into from

Conversation

mstembera
Copy link
Contributor

Caching the small net the same as the big net allows them to share the same code path and completely removes update_accumulator_refresh().

STC https://tests.stockfishchess.org/tests/view/662bfb5ed46f72253dcfed85
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 151712 W: 39252 L: 39158 D: 73302
Ptnml(0-2): 565, 17474, 39683, 17570, 564

No functional change
bench: 1836777

No functional change
bench: 1836777
Copy link

github-actions bot commented Apr 27, 2024

clang-format 17 needs to be run on this PR.
If you do not have clang-format installed, the maintainer will run it when merging.
For the exact version please see https://packages.ubuntu.com/mantic/clang-format-17.

(execution 8869260142 / attempt 1)

Move remove before add to match other parts of the code.
No functional change
bench: 1836777
@Disservin Disservin added the to be merged Will be merged shortly label Apr 28, 2024
@Disservin Disservin closed this in 940a3a7 Apr 28, 2024
Disservin pushed a commit that referenced this pull request Apr 28, 2024
Combine remove and add in update_accumulator_refresh_cache().
Move remove before add to match other parts of the code.

STC:
https://tests.stockfishchess.org/tests/view/662d96dc6115ff6764c7f4ca
LLR: 2.95 (-2.94,2.94) <0.00,2.00>
Total: 364032 W: 94421 L: 93624 D: 175987
Ptnml(0-2): 1261, 41983, 94811, 42620, 1341

closes #5194

Bench: 1836777
Disservin pushed a commit that referenced this pull request May 1, 2024
STC:
https://tests.stockfishchess.org/tests/view/663068913a05f1bf7a511dc2
LLR: 2.98 (-2.94,2.94) <-1.75,0.25>
Total: 70304 W: 18211 L: 18026 D: 34067
Ptnml(0-2): 232, 7966, 18582, 8129, 243

1) Fixes a bug introduced in
   #5194. Only one
   psqtOnly flag was used for two perspectives which was causing
   wrong entries to be cleared and marked.
2) The finny caches should be cleared like histories and not at the
   start of every search.

closes #5203

No functional change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-functional-change simplification A simplification patch to be merged Will be merged shortly
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants