How to setup NVIDIA GPU for PyTorch on Windows 10/11

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

Комментарии • 189

  • @laurencooke3087
    @laurencooke3087 7 месяцев назад +11

    Thank you so much! Finally got it working thanks to you (same steps worked for me with Visual Studio 2022). Thanks again!

    • @oluwasegunbankole7794
      @oluwasegunbankole7794 5 месяцев назад

      Where you trying to run roop cam because i am getting torch module not available

  • @RizaShiro
    @RizaShiro 11 месяцев назад +9

    It's just another comment, but I feel the need to tell you how grateful I am for this. You did every step slowly, waiting on it, you didn't assume we know stuff, so it was super easy to follow and it actually worked!!! Honestly, thank you so much, sending you lots of appreciation

  • @marouanenajime6936
    @marouanenajime6936 8 месяцев назад

    I've wasted A LOT of time trying to work in local and i followed many tutorials without a postive result. thanks to this man it's finally working, thank you so much

  • @Songobu2
    @Songobu2 Год назад +4

    Thanks a lot bro, I have been trying to install this for months but none of the youtube video work. Only your works!! You saved my entire dissertation process! 1000 likes for you keep going bro

  • @LaiThe-l7h
    @LaiThe-l7h 2 месяца назад +1

    Sir, I have followed your video and achieved great success. It works perfectly with CUDA 12.4, CUDNN 8.9.7.29, Visual Studio 2022 version 17.11, and PyTorch Build Stable (2.4.1). Love from VietNam

    • @baha1.099
      @baha1.099 2 месяца назад +1

      It works for me too

  • @anthonieschaap1625
    @anthonieschaap1625 Год назад +2

    Thank you man, invested a lot of time trying to make it work, failing with guides and other videos but this one did it

  • @NiharAsare
    @NiharAsare 5 месяцев назад

    5 days stuck and got a solution in 13 mins. Thank you so much!!!

  • @davethinkingsystems
    @davethinkingsystems 5 месяцев назад

    Thanks very much for this. I tried a couple of evenings and couldn't get PyTorch to recognise my GPU in Pycharm, it does now so I'm ready to rock and roll. Thanks for your help, I really appreciate it.

  • @Remy1080
    @Remy1080 8 месяцев назад

    THANK YOU SO MUCH, WHY DID NOBODY TALK ABOUT CUDNN BEFORE OMGGG

  • @tejaspatel6965
    @tejaspatel6965 4 месяца назад +1

    YOU ARE A SAVIOUR😭 I am trying from past 2 days for my ML model project. Thanks a LOTT!

  • @user_name_lol
    @user_name_lol 6 месяцев назад

    Thank you very much, man! Finally normal step-by-step tutorial how to do it! It still works in Apr 2024.

  • @sohamk1234
    @sohamk1234 10 месяцев назад

    Thankyou so much. Was struggling with CUDA installation from quite long, this video helped me install it successfully.

  • @tomdapchai
    @tomdapchai 2 месяца назад +1

    worked with VS 2022 17.11, CUDA 12.1, CuDNN 8.9.7, PyTorch Build Stable (2.4.1), many thanks :)

  • @orochi7749
    @orochi7749 2 месяца назад

    after long journey on reading docs and tutorials. Finally, I did after this amazing videos. Thank you so much

  • @GregoryCarames
    @GregoryCarames Год назад

    So all the problem I had during the entire time was the CUDNN runtime missing? incredible... Thanks dude, great video!

  • @learnwithbasics6478
    @learnwithbasics6478 9 месяцев назад

    I am straight but mannnn, I love you. fixed my problem. having this issue for 3 days. Thanks. God bless you mann .

  • @hurriken1142
    @hurriken1142 4 месяца назад

    I've been struggling with this problem for a long time. Thank you so much

  • @umarjavaid2426
    @umarjavaid2426 12 часов назад

    bro it worked. Thanks alot man. you got 1 more subscriber

  • @manighahremani9040
    @manighahremani9040 Год назад +2

    Can vouch for this video! Tried Anaconda and any other piece of advice that Bing/Bard or Copilot could spew out and none of them worked until this!

  • @Arun-ku7kq
    @Arun-ku7kq 2 месяца назад

    really helpful. i had almost bought new device.. you saved me man

  • @uzudt
    @uzudt 7 месяцев назад +2

    Mine saying
    AssertionError: Torch not compiled with CUDA enabled
    when I run test on py

  • @inc0gnito590
    @inc0gnito590 3 месяца назад +1

    How to set the path variable if it is not set already by default?

  • @keshavsinghal643
    @keshavsinghal643 11 месяцев назад

    Thanks man, so much, the best tutorial I found on youtube to setup cuda in your workflow...

  • @mspgamer6800
    @mspgamer6800 7 месяцев назад

    Bro, i has to comment cause this is soo detailed and understandable video or solution explaination ....not only commenting but also i subscribed u...never stop making video ...love from INDIA

  • @WahabKhaddim
    @WahabKhaddim 10 месяцев назад

    amazing content dude ! Loved the straight forward appraoch

  • @online-botcu
    @online-botcu 9 месяцев назад

    You're amazing man, thank you so much, I've been wanting to do this for years but I couldn't. but now i made it

  • @lemikey643
    @lemikey643 10 месяцев назад +2

    Question.. Why is it VScode 2019? is it not compatible with newer versions?

  • @kasialovska1206
    @kasialovska1206 Год назад +11

    AssertionError: Torch not compiled with CUDA enabled

    • @syed7110
      @syed7110 9 месяцев назад

      Do you know how to solve that error. Can you tell me? Please 😢

    • @staggeredextreme8213
      @staggeredextreme8213 8 месяцев назад

      Can you pls help 😅?​@@syed7110

    • @phucminh8354
      @phucminh8354 6 месяцев назад +1

      Me too with my rtx3060😢

    • @JustArtsCreations
      @JustArtsCreations 5 месяцев назад +1

      uninstall torch and recomplie with CUDA it happens sometimes

  • @Mourad767
    @Mourad767 Месяц назад +1

    Thank you this works!!

  • @DigiEvoluido
    @DigiEvoluido 9 месяцев назад

    Thank you so much I could not get it to work but now I can finally code in peace

  • @ferroumsamir6531
    @ferroumsamir6531 9 месяцев назад

    Thank you it worked perfectly with CUDA 11.8. but i installed Visual studio 22. but still everything worked fine.

  • @shubhiagarwal8958
    @shubhiagarwal8958 7 месяцев назад +2

    I tried to install CUDA and access GPU to do my projects. I used visual studio 2022 and cuda version 12.4. I followed the procedures and device count was showing 1 , I had uninstalled and reinstalled pytorch. Now today, 1 day after after trying to access gpu, now it is showing device count to be 0. Please help 🙏. Do we have to set path for pytorch or visual studio or is there anything else i am missing

    • @tanmaychavan606
      @tanmaychavan606 4 месяца назад +1

      did you find solution to it please help me!!!!!

    • @omkarkharkar5998
      @omkarkharkar5998 Месяц назад

      @@tanmaychavan606 did you find any solutions for this error

  • @ParkGo-xp9jz
    @ParkGo-xp9jz 6 месяцев назад

    thaks man i have been trying hard to install it on my PC. Approach from video worked like charm...

  • @danielmcpherson9062
    @danielmcpherson9062 Год назад

    Amazing video! Just so you know, Windows 11 allows you to use tabs in Explorer. Just press control-T. It’ll stop you needing go through all your files each time you want to copy and paste them

    • @SL7Tech
      @SL7Tech  Год назад

      Thanks man ! Very handy feature, didn't know about it.

  • @vladyslavhnatiienko1902
    @vladyslavhnatiienko1902 7 месяцев назад +2

    I am encountering an OSError: [WinError 126] with PyTorch on my Windows system. The error message states: "The specified module could not be found. Error loading 'shm.dll' or one of its dependencies." This occurs when trying to import PyTorch in my Python script. Despite the error message indicating that the module could not be found, I have confirmed that the shm.dll file does indeed exist at the specified path: C:\Users\user\AppData\Roaming\Python\Python312\site-packages\torch\lib\shm.dll. I have verified that the DLL is present and correctly located, yet the error persists.

    • @businessgamerprb5398
      @businessgamerprb5398 5 месяцев назад

      Use chatgpt 4
      It will solve the error... Chatgpt 3.5 is waste... So consider buying the paid version....
      Or use chatgpt 4 until it expires and it will be available again in some time...

    • @shivampadmani_iisc
      @shivampadmani_iisc 3 месяца назад

      Downgrade version of pytorch to 2.3. error will be gone

    • @Polycephalum-AI
      @Polycephalum-AI 3 месяца назад +1

      @@shivampadmani_iisc Dude. Lifesaver. Thx.

    • @D_A_R_K.
      @D_A_R_K. 3 месяца назад

      ​@@shivampadmani_iisc bro I have now uninstalled all the things I have installed for cuda torch ....now I am re installing ....if the same error occurs once again .. does have to install pytorch 2.3

  • @muhammadanan9190
    @muhammadanan9190 Месяц назад

    i saw another video of installing cuda and he is selecting c++ components when installing VS community. is that required ?

  • @josephthe2nd395
    @josephthe2nd395 Год назад

    Thank you for this tutorial, saved me 2 times already.

  • @mr.entezaee
    @mr.entezaee 3 месяца назад

    11:11 The system cannot find the file specified.

  • @anujjha625
    @anujjha625 Год назад

    You are a saviour. Thanks for this video. Works like a charm.

  • @NguyenPhuc-zo8ny
    @NguyenPhuc-zo8ny Год назад

    Finally I success install Pytorch Cuda. Thanks bro a lot

  • @jaksonmillka
    @jaksonmillka 26 дней назад

    Индус, я тебя люблю. Спасибо тебе огроменное!

  • @jain78343
    @jain78343 9 месяцев назад

    Worked like a charm, thank you so much!

  • @deltamico
    @deltamico 6 месяцев назад

    When I try to dowload the installer zip of cuDNN it says the file could not be found. It happens both for the newest version and the one you showed, what can I do?

  • @hi-kc7sb
    @hi-kc7sb 11 месяцев назад

    one of the best video complete information. Thank you bro.

  • @peterng.
    @peterng. Год назад

    You saved my time.
    Thanks a lot!
    Keep up the great work!!

  • @erenyaegar-tx2dd
    @erenyaegar-tx2dd 3 дня назад

    i moved cuda toolkit app from c to e drive , will my cuda disabled??

  • @rotorblade9508
    @rotorblade9508 Год назад

    after spending a few days without any success I've finally made it detect the gpu :)

    • @marcaboukaram930
      @marcaboukaram930 Год назад

      i am trying but it didn't work can you help me ?

  • @mechamongrel-ir2qt
    @mechamongrel-ir2qt 6 месяцев назад

    Thank you! But as I understand, PyTorch ships its its own CUDA runtime dependencies so for PyTorch, actually you dont need a locally installed CUDA toolkit.

  • @huntal3538
    @huntal3538 11 месяцев назад

    thank you so much. I followed step by step anhd it worked.

  • @Ashok-py5mt
    @Ashok-py5mt Год назад

    Thank you bro! I should have watched this video one day before. Could have saved time

  • @deda2022
    @deda2022 7 месяцев назад

    Hello friend, I encountered a problem while installing CUDA Toolkit 11.8. ,, This message appeared during the installation process... running processes
    (the following processes must be stopped before the Cuda Visual Studio performance monitor (process ID: 7284). Is there a solution to this problem, please?

    • @deltamico
      @deltamico 6 месяцев назад

      still unsolved?

    • @deda2022
      @deda2022 5 месяцев назад

      @@deltamico ... yea, There is still no clear solution.

    • @deltamico
      @deltamico 5 месяцев назад

      did you try to look up which process it is and stopping it manually

  • @Ska1nZ
    @Ska1nZ 2 месяца назад

    Thanks for the tutorial ❤

  • @captainmustard1
    @captainmustard1 8 месяцев назад

    perfect its working for me. thank you!

  • @plumberski8854
    @plumberski8854 Год назад +1

    I use Pycharm. Do I still need to install VS ? Thanks.

  • @itsme9877
    @itsme9877 8 месяцев назад

    Is intel(r) iris(r) xe graphics gpu compatible??
    Stack overflow showed it as not compatible and i want to know where exactly dis you try it on..
    I am havin a mini project to be submitted n i m struggling to get this done. Please help me asap

  • @bboyect
    @bboyect 11 месяцев назад

    Thank you so much. Massive help!!!!

  • @ahmedchaoukichami9345
    @ahmedchaoukichami9345 Год назад +1

    i have rtx 3070 when i exucute (nvidia smi) i get cuda version 12 how can i get pytorch 12 version and wich cuda version should i install and cudann and toolkit plz

    • @abeerilyas8337
      @abeerilyas8337 Год назад

      Stuck in same situation. Please let me know if you get any solution.

    • @RedSky8
      @RedSky8 6 месяцев назад

      Try this !pip install torch==2.3.0+cu121 torchvision==0.18.0+cu121 torchaudio==2.3.0+cu121
      You may need to add the https url at the end too. Just past it into chat gpt and it should finish it for you.

  • @blaine_stl
    @blaine_stl 7 месяцев назад

    this is awesome, this worked perfectly for me. I've been running my ML programs on cpu assuming that I didn't have a gpu that was accessible since torch.device("cuda" if torch.cuda.is_available() else "cpu") didn't recognize a mounted gpu. This video helped to resolve that, diffusion models running so much faster now

  • @iamragulsurya
    @iamragulsurya Год назад +1

    thanks bro, very much appreciate it

  • @penrose3477
    @penrose3477 3 месяца назад

    You are the best, thank u !!

  • @nomanalikhan9998
    @nomanalikhan9998 3 месяца назад

    you saved my 10$ that i was going to spend on the google collab

  • @albertwesker2k24
    @albertwesker2k24 8 месяцев назад

    Thank you so much! Liked and subscribed

  • @hyena-ai
    @hyena-ai 11 месяцев назад

    The only video that worked for me

  • @hallaibrahim6557
    @hallaibrahim6557 2 месяца назад +1

    is that compatible with vs code 19.3 or only vs ?

    • @AMANBABU-n3d
      @AMANBABU-n3d Месяц назад

      It is compatible with VS code 22 as well. I did it with VS code 22 and it worked.

  • @xberna8156
    @xberna8156 9 месяцев назад

    Thank you very much!!! It worked❤‍🔥

  • @lihuasuk3684
    @lihuasuk3684 Год назад +1

    😢😢i can not do it.why why i use intel core i 5 help me please 😢😢

  • @PriyankaGadhavi-c1o
    @PriyankaGadhavi-c1o Год назад +1

    after doing all steps, in last got below error:
    import torch
    ModuleNotFoundError: No module named 'torch'
    I have RTX 3060 and I installed version of Cuda 11.7 toolkit

    • @wishwarathnaweera2292
      @wishwarathnaweera2292 Год назад

      u fixed it? i havbe the same gpu and same cuda version got the same error

    • @SasaniPerera
      @SasaniPerera Год назад

      guys I get the same error. Did any of you solved this?? Please help.

    • @SasaniPerera
      @SasaniPerera Год назад

      @@wishwarathnaweera2292 my guy did you solve this?

    • @SasaniPerera
      @SasaniPerera Год назад

      @mateussantos6755 my guy did you solve this?

    • @wishwarathnaweera2292
      @wishwarathnaweera2292 Год назад

      @@SasaniPerera tried for days and fixed from referring to some other videos , i was using this to train a speech recognition model. bt unfortunately it could not support such a power using the gpu so i shifted to colab pro Version and did my task . If you trying to train models with much computational powers i would not recommend this method

  • @BenceCsomor
    @BenceCsomor Год назад

    you are a hero, thanks. It worked!

  • @mr.naveenkuhar
    @mr.naveenkuhar Год назад

    Thanks mate it worked perfectly

  • @SayanChowdhury-h2h
    @SayanChowdhury-h2h Год назад

    Hello, thanks for the amazing video. I already have installed a different version of CUDA (10.2) and CUDNN compatible with a partiicular Tensorflow version in my system. What should I do ?

  • @terrance7300
    @terrance7300 7 месяцев назад

    Thanks for the video! Now I don't have to depend on unreliable Google Colab GPU resource allocations!

  • @asylzatazaev3990
    @asylzatazaev3990 6 месяцев назад +1

    python -c "import torch; print(torch.__version__); print('CUDA Available:', torch.cuda.is_available()); print('CUDA Version:', torch.version.cuda)"
    >>
    2.3.0+cpu
    CUDA Available: False
    CUDA Version: None. Did everything step by step, but facing dead end, chatgpt4 also giving cycled answer which didnt change anything. The error says not found cuda, in reality it is too hard to find out why it is not available

  • @kanavsharma2609
    @kanavsharma2609 6 месяцев назад

    Thanks. It worked Like a charm

  • @鍾凱凱-y2c
    @鍾凱凱-y2c Год назад

    what is your python version
    I do all the video thing but got this error on my vscode
    ERROR: Could not find a version that satisfies the requirement torch (from versions: none)
    ERROR: No matching distribution found for torch

    • @barnaved2228
      @barnaved2228 Год назад

      same problem . please can you share any info that helped ? i need help

    • @鍾凱凱-y2c
      @鍾凱凱-y2c Год назад

      @@barnaved2228 I changed to use the conda to install pytorch, this can prevent any cudatoolkit or something
      pip problem easily to use.

    • @mist1190
      @mist1190 11 месяцев назад +2

      If still relevant, I first tried with the newest python version 3.12. I got the same error. But after uninstalling it and downloading python 3.9.10, it worked. On the pytorch website it says that pytorch supports versions of python from 3.8 to 3.10. Download one of these versions and see if it works.

    • @鍾凱凱-y2c
      @鍾凱凱-y2c 11 месяцев назад

      @@mist1190
      I change to use the miniconda to install pytorch, it will help you to install all the stuff you need, very user-friendly

    • @mayrarahmadianti9749
      @mayrarahmadianti9749 Месяц назад

      @@mist1190 thank you so much!!

  • @tufanerhantürkoğlu
    @tufanerhantürkoğlu 8 месяцев назад

    Thank you very much, it was useful

  • @zirtyzoggy5857
    @zirtyzoggy5857 Год назад

    Thanks buddy really worked for me

  • @javlontursunov6527
    @javlontursunov6527 11 месяцев назад

    why are u specifically installing visual studio 2019 ?

  • @Maryammmmy
    @Maryammmmy 3 месяца назад

    thanks, it was pretty helpful :)

  • @SainathLatkar
    @SainathLatkar 10 месяцев назад

    Thanks mate. You are a savior!

  • @hussainmir05
    @hussainmir05 6 месяцев назад

    anyone can help
    OSError: [WinError 126] The specified module could not be found. Error loading "C:\apps\python\lib\site-packages\torch\lib\fbgemm.dll" or one of its dependencies.

    • @D_A_R_K.
      @D_A_R_K. 3 месяца назад

      Same here is this solved?

  • @adityamohanta8902
    @adityamohanta8902 4 месяца назад

    Visual studio 2019 can't be downloded. It says "Sorry, we couldn’t find your subscription".

    • @SL7Tech
      @SL7Tech  4 месяца назад

      Choose the community version

  • @heatherbrm
    @heatherbrm 9 месяцев назад

    My Thesis thanks you!!! (And I do too!) 😁

  • @suteguma0
    @suteguma0 8 месяцев назад

    i only have intel GPU on my laptop and no nvidia hardware. Is that why I cant use cuda ?

    • @SL7Tech
      @SL7Tech  8 месяцев назад

      Yes you need a Nvidia GPU

  • @girimadhavchowdhury1281
    @girimadhavchowdhury1281 Месяц назад

    i have Intel(R) Iris(R) Xe Graphics drive can i install cuda tool kit

    • @SL7Tech
      @SL7Tech  Месяц назад

      Cuda is only for NVIDIA GPU

  • @MrStark-kn6xb
    @MrStark-kn6xb 3 месяца назад

    W mans this tutorial is a life saver

  • @soufianetaku3137
    @soufianetaku3137 Год назад

    Thanks man! you're the best

  • @PMTech-f9h
    @PMTech-f9h 7 месяцев назад

    Is anyone having trouble with Torch and CUDA in Stable Diffusion? Is that why you guys are looking for this? I am asking because I have that problem, and I want to ensure I am in the right place.

  • @xfd
    @xfd Год назад

    absolute legend...thank u sm

  • @javlontursunov6527
    @javlontursunov6527 11 месяцев назад

    Now I have visual studio 2022 community

  • @cornerwayne3442
    @cornerwayne3442 Год назад

    can it works for lower gpu in laptops?

  • @globbyboi
    @globbyboi 6 месяцев назад +1

    THANK YOU SOOOO MUCH THIS SAVED ME!!!!!!!!!!!!!!!!!!💝💖💗🧡💞💕💜💗💙💓💖💛💛💘💘💝🧡❤‍🔥❤‍🔥❤‍🔥

  • @zhong1557
    @zhong1557 Год назад

    its really helpful, thanks a lot.

  • @bharathrajupeta9633
    @bharathrajupeta9633 8 месяцев назад

    ur a life saver brother ❣

  • @krishitpatoliya779
    @krishitpatoliya779 10 месяцев назад

    says no mudule named torch

  • @abdullahiabdulwasiu
    @abdullahiabdulwasiu 11 месяцев назад

    Thanks
    But can this be install inside of anaconda?

  • @dawood1106
    @dawood1106 8 месяцев назад

    can you make one with tensorflow?

    • @SL7Tech
      @SL7Tech  8 месяцев назад

      I have already

    • @SL7Tech
      @SL7Tech  8 месяцев назад

      ruclips.net/video/Zn6Lp0xaXj4/видео.html

  • @xande21041969
    @xande21041969 8 месяцев назад

    Thank you man!

  • @syariffortask
    @syariffortask 8 месяцев назад

    Tell me why you using visual studio?

  • @bapanbairagya9642
    @bapanbairagya9642 11 месяцев назад

    Thank you so much bro

  • @rahulmohan9779
    @rahulmohan9779 Год назад

    Does this work for gtx 1050ti