- Choose this Linux version when creating your EC2 instance.
- This is the latest CUDA version that Pytorch support.
See the Pytorch Install Guide
- Follow this to add nvidia apt repository.
apt install cuda=11.8.0-1
- Download a
*.deb
file from here. - You need to sign up Nvidia Developer account and choose the correct version, for
CUDA 11.8
andUbuntu 20.04
. - Use
scp
to upload thedeb
file on EC2. And rundeb -i cudnn-local-repo-ubuntu2004-8.9.2.26_1.0-1_amd64.deb
to install it.
- Install Mamba and create a Conda virtual environment.
- Install Pytorch with this instructions, choosing correct options then it gives you this command to run
conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia
- Run
minimum_cnn_inference.py
and it should output the following if eveything is good:
TODO