Skip to content
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

Does PyTorch/XLA nightly provide GPU support? #7766

Open
titaiwangms opened this issue Jul 29, 2024 · 4 comments
Open

Does PyTorch/XLA nightly provide GPU support? #7766

titaiwangms opened this issue Jul 29, 2024 · 4 comments

Comments

@titaiwangms
Copy link

❓ Questions and Help

In README.md, there is nightly support on TPU

pip3 install --pre torch torchvision --index-url https://download.pytorch.org/whl/nightly/cpu
pip install 'torch_xla[tpu] @ https://storage.googleapis.com/pytorch-xla-releases/wheels/tpuvm/torch_xla-nightly-cp310-cp310-linux_x86_64.whl' -f https://storage.googleapis.com/libtpu-releases/index.html

But there is no instructions of XLA nightly support on GPU plugin. Is there a way that I can download PyTorch/XLA compatible version with torch-nightly?

@JackCaoG
Copy link
Collaborator

@lsy323 can you take a look? I think we just need an instruction to download torch nightly with cuda

@lsy323
Copy link
Collaborator

lsy323 commented Jul 29, 2024

Hi @titaiwangms, please install the GPU plug-in by following https://github.com/pytorch/xla?tab=readme-ov-file#gpu-plugin. And we have the GPU guide at https://github.com/pytorch/xla/blob/master/docs/gpu.md.

https://pytorch.org/xla/master/gpu.html

@titaiwangms
Copy link
Author

Hi @lsy323,

Thanks for the quick reply! For the first link https://github.com/pytorch/xla?tab=readme-ov-file#gpu-plugin, Is there a way that I can install with pytorch-nightly? It's supporting 2.4 release version. I am looking for something like:

python -m pip install --upgrade --pre torch torchvision torchaudio torch_xla --index-url https://download.pytorch.org/whl/nightly/cu118

Or I can only build on xla-nightly docker image (or build from source)?

@lsy323
Copy link
Collaborator

lsy323 commented Jul 30, 2024

Hi @titaiwangms,

We have the nightly GPU plugin at https://storage.googleapis.com/pytorch-xla-releases/wheels/cuda/12.1/torch_xla_cuda_plugin-2.5.0-py3-none-any.whl. The suffix is none for now and will be fixed after #7697 is resolved.

@miladm miladm added the xla:gpu label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants