TPU training doesn't work on Colab. No TPU devices were found #7365
Unanswered
sirgarfieldc
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
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.
-
After installing these two dependency following the doc
I get 2 erros
This one above is encountered when importing pytorch_lightning. This error does not prevent importing the package
pytorch_lightning.utilities.exceptions.MisconfigurationException: No TPU devices were found
This is encountered when running training script
Google around a bit and someone mentioned restarting Colab runtime solve the isseu. I restart and the issue goes away for a bit. Not sure what difference restarting made.
Following a force quit of my training script.
2 errors mentioned above come back.
This time restart does not solve the problem. Now I can no longer run GPU training
Software versions
Python 3.7.10
torch 1.8.1
torch_xla 1.8.1
pytorch_lightning 1.2.10
Beta Was this translation helpful? Give feedback.
All reactions