Pytorch 2.3.1 CUDA compatibility

Hello people. Im fairly new at anything related to python. Im trying to install CUDA for my GTX 1660. I installed Cuda Toolkit 12.5 first but then i downgraded it to 12.1. I still can’t get it to work.

Here is the error. You can also see the versions.

Your don’t need to install a CUDA toolkit as the PyTorch binaries ship with their own CUDA dependencies.
As shown in your screenshot you’ve installed a CPU-only binary: 2.3.1+cpu. Install a PyTorch binary with CUDA support and it should work.

1 Like