-
Notifications
You must be signed in to change notification settings - Fork 558
Open
Labels
bugSomething isn't workingSomething isn't workingxla:tpuTPU specific issues and PRsTPU specific issues and PRs
Description
Ubuntu 22.04 image
Python 3.11
Google Cloud TPU 6e-1
Using pytorch TPU guide from: https://cloud.google.com/tpu/docs/run-calculation-pytorch
Everyting installs correct but execution can't find TPU? IS TPU 6e supported in 2.6.0 pytorch from Google?
# install guide from Google Docs:
sudo apt-get update
sudo apt-get install libopenblas-dev -y
pip install numpy
pip install torch torch_xla[tpu]~=2.6.0 -f https://storage.googleapis.com/libtpu-releases/index.html
(vm311) root@t1v-n-d86a1b40-w-0:/home/qubitium/gptqmodel/tests# PJRT_DEVICE=TPU python3 -c "import torch_xla.core.xla_model as xm; print(xm.get_xla_supported_devices(\"TPU\"))"
/home/qubitium/vm311/lib/python3.11/site-packages/torch_xla/core/xla_model.py:99: UserWarning: `devkind` argument is deprecated and will be removed in a future release.
warnings.warn("`devkind` argument is deprecated and will be removed in a "
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/home/qubitium/vm311/lib/python3.11/site-packages/torch_xla/core/xla_model.py", line 102, in get_xla_supported_devices
xla_devices = _DEVICES.value
^^^^^^^^^^^^^^
File "/home/qubitium/vm311/lib/python3.11/site-packages/torch_xla/utils/utils.py", line 29, in value
self._value = self._gen_fn()
^^^^^^^^^^^^^^
File "/home/qubitium/vm311/lib/python3.11/site-packages/torch_xla/core/xla_model.py", line 27, in <lambda>
_DEVICES = xu.LazyProperty(lambda: torch_xla._XLAC._xla_get_devices())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: Bad StatusOr access: INTERNAL: Failed to get global TPU topology.
I am running an active TPU 6e-1 instance, not some cpu compute instance.
The same setup work on v5e-4
(vm311) qubitium@t1v-n-c2f3a32a-w-0:~$ PJRT_DEVICE=TPU python3 -c "import torch_xla.core.xla_model as xm; print(xm.get_xla_supported_devices(\"TPU\"))"
/home/qubitium/vm311/lib/python3.11/site-packages/torch_xla/core/xla_model.py:99: UserWarning: `devkind` argument is deprecated and will be removed in a future release.
warnings.warn("`devkind` argument is deprecated and will be removed in a "
['xla:0', 'xla:1', 'xla:2', 'xla:3']
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingxla:tpuTPU specific issues and PRsTPU specific issues and PRs