Can anyone show me a script that training a m3gnet model using CUDA? #97
-
I have tried as follows: from future import annotations import numpy as np if name == 'main': Or from future import annotations import numpy as np if name == 'main': But it all had the same error: Original Traceback (most recent call last): When I use the torch.device('cuda') as follows: from future import annotations import numpy as np if name == 'main': Or from future import annotations import numpy as np if name == 'main': I get this error: File "/home/lycui/anaconda3/envs/mgl/lib/python3.9/site-packages/matgl/models/_m3gnet.py", line 224, in forward **So I'm confused, I don't know what to do. Here are some packages version: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Given that we have no information on what machine you are using, there really isn't much else we can help you with here. Pls read the documentation on cuda in PyTorch. |
Beta Was this translation helpful? Give feedback.
Given that we have no information on what machine you are using, there really isn't much else we can help you with here. Pls read the documentation on cuda in PyTorch.