I would like to downgrade the Torch version used in my Google Colab notebooks. How could I do that?
Just use !pip uninstall torch -y to skip the confirmation prompt.
Download and install Anaconda (choose the latest Python version). Go to PyTorch's site and find the get started locally section. Specify the appropriate configuration options for your particular environment. Run the presented command in the terminal to install PyTorch.
Combining PyTorch and Google's cloud-based Colab notebook environment can be a good solution for building neural networks with free access to GPUs.
Run from your cell:
!pip install torch==version
Where version could be, for example, 1.3.0
(default is 1.4.0
). You may have to downgrade torchvision
appropriately as well so you would go with:
!pip install torch==1.3.0 torchvision==0.4.1
On the other hand PyTorch provides backward compatibility between major versions so there should be no need for downgrading.
Remember you have to restart your Google Colab for changes to take effect
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With