Pytorch vrsion for cuda 12.7

username: KENnotcode
cooked: <p>Newb question. Im new to machine learning and Im trying to install pytorch. What is the compatible version for cuda 12,7?<br>
±----------------------------------------------------------------------------------------+<br>
| NVIDIA-SMI 566.36                 Driver Version: 566.36         CUDA Version: 12.7     |<br>
|-----------------------------------------±-----------------------±---------------------+<br>
| GPU  Name                  Driver-Model | Bus-Id          Disp.A | Volatile Uncorr. ECC |<br>
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |<br>
|                                         |                        |               MIG M. |<br>
|=========================================+========================+======================|<br>
|   0  NVIDIA GeForce RTX 3050 …  WDDM  |   00000000:01:00.0 Off |                  N/A |<br>
| N/A   53C    P3              5W /   38W |     221MiB /   4096MiB |      5%      Default |<br>
|                                         |                        |                  N/A |<br>
±----------------------------------------±-----------------------±---------------------+</p>
<p>±----------------------------------------------------------------------------------------+<br>
| Processes:                                                                              |<br>
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |<br>
|        ID   ID                                                               Usage      |<br>
|=========================================================================================|<br>
|    0   N/A  N/A     20256      C   …a09mmv6hy\Build\Plugins\Mpv\mpv.exe      N/A      |<br>
|    0   N/A  N/A     20440      C   …al\Discord\app-1.0.9174\Discord.exe      N/A      |<br>
±----------------------------------------------------------------------------------------+</p>

username: ptrblck
cooked: <p>You are referring to the driver (566.36), which is new enough to support all of our PyTorch binaries (up the he newest CUDA toolkit 12.6 available as nightly binaries).</p>

username: nix
cooked: <p>Dear developers, it is real pain in ass to find actual installation info. Anaconda, CUDA Toolkit, cuDNN, environment variables, to compile something, %n%???</p>
<p>When my way was pretty simple:<br>
Win11 x64<br>
nvidia-smi gives to me cuda 12.7<br>
I installed CUDA Toolkit 12.6 (do I really need it?)<br>
Used this command “pip3 install --pre torch torchvision torchaudio --index-url <a href="https://download.pytorch.org/whl/nightly/cu126" rel="noopener nofollow ugc">https://download.pytorch.org/whl/nightly/cu126</a>”<br>
And command “torch.cuda.is_available()” gives to me True, finally</p>

username: ptrblck
cooked: <p>I don’t see a question in your post and it seems your setup works?</p>

username: JustSuperHuman
cooked: <p>So thankful when I search something and someone posts the answer 3 days earlier! TY!!!</p>

username: Daksh_Bhardwaj
cooked: <p>PyTorch comes with pre-compiled cuda code so you do not need to download Nvidia Cuda toolkit or Cudnn</p>

username: Suriya_Sur
cooked: <p>thank you so much it works for me 2 hour searching finally i got it</p>