I was looking for a Torch version compatible with the Nvidia 1080Ti and found the solution below; it worked for me.
I use the command below to install Pytorch 2.7.1 and Cuda 12.6.
# CUDA 12.6
pip install torch==2.7.1 torchvision==0.22.1 torchaudio==2.7.1 --index-url https://download.pytorch.org/whl/cu126
Note: I know it does not affect the GPU. I still got the warning below, which may not be related:
[W1128 19:26:28.710122151 NNPACK.cpp:57] Could not initialize NNPACK! Reason: Unsupported hardware.