Installation of PyTorch for GPU/CPU on Windows OS with CUDA Toolkit, cuDNN, Anaconda Navigator

Installation of PyTorch for GPU/CPU on Windows OS with CUDA Toolkit, cuDNN, Anaconda Navigator

Indian AI Production

2 года назад

11,676 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@YashSharma-le3mo
@YashSharma-le3mo - 20.09.2023 08:27

Hi I am getting error torch is not compiled with cuda enabled in my jupyter notebook how to get rid of this

Ответить
@nikunjbansal3397
@nikunjbansal3397 - 17.09.2023 18:26

Is it mandatory to install cuDNN files??

Ответить
@praveenrp3703
@praveenrp3703 - 04.07.2023 20:15

Pytorch is not compatible with few nvidia like 3080,3080ti and all. Could you please share the details which are nvidia gpu cards support both pytorch and tensorflow.

Ответить
@wernerheisenberg9653
@wernerheisenberg9653 - 12.06.2023 20:07

Few points I would like to add:

1) If your torch package is already installed, then first uninstall that torch package and then install the CUDA supported torch package else when you will try to install that CUDA torch package, the pip might refuse to install it (because you already have torch installed).

2) Even if your CUDA version and torch version are incompatible, still the CUDA-torch package may work. e.g: My CUDA version was 12.1 and the torch library I installed was compatible with CUDA 11.8 and still it worked well for CUDA 12.1.

Ответить
@travelneer
@travelneer - 13.05.2023 01:56

can we keep two versions of cuda? I need cuda 10 for one project which already runs, and now i need to install pytorch 1.5+ for that i need to upgrade cuda but I want to keep cuda 10 as well. Moreover, when I run nvidia-smi, i get cuda 12 version and when running nvcc --version, i get cuda 10. Please help.

Ответить
@shahzaibchaudhary4281
@shahzaibchaudhary4281 - 29.04.2023 13:57

Thank you SO much!! This is the only tutorial that helped me!!

Ответить
@saitarun6562
@saitarun6562 - 15.04.2023 14:37

thx worked

Ответить
@johanvonliebert4812
@johanvonliebert4812 - 10.04.2023 18:30

i have this err torch not compiled with cuda enabled

Ответить
@chiragPatel22c
@chiragPatel22c - 18.03.2023 11:20

Can't we install pytorch in base environment??? is it mendatory to create a new env??

Ответить
@ShrikanthPoojary
@ShrikanthPoojary - 11.03.2023 07:51

Thank you so much, I have been trying to install pytorch and i had gone through so many video tutorials but only this video tutorial helped me to install it Sir. Great job

Ответить
@IBM_1998
@IBM_1998 - 14.02.2023 23:49

was getting annoyed with cuda before watching this video, a bundle of thanks

Ответить
@ajaysaravade5213
@ajaysaravade5213 - 10.02.2023 18:12

Do we need Visual studio 2019?

Ответить
@nisharahamed8106
@nisharahamed8106 - 19.10.2022 23:27

Vs code me ye program kese run karr
(
Import torch
....
...

Ответить
@nisharahamed8106
@nisharahamed8106 - 19.10.2022 19:07

Thnx 👍
Awesome video ( subscribed)❣️

Ответить
@ajaykushwah6793
@ajaykushwah6793 - 02.08.2022 17:00

i dont have nvidia gpu..i have AMD Radeon HD520 gpu.. can i use cuda? and how? selecting computer platform to CPU instead of CUda???

Ответить
@CSBBADRIGAUTAM
@CSBBADRIGAUTAM - 12.06.2022 09:15

I have an NVIDIA GeForce RTX 3050Ti graphic card in my laptop, the ouptut for the codes you given were showing like this:

```
>>> torch.cuda.is_available()
False
>>> torch.cuda.current_device()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\csd\.conda\envs\cuda_pytorch\lib\site-packages\torch\cuda\__init__.py", line 481, in current_device
_lazy_init()
File "C:\Users\csd\.conda\envs\cuda_pytorch\lib\site-packages\torch\cuda\__init__.py", line 210, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
>>> torch.cuda.device_count()
0
```

Any idea what could be wrong ??

Ответить
@shamsakanwal9023
@shamsakanwal9023 - 10.06.2022 09:43

Sir mery pas nvidia ka GPU hai phir bhi cuda install Nahi horaha , cuda 9,10,11 koi b Nahi horaha...
Just error graphic driver not compatible, but driver bhi same install hain...

Ответить
@kartikverma3781
@kartikverma3781 - 26.10.2021 08:43

bhai mere pas dedicated NVidia ka GPU nahi hai , mere pas interl ka UDH 620 GPU hai , please batao pytorch kaise install kare ??

Ответить
@sjlobby
@sjlobby - 30.09.2021 07:56

Why need cuda

Ответить