NVIDIA GeForce RTX 3090 Ti with CUDA capability sm_86 is not compatible with the current PyTorch installation. The current PyTorch install supports CUDA capabilities sm_37 sm_50 sm_60 sm_70

Same as here. Your locally installed CUDA toolkit won’t be used and you need to install a PyTorch binary with CUDA>=11.x.