-
Notifications
You must be signed in to change notification settings - Fork 264
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
Rank2 tensor head #792
Rank2 tensor head #792
Conversation
Codecov ReportAttention: Patch coverage is
|
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.
This looks great! No stress, LGTM! 🚀
I ran comparisons between the original rank2 stress tensor code that @lbluque has and compared it to the Hydra equivalent model. The results initially were different, however we traced the issue down to a difference in using amp in the head. This PR moves all heads to by default be used without AMP. |
@@ -189,6 +189,10 @@ def no_weight_decay(self) -> list: | |||
|
|||
|
|||
class HeadInterface(metaclass=ABCMeta): | |||
@property | |||
def use_amp(self): | |||
return False |
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.
should the default be to not use it?
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.
When i talked to @wood-b he mentioned that we should have it off by default, it shouldnt change much memory usage and from our experiments it only helps with performance metrics
This PR adds a rank 2 tensor head for equiformerV2.
It is based on the implementations in the stress_trainer branch:
https://github.com/FAIR-Chem/fairchem/blob/stress_trainer/ocpmodels/models/utils/outer_block.py
TODO