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

small NN !? #153

Open
tissatussa opened this issue Oct 9, 2024 · 3 comments
Open

small NN !? #153

tissatussa opened this issue Oct 9, 2024 · 3 comments

Comments

@tissatussa
Copy link

i'm wondering : the .jar of Calvin v4.3.0 is only 580 Kb but it contains a NN !? How is this possible ? I know some other NN engines with small file size, but your .jar file beats them all ..

@kelseyde
Copy link
Owner

Hi!

I guess in comparison to other engines my net is very small (512 hidden layer neurons, no input or output buckets).

The main reason 4.3.0 is such a small jar though, is that I removed all external dependencies (before I was using Jackson for json parsing the config params, and Lombok for reducing boilerplate code). So the release is really just the application + the nnue file.

You can see that by comparing with 4.2.0, which was a whopping 7.5MB...

Anyway thanks for showing an interest in Calvin!

@tissatussa
Copy link
Author

..the release is really just the application + the nnue file

so, i guess the NN will be around 400 Kb and that's impressive to reach 3200+ rating ! If ever a tournament will be arranged for NN engines below 1 Mb file size, Calvin will be at the top !

You can see that by comparing with 4.2.0, which was a whopping 7.5MB...

yes, that's the reason i created this Issue!

@kelseyde
Copy link
Owner

I didn't realise that Calvin was an outlier in that regard, interesting to know 😄

I guess it will change soon as I want to increase my NN size further, but I'm finding as the net grows it is getting prohibitively slow. Java can't really compete with all the C++/Rust engines when it comes to speed...

The strongest Java engine Serendipity has a huge net and is still hundreds of elo stronger than Calvin though, so there must be a way!

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

No branches or pull requests

2 participants