Downloading pytorch

Hey sorry I am very new to this sort of stuff. I have a quick question, if I downloaded cuda 12.6 from Invidia can I still download pytorch pip cuda 12.4 or would it no longer work? Thank you

Yes, you can download any PyTorch binary as it ships with its own CUDA dependencies and your locally installed CUDA toolkit will be used if you build PyTorch from source or a custom CUDA extension.