miniconda & cuda & pytorch
miniconda
Reference:
- https://docs.conda.io/projects/miniconda/en/latest/miniconda-other-installer-links.html
- https://docs.conda.io/projects/miniconda/en/latest/
1 | mkdir -p ~/miniconda3 |
安装后,初始化新安装的 Miniconda。以下命令针对 bash 和 zsh shell 进行初始化:
1 | ~/miniconda3/bin/conda init bash |
cuda toolkit(可选)
Reference:
- https://learn.microsoft.com/zh-cn/windows/wsl/tutorials/gpu-compute
- https://docs.nvidia.com/cuda/wsl-user-guide/index.html#cuda-support-for-wsl-2
- https://developer.nvidia.com/cuda-downloads?target_os=Linux&target_arch=x86_64&Distribution=WSL-Ubuntu&target_version=2.0&target_type=runfile_local
如果需要编译 CUDA 程序那么这一步是必选
1 | cd /tmp |
pdm
Reference:
确保 conda 已经激活
1 | echo 'export PATH=$PATH:$HOME/.local/bin' >> ~/.zshrc |
pytorch
Reference:
- https://pytorch.org/get-started/locally/
- https://pytorch.org/get-started/locally/#windows-verification
1 | pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 |
kaggle cli
Reference:
1 | pip install kaggle |