-
Notifications
You must be signed in to change notification settings - Fork 258
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
Add tests for hydra gemnet OC scaling factor generation and loading; Raise error on fail to load scaling factors #831
Conversation
Codecov ReportAttention: Patch coverage is
|
….com:FAIR-Chem/fairchem into add_gemnet_scaling_factors_support_for_hydra
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My main concern that the change to fit.py would break scaling factors for non-hydra models
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks Misko!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Currently gemnet OC has a test to generate scaling factors and load them.
This adds additional tests for gemnet OC hydra configuration and also by default throws a value error if scaling factors are specified through 'scale_file' but are actually missing for some layers. This way we wont accidentally silently fail to load scaling factors.
Throwing a value error on failure to load can be suppressed by passing 'raise_on_scale_load_error=False' in the model config.