-
Notifications
You must be signed in to change notification settings - Fork 471
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in Importing XLA #3215
Comments
Same error for me on google colab. Worked well last week |
@BttMA pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-1.9-cp37-cp37m-linux_x86_64.whl
pip install torch==1.9.0+cu111 torchvision==0.10.0+cu111 torchtext==0.10.0 -f https://download.pytorch.org/whl/cu111/torch_stable.html Then you can import XLA import torch
print(torch.__version__)
import torch_xla
import torch_xla.core.xla_model as xm Enjoy ! |
@blancsw Thanks man 👍 (It takes minutes to install and run but ... it works!) @JackCaoG @miaoshasha ; you need to think about updating cloud-tpu-clien, torch and torch_xla (with their dependancies) ;) |
@JackCaoG @miaoshasha Now I have to tell you that this raise another warning related to the dataloader.
And there is no
What should I do please ? I even eliminated @blancsw It would be great if you could lead me through this please :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
🐛 Bug
I am trying to import
torch_xla
but I keep getting some bizarre import error :I followed The exact same steps as in this tuto. It is not the first time I use XLA/TPU. This one is new to me. That is why I am opening this issue.
To Reproduce
Steps to reproduce the behavior:
the error is :
Expected behavior
After running the importation of torch_xla we should get a successful start without error :
WARNING:root:Waiting for TPU to be start up with version pytorch-1.9...
WARNING:root:Waiting for TPU to be start up with version pytorch-1.9...
WARNING:root:TPU has started up successfully with version pytorch-1.9
Environment
The text was updated successfully, but these errors were encountered: