Skip to content

Instantly share code, notes, and snippets.

View arpu-nagar's full-sized avatar
:electron:
Working on something new

Arpan Nagar arpu-nagar

:electron:
Working on something new
View GitHub Profile
@arpu-nagar
arpu-nagar / Torch.md
Last active April 11, 2024 03:00
Ultimate Guide to Install Pytorch (CUDA) on Ubuntu 22.4

This gist contains a step-by-step procedure to install Pytorch with CUDA on Ubuntu 22.4.

1. Install conda

I prefer Miniconda but you can choose between Anaconda and Miniforge.

mkdir -p ~/miniconda3
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh
bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3