Feature Request: Install the right XLA wheels based on the torch version and environment
See original GitHub issueWith the torch xla wheels now having a separate wheel directly for Google Colab, I think it’d be useful to have an xla installer as part of a utility in Accelerate.
In my head I imagine it would look something like so:
- Check if we are in Colab or not. (there are ways to do this, see the
notebook_launcher
code) - Grab the torch XLA wheel based on the current installed torch version
- Install said wheel
An upgrade=True
could be passed that will just install the latest torch and torch_xla wheels as well.
API wise it’d look something like so:
# from the notebook
from accelerate.utils import install_xla
install_xla()
# from the CLI
accelerate install_xla
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to Install Pytorch XLA wheels and dependencies in ...
i tried this command : !pip install cloud-tpu-client==0.10 https://storage.googleapis.com/tpu-pytorch/wheels/torch_xla-1.7-cp36-cp36m-linux_x86_64.whl.
Read more >PyTorch on XLA Devices
This snippet highlights how easy it is to switch your model to run on XLA. The model definition, dataloader, optimizer and training loop...
Read more >FastAI XLA Extensions Library | fastai_xla_extensions
The FastAI XLA Extensions library package allows your fastai/Pytorch models to run on TPUs using the Pytorch-XLA library. Documentation Site · Install ......
Read more >PyTorch/XLA: Performance Debugging On Cloud TPU VM
We anchor to the PyTorch / XLA 1.9 environment for this case study. ... install https://storage.googleapis.com/tpu-pytorch/wheels/tpuvm/ ...
Read more >DLProf User Guide :: NVIDIA Deep Learning Frameworks ...
This version of Tensorflow contains the functionality to insert the NVTX markers needed by DLProf. 4.1.2. TensorFlow 2.X. The PythonPIP wheel ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Feel free @bipinKrishnan! Yep more or less! If you can get that going and have the pythonic interface I can whip up the CLI half if it’s a bit too confusing 😃
@muellerzr Can I work on this issue?
I’m not quite sure about the CLI version but based on what you’ve already mentioned, these are the things to be done for the notebook:
accelerate/utils
Let me know if I’m missing something 🙂.