Installing Latest TensorFlow version with CUDA, cudNN and GPU support - Step by step tutorial 2021
ฝัง
- เผยแพร่เมื่อ 7 ก.พ. 2025
- In this video I show you the freakishly difficult task of setting up and installing the latest tensorflow version with GPU support on Windows 10 :)
GO HERE FIRST:
www.tensorflow...
1. Microsoft Visual Studio
visualstudio.m...
2. the NVIDIA CUDA Toolkit
developer.nvid...
3. NVIDIA cuDNN
developer.nvid...
4. Python (check compatible version from first link)
conda create --name tf_2.4 python==3.8
5. Tensorflow (with GPU support)
pip install tensorflow
❤️ Support the channel ❤️
/ @aladdinpersson
Paid Courses I recommend for learning (affiliate links, no extra cost for you):
⭐ TensorFlow Specialization bit.ly/3FmEVK1
⭐ Machine Learning Specialization bit.ly/3hjTBBt
⭐ Deep Learning Specialization bit.ly/3YcUkoI
📘 MLOps Specialization bit.ly/3wibaWy
📘 GAN Specialization bit.ly/3FmnZDl
📘 NLP Specialization bit.ly/3GXoQuP
✨ Free Resources that are great:
NLP: web.stanford.e...
CV: cs231n.stanford...
Deployment: fullstackdeepl...
FastAI: www.fast.ai/
💻 My Deep Learning Setup and Recording Setup:
www.amazon.com...
GitHub Repository:
github.com/ala...
✅ One-Time Donations:
Paypal: bit.ly/3buoRYH
▶️ You Can Connect with me on:
Twitter - / aladdinpersson
LinkedIn - / aladdin-persson-a95384153
Github - github.com/ala...
Duuuuuude, thank you so much!!!! You can't imagine the shear sense of hopelessness that installing Tensorflow for GPU had brought me. I once tried for almost 2 days straight with no results. But you explained it perfectly: Structured, concise and easy-to -understand !!! You're a life saver, thank you so much.!!!
you got saved bruh 😆
please can you send to me the CUDANN files because the website do not open with me please
This is the best tutorial available on the web. After having more than 2 days of sleepless nights only for figuring out the problem in installation finally watched this video. It is superb .Thanks a lot man.
Commenting 1 Year, 3 Months and 4 Weeks since this video was uploaded. The method used to ensure you are able to get the latest tensorflow still works and I was able to successfully install tensorflow-2.8.0 for python 3.8, cuDNN 8.1 and CUDA 11.2. Thank you for this video, it is the only clearest guide I found to get tensorflow to detect my GPUs. The only hiccup I faced was that the latest version of visual studio at the time of this writing (Visual Studio 2022 community edition) didn't seem to be recognized by CUDA tool kit so I had to install an older version of Visual Studio (2019) and that solved my problem. Once again, thanks a lot for this video Aladdin!
hey, how do you install the older version? i only find the version for mac and it's unavailable for windows
@@azdaily2779 just google "msvc 2019"
I love that you explained it in a way that allowed me use updated version. Specifically explaining how to select all the correct version numbers of tensorflow, python, cuDNN, and CUDA was the best.
This is awesome! This will definitely help a lot of people! I almost spent the entire Sunday last week installing my first tensorflow env with gpu support, and it was painful. At the edge of giving up and I realized that I used conda to get tensorflow gpu library and it turned out to be the cause. Always use pip install. I wish this video came early and it would save me hours of frustration.
This video's instructions works right out of the box. All steps which are needed are in the video description. And as extra feature this video told also how I can use PyCharm with created environment. Respect! If you have also Windows10 and Nvidia card, this video is all you need to get Cuda working in 30 minutes.
Can it works with nvdia geforce gtx1650 ti
Thank you so much Aladdin! I'm just getting back to coding after 20 years of doing everything else. This tutorial was 100%!
Thanks a lot, after spending hours installing the correct versions and getting a lot of errors, this 9 min video is such a gem. Kudos. Saved a lot of time since then.
Spent 4 hours trying to configure this before this tutorial. Turns out I had conflicting versions of CUDA and tensorflow. Additionally, it appears that tensorflow 2.10 was the last version to support gpu acceleration on windows. Great video. Great explanations. Liked and subscribed.
Thanks, with out your comment I will go nuts, finally make it work after 3 hours
does it matter which windows version you have? I have 11
This is what got me. I had conflicting versions of CUDA with both Tensorflow and Pytorch, it seems pretty important that the versions correlate. Wish there was a straightforward way to keep updated
Shout out you! I've been trying so many different ways of doing this and yours is the only one that worked!
I love you brother. Even though I already installed CUDA multiple times tensorflow nearly broke me. I wish you a long and healthy life
LOL, I just yesterday went through hell figuring out the exact version of cuda, nvidia driver, pytorch and tensorflow version that supports my laptop.
From the bottom of my heart thanks for this amazing demonstration. I had so many bugs but after this tf gpu is running perfectly.
Thank you so much for making this video. I've followed several other tutorials which all ended up not working. Your tutorial is the only one that worked.
Thank you so much!!! I had installed cuda 11.5 and cudnn 8.3 both of which were not supported by latest tensorflow, downgraded to cuda 11.2 and cudnn 8.1 and everything works
thank you for the guidance, I want to clarify for people installing older version: you need to specify the tensorflow version while installing (pip3 install --upgrade tensorflow==2.*.*) otherwise it will install the latest. also you need to access archive in order to download older vscode versions, also for some reason you might need to install some packages manualy in anaconda in order to run code.
Thankyou so much!!!!! 😃😃, literally spend the last night without sleeping figuring out what is wrong with my pc, now i can seep with peace. Thanks once again.
Finally, ı read several blogs and watched several videos which all worthless. Perfect video thank you for help.
Thanks, it worked. And I had been looking over a lot websites, but your explanation was the most detailed.
jesus, why is this so complicated....the actual machine learning itself is much simpler....god this is so frustrating
I WAS HAVING THE SAME THOUGHT!! I NEED HELP 😭😭
Why? How can i help?
Yes, I hate this set up process. I just want to code and apply data science. Everything is a mess and way too complicated.
Got my new GPU and trying to set up CUDA with Python etc. Watched a lot of videos and read articles. Maybe it is just me, find it very hard to understand the instructions in Nvidia web. Wish someone there can rewrite the instructions for beginners. Your video is just fantastic! I will try your steps. Mind doing a quick check with Nvidia web and see if there are new steps to include as yours was done 2 years ago? If it is just the different program versions, then fine. Yours is much clearer than others, including those by some senior ML/DL youtubers. Many thanks.
Thanks for the awesome video! The only thing to keep in mind is that CUDA is currently (in Dec-2022) only compatible with Visual Studio 2019. Rest is great! Just don't waste time downloading visual studio 2022.
Thank you for this, tried other videos too, but hands down the joy after finally able to use my gpu for training
Thank you so much for this tutorial! It was so easy and I was able to set this up. I just spent like 5 hours trying to get it to work, but I was able to do it in like 10 minutes with this video. Thanks!
Thanks a lot ! I come back to this video every time I want to change Cuda Version. Best explanation on the internet !
Best Video. Follow each and every instruction as he said and you will have a working GPU for any card out there. Thanks Buddy
You're a legend! Thanks for looking out for the boys!
After 2 days of trying, I successfully start my training with GPU, thx bro! TF2.7 + cuda 11.2 and cudnn 8.1.
Finally!!!!
a complete and straight forward tutorial, thank you very much.
thank you!!! i was struggling so much and this was so helpful. you are a great teacher/instruction and a genius!!!
If anyone else is like me and tried this in March 2024, be reaaaally specifically accurate with the version numbers they tell you on the TensorFlow site as far as the requirements if doing a Python install. Not just any CUDA or CuDNN or Python, but bang-on what they tell you. I had to jump through hoops down to minor releases, and even eventually copy over DLL files from one package to another between folders at one point. But my old computer CPU only doing 20+ min trainings turned into new computer GPU-supported *44 second trainings* so it was absolutely worth it.
A huge shout to you... Been struggling for days
Thank you for uploading this amazing tutorial..!
thank you thank you thank you! - I was kicking myself for buying a laptop with an MX330 (as I initially thought it was CUDA incompatible). Literally wasted tens of hours over multiple weeks f***ing around trying to get it working - managed to get it working in 30mins while watching this video. only thing is the GPU doesn't have enough memory and I'm probably better off using CPU for large batch-size tasks - but at least I know the setup process for when NVIDIA drop those tasty 4x series cards!
Thank you so much dude! Your video really helped me figuring out which CUDA and cuDNN version that I needed, it is very appreciated :)
Loads of thanks, bro. After watching so many videos finally I did it.
Perfect instructions. Not one error along the way. Thank you
If I could sub 100k times I would. This video just saved me a ridiculous amount of time. Thank you so much for this video
Thanks man! Straight to the point and up-to-date! Love it :)
no one could explain better than this, Thank you so much
Thanks a lot, I was struggling for a long time to find out how to use MX150 in python, now the problem is solved. Thanks thanks and thanks a lot.
Its two years later and this still is a huge pain to install. I can't get it working again even with your guide, heavens knows if I'll ever figure out how I did it the first time. I recently had to wipe my computer and do a clean install of everything and my functional TF build is one of the things that I lost.
Thank you clearest instructions on youtube for this topic !
Thank you very much. It works (If have problems when installing, just manually install it and uncheck the one with problems(e.g. visual studio integration) )
absolute king. spend 2 days trying to figure this shit out lol
you may be Aladdin but you did the job of a Jeanie to me, Thanx Bro!
haha, I'm glad if I saved you some time bro!
@@AladdinPersson Bro your videos are very informative and super cool, look forward to learn DL from you and please make more videos on flutter integration with tensorflow
An excellent demo that can be generalized to newer versions and is handy for setting up Pycharm as well.
Worked perfectly with tf 2.6.0 (11.2.2 CUDA/ 8.1.1 cudnn) thanks for the tutorial!
What's your graphic card
@@kommanachandraganesh1080 3070
Yayyyy successfully installed GPU supported Tensorflow.. Thanks a ton Bro 🔥🔥🔥
Thanks so much. This is very helpful. I had tensorflow working but I had to reformat and it was so annoying getting it working again but this video is a great resource.
thank you so much bro......all the documentation was so complicated and cluttered....u made it so simple!!! :)😊
Thanks bro it's help me alot
Instant like! Great Video Men! Greetings from Portugal
Thank you so much for the video!
Here it is, 2023. For anyone facing a problem after following his steps, please downgrade your version of TensorFlow to a version below 2.10, such as 2.8. Besides that, you could Install Ms. VS with a version below 2022, such as MS VS 2019.
the best TensorFlow GPU tutorial on youtube🙌🙌
Hey Bro! Thanks for such a wonderful video and it installed successfully. I wasted one day with following one medium article. You are the saviour.Thanks man.
This is the best tutorial ever, thanks man!!
Thank you!! Your tutorials are much appreciated
Thanks a lot ! Finally a working setup after hours of trial and error
Thank you man, I follow your instructions and it worked flawlessly
Thanks a lot. Wasted almost half a day to figure out how to make this work.
I appreciate you deeply from the bottom of my heart. I eventually could overcome my problems.
Thank you indeed for this step by step explanation. Very clear and simply laid out.
love you man, i been weeks looking around but your videosolved the issue
Dude, that is just what I needed, thanks!
Clicking on this video, one of the best decisions I've made in this week
Best tutorial ever.... five star for explaining everything.
trying to install tensorflow on my digitalocean linux space. I am a newbie. Nice to see that I have to determine the version of tensorflow and match it with Cuda because I was getting cuda errors. That helps. Thanks
they have directions in digitalocean on doing it, but they are two years old and no longer work . Have to find another webhost. Meantime it always worked ok on my laptop. Who knew it would be do tough to deploy a tensor flow, flask app
Thank you so much dude .This is best video finally it helped me a lot🙌🙌
Great explanation, and also gives an insight on how to install it, if there are any updates because I installed tensorflow 2.6, and the method still works. Love you! XD
goat!! thanks a lot new subscriber from Colombia
Great and detailed video! Thank you so much Aladdin!!
great. almost spent 9 hours on installing cuda and then I found this one......!!!
Thanks bro... Glad that I found your channel ❤😍😎
Thanks a lot bro!!.. been struggling with this for the past 2 days
I'm glad it was useful!
Thanks for the tutorial! Can you please specify why the visual studio installation is necessary? It looks like you don't use it afterwards.
This still works with TF 2.10 and Python 3.10.5 when installed with Visual Studio 2022, CUDA 11.2 and cuDNN 8.1.1. Thanks!
Thank you so much bro! This is very helpful!
It worked! Thanks so much!
Dude! You are too awesome! Man! damn. Saved me from a great headache
thank you brother it was a great help😊❤
This is a great video, Thanks man!!
Thanks a lot for the tutorial!! It works like charm!
Thank you very much, finally it's worked properly.
Thanks a lot! this was as precise and easy as it gets
You made it easy thanks man
Much Appreciated🔥🔥🔥🔥
Thank you, such a great help! Much appreciated!
thank you. after 5 attempt now i able to run the code via GPU
Can't thank you enough man you are the absolute best 🔥🔥🔥
Thank you Aladdin Persson. It works now.
Thank you!! This is helful. keep up the good work.
THANK. YOU. SIR! You're a star dude!
Epic video, really helped.
Thanks a lot for the tutorial. It worked perfectly.
Thank you so much for the great video. I really appreciate that. 🙏
Thank you so much for this tutorial !!!
Thank you soo much! Worked perfecty!
If you guys got any errors, try pip installing tensorflow-gpu instead of just tensorflow
thank you
WORKS!! thank you !!!
Thanks a lot my man!! It is finally working!!
Glad it helped!