It seems you are running into a version mismatch, so maybe try to create an empty and clean virtual environment and install the latest PyTorch release there. If PyTorch still has issues communicating with your GPU you might need to update the NVIDIA driver. CUDA 12.x requires >=525.60.13 on Linux.
In the tf-gpu(user created environment name) environment I ran conda install pytorch==1.7.1 torchvision==0.8.2 torchaudio==0.7.2 cudatoolkit=11.0 -c pytorch
command to install PyTorch.
Also latest PyTorch requires Python 3.8 or later. CUDA 11.8. My CUDA version is not compatible with the latest requirement of PyTorch so I installed archived version.
If I do not update the driver what will be the PyTorch version I need to choose?
Your locally installed CUDA toolkit won’t be used as the PyTorch binaries ship with their own CUDA runtime. You would need to properly install a supported NVIDIA driver to execute PyTorch workloads on the GPU.
Was this setup working before at one point or is this a new workstation?
This is the 1st time I used PyTorch with CUDA setup. I found PyTorch 1.7 with CUDA 11.0 can be installed since a condo command version available on the PyTorch archive, so I tried it.
I am wondering if PyTorch 1.7 with CUDA 11.0 are compatible then why it is not work for me?
I don’t know why it’s not working for you.
Using 470.82.01 as the driver and installing PyTorch via conda install pytorch==1.7.0 cudatoolkit=11.0 -c pytorch into a new and empty environment works for me:
!python -m torch.utils.collect_env
PyTorch version: 1.7.1
Is debug build: False
CUDA used to build PyTorch: 10.1
ROCM used to build PyTorch: N/A
OS: Ubuntu 20.04.1 LTS (x86_64)
GCC version: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0
Clang version: Could not collect
CMake version: version 3.16.3
Python version: 3.6 (64-bit runtime)
Is CUDA available: False
CUDA runtime version: 10.1.243
GPU models and configuration: GPU 0: GeForce RTX 2070 SUPER
Nvidia driver version: 450.119.03
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A