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

Move replica axis to front everywhere #1877

Merged
merged 1 commit into from
Dec 8, 2023
Merged

Conversation

APJansen
Copy link
Collaborator

@APJansen APJansen commented Dec 4, 2023

This just puts the replica axis first wherever it wasn't yet.

It gives identical results, to the last digit, on:

  • Basic runcard
  • feature scaling runcard
  • flavour basis
  • qed

In the MSR normalization layer, I do transpose them back to their old shape just because having the flavor axis first there makes for cleaner code. I think the performance hit there is negligible, but this can always be optimized later on.

Base automatically changed from multi-dense-logistics to master December 4, 2023 15:17
@APJansen APJansen added n3fit Issues and PRs related to n3fit run-fit-bot Starts fit bot from a PR. labels Dec 4, 2023
@APJansen APJansen marked this pull request as ready for review December 4, 2023 18:16
@APJansen APJansen mentioned this pull request Dec 4, 2023
Copy link
Member

@scarlehoff scarlehoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fairly harmless to me... if nothing crashed and you tested it with 1 and more than 1 replicas...

n3fit/src/n3fit/layers/DY.py Show resolved Hide resolved
n3fit/src/n3fit/layers/rotations.py Show resolved Hide resolved
@scarlehoff
Copy link
Member

It gives identical results, to the last digit, on:

Could you run the qed example as well? (since it is the other one you did modify). But again, if it didn't crash it is probably ok.

Copy link

github-actions bot commented Dec 4, 2023

Greetings from your nice fit 🤖 !
I have good news for you, I just finished my tasks:

Check the report carefully, and please buy me a ☕ , or better, a GPU 😉!

@APJansen
Copy link
Collaborator Author

APJansen commented Dec 5, 2023

I tested with 1 and 3 replicas, printing at every epoch for the first 200 and all digits match.
I also checked the qed one, the same holds there (on snellius since locally I still don't have an updated eko).

It seems that in the fitbot there are small differences though, perhaps again differences were always there but not visible at only 200 epochs.

@scarlehoff
Copy link
Member

The fitbot needs to be updated with the latest master though

@APJansen
Copy link
Collaborator Author

APJansen commented Dec 5, 2023

Ah ok, that explains it. do you want to wait for that?

@RoyStegeman
Copy link
Member

RoyStegeman commented Dec 7, 2023

I did a manual comparison to the fit produced for #1883, and they're not exactly the same: https://vp.nnpdf.science/1vkMFHCmQd63Pnvwg2V23A==/

The dependencies did change a bit, but I didn't expect that would be in a way that would impact the result - I think it's worth rebasing this on top of #1883 and rerunning the fitbot, just to be sure.

I had a look at the changes and they indeed seem harmless, but I would be more comfortable if that could be confirmed in a test.

@APJansen APJansen added run-fit-bot Starts fit bot from a PR. and removed run-fit-bot Starts fit bot from a PR. labels Dec 8, 2023
@APJansen
Copy link
Collaborator Author

APJansen commented Dec 8, 2023

Thanks for the check, will do!

Copy link

github-actions bot commented Dec 8, 2023

Greetings from your nice fit 🤖 !
I have good news for you, I just finished my tasks:

Check the report carefully, and please buy me a ☕ , or better, a GPU 😉!

Copy link
Member

@RoyStegeman RoyStegeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@APJansen
Copy link
Collaborator Author

APJansen commented Dec 8, 2023

Great, are you ok to merge as well @scarlehoff?

@scarlehoff scarlehoff merged commit 8cbe0cf into master Dec 8, 2023
5 checks passed
@scarlehoff scarlehoff deleted the replica-axis-first branch December 8, 2023 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
escience n3fit Issues and PRs related to n3fit Refactoring run-fit-bot Starts fit bot from a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants