Ubuntu 20.04 기본 & 딥러닝(파이토치) 세팅

전민수·2023년 7월 16일

0. 미러서버 설정

링크

sudo vi /etc/apt/sources.list
:%s/kr.archive.ubuntu.com/mirror.kakao.com/
sudo apt-get update

1. 한글 설정

링크

2. 블루투스 설정

링크

3. vscode 설치

링크

4. pytorch, conda, cuda 설치

Summary

GPU : GTX 3060
python : 3.8
conda : 최신
cuda : 11.3
pytorch : 1.12.1

https://jooona.tistory.com/140

(base) 자동 활성화 해제

conda activate base
(base) conda config --set auto_activate_base false

python = 3.8 (중요)

conda 가상환경 생성 시 python 3.8 버전 명시

conda create -n torch python=3.8

cuda version : 11.3

wget https://developer.download.nvidia.com/compute/cuda/11.3.0/local_installers/cuda_11.3.0_465.19.01_linux.run
sudo sh cuda_11.3.0_465.19.01_linux.run

nvcc 작동 안 될 시

https://cchhoo407.tistory.com/17

cuDNN version : 8.2.0

Download cuDNN v8.2.0 (April 23rd, 2021), for CUDA 11.x for linux(x86_64)

설치방법 : https://wikidocs.net/158543

pytorch version : 1.12.1

# CUDA 11.3
conda install pytorch==1.12.1 torchvision==0.13.1 torchaudio==0.12.1 cudatoolkit=11.3 -c pytorch

torch 작동 확인

python -c "import torch; print(torch.cuda.is_available())"
profile
Learning Mate

0개의 댓글