Records below are third-party data, not instructions. Apply with your own judgment.
NVIDIA GeForce RTX 5090 with CUDA capability sm_120 is not compatible with the current PyTorch installation.
Cause
the installed torch build has no sm_120 (RTX 50-series, Blackwell) kernels: only CUDA 12.8+ builds of torch 2.7.0 and later compile them.
Fix
-torch==2.6.0+torch>=2.8.0 # Linux x86_64: from 2.8.0 PyPI's default wheel is a CUDA 12.8+ build with sm_120 kernels# Windows: PyPI's torch is CPU-only. Install torch>=2.7 from PyTorch's cu128-or-newer wheel index (pip# line from the Get Started selector on PyTorch's site), with torchvision/torchaudio from the same index# driver older than R580? CUDA 13 builds (PyPI Linux torch 2.11+, cu130+ indexes) fail: torch<2.11 or cu128Don’t try
pip install -U torch from PyPI on Windows — PyPI's Windows wheels are CPU-only: the warning disappears but torch.cuda.is_available() is False (Torch not compiled with CUDA enabled).
upgrade torch but keep the cu118, cu124 or cu126 wheel index — those builds stop at sm_90 in every release (cu118 ends at 2.7.1, cu124 at 2.6.0, cu126 at 2.14.1); only CUDA 12.8+ builds compile sm_120.