Upgrade PyTorch

Looks like I need to upgrade PyTorch! The error message:

NVIDIA GeForce RTX 3070 with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70. If you want to use the NVIDIA GeForce RTX 3070 GPU with PyTorch, please check the instructions at

https://pytorch.org/get-started/locally/

Install the latest CUDA version on Windows (3.0GB) – https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=11&target_type=exe_local

Upgrade PyTorch:

conda install pytorch torchvision torchaudio cudatoolkit=11.3 -c pytorch

Get arch list in Python.

import torch
torch.cuda.get_arch_list()

[‘sm_37’, ‘sm_50’, ‘sm_60’, ‘sm_61’, ‘sm_70’, ‘sm_75’, ‘sm_80’, ‘sm_86’, ‘compute_37’]

And works!

Python for ChromeOS

[How to enable Developer mode on a Chromebook]

[Set up Linux on your Chromebook]

[Linux container not installing]

[How to install and update Anaconda on Chromebook]

From within the Linux penguin terminal:

mkdir tmp && cd tmp

curl -O https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh

chmod +x ./Anaconda3-2022.10-Linux-x86_64.sh

Recreate python and pip symbolic links:

sudo rm /usr/bin/python

sudo rm /usr/bin/pip

sudo ln -s ~/anaconda3/bin/python /usr/bin/python

sudo ln -s ~/anaconda3/bin/pip /usr/bin/pip

[Python for ChromeOS]

[How to install Visual Studio Code on a Chromebook]

[Setting Up Run by Line and Debugging for Notebooks]

[How to share files with Linux apps on Chrome OS]