Cuda 12 pytorch 11.8

Sir, i purchased new machine nvidia Geoforce rtx 4090 graphics card it takes as cuda 12 by default but in pytorch the latest version is 11.8 how can I run it .it’s not compatible please reply

The RTX 4090 is sm89 which should be usable with CUDA 11.8. Note that if you install the 11.8 pip wheels e.g., via pip3 install torch torchvision torchaudio --index-url PyTorch will use the CUDA that is bundled with it (11.8 in this case) even if your system has CUDA 12. Please let us know if you have already tried this and it did not work.