Conversation
janosh
commented
Dec 9, 2023
chgnet/model/dynamics.py
Outdated
|
|
||
| # Move the model to the specified device | ||
| self.model = (model or CHGNet.load()).to(self.device) | ||
| self.model = (model or CHGNet.load().float()).to(self.device) |
Collaborator
Author
There was a problem hiding this comment.
@BowenD-UCB Not sure it's generally a good idea to lower model precision? But I can't use the model on MPS without it.
Should we restrict the precision lowering to MPS?
Collaborator
Author
There was a problem hiding this comment.
Never mind, not actually an issue with CHGNet. Was caused by running MACE and CHGNet in the same session. MACE calls torch.set_default_dtype(torch.float64), affecting all other torch models used concurrently.
@ilyes319 Can we make dtype fully local to MACE to make it compatible with other models?
2aaf67c to
05a824a
Compare
… CHGNet structural relaxation
… msg on invalid name
05a824a to
2fb533d
Compare
janosh
commented
Dec 11, 2023
| "should no longer be used. Run pip install git+https://gitlab.com/ase/ase to " | ||
| "install from main branch." | ||
| ) | ||
|
|
Collaborator
Author
There was a problem hiding this comment.
@BowenD-UCB We now print this advice when ase.filters.FrechetCellFilter can't be imported.
pip install git+https://gitlab.com/ase/ase user advice and allow ase_filter to be str
pip install git+https://gitlab.com/ase/ase user advice and allow ase_filter to be strpip install git+https://gitlab.com/ase/ase user advice on FrechetCellFilter ImportError and allow ase_filter to be str
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
chgnet/chgnet/model/dynamics.py
Line 92 in db40e05