LAMBDA_REPO=$(mktemp) && \
wget -O${LAMBDA_REPO} https://lambdalabs.com/static/misc/lambda-stack-repo.deb && \
sudo dpkg -i ${LAMBDA_REPO} && rm -f ${LAMBDA_REPO} && \
sudo apt-get update && sudo apt-get install -y lambda-stack-cuda --allow-downgrades
重新啟動電腦
$ python
>>> import tensorflow
>>> tensorflow.__version__
'2.6.0'
>>> import torch
>>> torch.__version__
'1.9.1'
sudo apt-get update && sudo apt-get dist-upgrade
$ nvidia-smi
Tue Nov 2 21:04:44 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 470.74 Driver Version: 470.74 CUDA Version: 11.4 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|===============================+======================+======================|
| 0 NVIDIA GeForce ... On | 00000000:01:00.0 Off | N/A |
| 0% 40C P0 111W / 370W | 72MiB / 10010MiB | 0% Default |
| | | N/A |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=============================================================================|
| 0 N/A N/A 1326 G /usr/lib/xorg/Xorg 56MiB |
| 0 N/A N/A 1484 G /usr/bin/gnome-shell 12MiB |
+-----------------------------------------------------------------------------+
$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2020 NVIDIA Corporation
Built on Mon_Oct_12_20:09:46_PDT_2020
Cuda compilation tools, release 11.1, V11.1.105
Build cuda_11.1.TC455_06.29190527_0
Conda 建立&管理 Python 虛擬環境 建立虛擬環境 步驟一: 確認自己現有環境 tienyi@tienyi:~$ conda env list output: # conda environments:
Feb 20, 2022Python 虛擬環境架設 參考連結 1. 通過 venv 來創造一個虛擬環境: python -m venv <YOUR-PATH> venv 參數介紹: usage: venv [-h] [--system-site-packages] [--symlinks | --copies] [--clear] [--upgrade] [--without-pip] [--prompt PROMPT] ENV_DIR [ENV_DIR ...]
Nov 23, 2021PyTorch 使用 vgg16 訓練 Stanford Dog Datasets 實驗環境 Operating System Ubuntu 20.04.03 LTS (Focal Fossa) GPU Nvidia RTX 3080 Nvidia Driver Version
Nov 4, 2021or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up