🆘 Fail to redo the tutorial refit a MEGNet formation energy model with GPU #137
Unanswered
ShangChien
asked this question in
Q&A
Replies: 1 comment 4 replies
-
|
Seems like your PyTorch was not compiled with CUDA support, as indicated by the error messages? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
env:
I setup a new env with cuda==117(and same output with 118) by conda:
conda create -n matgl python==3.10 conda activate matgl conda install pytorch torchvision torchaudio pytorch-cuda=11.7 -c pytorch -c nvidia conda install -c dglteam/label/cu117 dgl pip install matgl ##matgl.0.8.2cuda test is ok by:
Then, redo the tutorial refit a MEGNet formation energy model with small change:
torch.set_default_device("cuda:0")afterimport torchpl.Trainer(max_epochs=20, accelerator="cuda", logger=logger)last run it with python get following output:
according the hinder, add new line to header:
then get same error output 😢
my view:
the code can't pass this line:
trainer.fit(model=lit_module, train_dataloaders=train_loader, val_dataloaders=val_loader)😸 How to get rid of this ?
Thank all of you!
Beta Was this translation helpful? Give feedback.
All reactions