Created
October 19, 2021 12:17
-
-
Save Hkazanci93/4ce5c5ae972a2cdee4a8f396e2af1f14 to your computer and use it in GitHub Desktop.
Summarizing the pipeline 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt update | |
sudo apt install nvidia-340 | |
lspci | grep -i nvidia | |
sudo apt-get install linux-headers-$(uname -r) | |
distribution=$(. /etc/os-release;echo $ID$VERSION_ID | sed -e 's/\.//g') | |
wget https://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64/cuda-$distribution.pin | |
sudo mv cuda-$distribution.pin /etc/apt/preferences.d/cuda-repository-pin-600 | |
sudo apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64/7fa2af80.pub | |
echo "deb http://developer.download.nvidia.com/compute/cuda/repos/$distribution/x86_64 /" | sudo tee /etc/apt/sources.list.d/cuda.list | |
sudo apt-get update | |
sudo apt-get -y install cuda-drivers | |
# install anaconda | |
curl -O https://repo.anaconda.com/archive/Anaconda3-2020.11-Linux-x86_64.sh | |
sh Anaconda3-2020.11-Linux-x86_64.sh | |
source ~/.bashrc | |
conda create -n thepattern_env python=3.8 | |
conda activate thepattern_env | |
conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11 -c pytorch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment