Reference video: https://www.youtube.com/watch?v=nATRPPZ5dGE
Install the latest driver for your GPU: https://www.nvidia.com/Download/index.aspx
Install Visual Studio Community and include the C++ workload: https://visualstudio.microsoft.com/vs/community/
During installation, select:
- Desktop development with C++
Use Anaconda/Miniconda to manage your Python environment:
- Anaconda: https://www.anaconda.com/download
- Miniconda: https://docs.conda.io/en/latest/miniconda.html
Download and install CUDA Toolkit: https://developer.nvidia.com/cuda-downloads
Download cuDNN (NVIDIA Developer account required): https://developer.nvidia.com/cudnn
Use the official installer selector and pick the version that matches your CUDA setup: https://pytorch.org/get-started/locally/
Example (CUDA build):
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu121Run the provided scripts:
python torch_device_check.py
python cuda_version_check.pyExpected checks:
- GPU count and GPU name
- Active device (
cudaif available) - CUDA version used by PyTorch
- cuDNN version used by PyTorch