You can refer PyTorch's Get Started Locally Docuemtnation in which you can select specific version's and download as required: https://pytorch.org/get-started/locally/
and if the issue your facing is related to CUDA check out: https://developer.nvidia.com/cuda-downloads