You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this line prevents running other models after MACE for relaxation in the same Python session since MACE recommends float64 for geometry optimization while e.g. chgnet and m3gnet use float32.
error messages are not helpful so will likely take users time to troubleshoot this issue when encountered. only current workaround is to manually reset default dtype to float32 with
torch.set_default_dtype(torch.float32)
after every time MACE is called.
Suggested fix
only convert model inputs to model's dtype without modifying all float tensors everywhere
this line prevents running other models after MACE for relaxation in the same Python session since MACE recommends float64 for geometry optimization while e.g. chgnet and m3gnet use float32.
mace/mace/calculators/mace.py
Line 145 in 88d49f9
error messages are not helpful so will likely take users time to troubleshoot this issue when encountered. only current workaround is to manually reset default dtype to float32 with
after every time MACE is called.
Suggested fix
only convert model inputs to model's dtype without modifying all float tensors everywhere
minimal example
The text was updated successfully, but these errors were encountered: