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

Output some basic info about the networks used #5193

Closed
wants to merge 1 commit into from

Conversation

vondele
Copy link
Member

@vondele vondele commented Apr 27, 2024

Adds size in memory as well as layer sizes as in

info string NNUE evaluation using nn-ae6a388e4a1a.nnue (132MiB, 22528 x 3072 x 15 x 32 x 1) 
info string NNUE evaluation using nn-baff1ede1f90.nnue (6MiB, 22528 x 128 x 15 x 32 x 1)

For example, the size in MiB is useful to keep the fishtest memory sizes up-to-date, the L1-L3 sizes give a useful hint about the architecture used.

No functional change

@ddobbelaere
Copy link
Contributor

Good idea. Personally I find the multiplications a bit misleading, as they strictly only make sense layer per layer (to denote the number of weights). The tuple notation (22528, 3072, 15, 32, 1) that denotes the sequence of number of input, hidden and output neurons like I saw elsewhere feels better IMHO.

@vondele
Copy link
Member Author

vondele commented Apr 27, 2024

updated to

info string NNUE evaluation using nn-ae6a388e4a1a.nnue (132MiB, (22528, 3072, 15, 32, 1))
info string NNUE evaluation using nn-baff1ede1f90.nnue (6MiB, (22528, 128, 15, 32, 1))

Adds size in memory as well as layer sizes as in

info string NNUE evaluation using nn-ae6a388e4a1a.nnue (132MiB, 22528 x 3072 x 15 x 32 x 1)
info string NNUE evaluation using nn-baff1ede1f90.nnue (6MiB, 22528 x 128 x 15 x 32 x 1)

For example, the size in MiB is useful to keep the fishtest memory sizes up-to-date,
the L1-L3 sizes give a useful hint about the architecture used.

No functional change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants