-
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
EquiformerV2 + DeNS model and trainer #880
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
|
Hey, |
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.
Please see my suggestions below.
* loss_info["fn"]( | ||
pred, | ||
target, | ||
natoms=batch.natoms, | ||
batch_size=batch_size, | ||
) | ||
) | ||
|
||
# Sanity check to make sure the compute graph is correct. | ||
for lc in loss: | ||
assert hasattr(lc, "grad_fn") |
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.
In the DeNS
code the appening to loss
is done in the else:
block. Is it correct that this was moved out?
src/fairchem/core/models/equiformer_v2/trainers/dens_trainer.py
Outdated
Show resolved
Hide resolved
src/fairchem/core/models/equiformer_v2/trainers/dens_trainer.py
Outdated
Show resolved
Hide resolved
Hello again, I am very eager to try out DeNS with the recent OCP additions, If there is anything I can to do assist, let me know! Best |
Hi @IliasChair, Thanks for looking into this PR and your suggestions. We did not run into issue using a batch size of 8 on A100 GPUs. If you get a chance to compare with your implementation and flag any difference that may be causing additional memory use please let us know! |
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.
I have found another bug in the code. Pleae see below.
Best
Ilias
src/fairchem/core/models/equiformer_v2/trainers/dens_trainer.py
Outdated
Show resolved
Hide resolved
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.
Hello,
I've got a few more comments for you. Sorry about the back-and-forth. I'll try to put everything into one bigger review if anything else comes up.
src/fairchem/core/models/equiformer_v2/trainers/dens_trainer.py
Outdated
Show resolved
Hide resolved
…2_dens # Conflicts: # src/fairchem/core/common/utils.py # src/fairchem/core/modules/evaluator.py # src/fairchem/core/modules/loss.py # src/fairchem/core/trainers/ocp_trainer.py
No description provided.