Trainer cannot find available GPUS #8705
Unanswered
omrishac
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 2 comments
-
have exactly same issue when I try to run this repo |
Beta Was this translation helpful? Give feedback.
0 replies
-
@lilylizhengzhou Lightning uses this simple condition to check the cuda device availability (in master): I'd recommend recreating your environment and installing PyTorch and Lightning again. |
Beta Was this translation helpful? Give feedback.
0 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.
-
Hey,
I am trying to use Huyvnphan's implementation of CIFAR-10 classifier with Pytorch on Colab.
In his implementation he uses pytorch-lightning and for some reason when I try to train the model PL raises an error:
"pytorch_lightning.utilities.exceptions.MisconfigurationException: GPUs requested but none are available."
note that when I run "torch.cuda.is_available()" I get True and "torch.cuda.device_count()" is 1.
The Trainer call looks like that:
please look at his implementation for more info:
https://github.com/huyvnphan/PyTorch_CIFAR10
Thanks in advance,
OS
Beta Was this translation helpful? Give feedback.
All reactions