Install Tensorflow/Keras in WSL2 for Windows with NVIDIA GPU

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.ย. 2024
  • Welcome to this tutorial on how to install TensorFlow/Keras for use with a GPU on Windows! In this video, we will guide you through the process of setting up TensorFlow/Keras to utilize the power of your GPU, specifically an NVIDIA RTX 6000 (Ada).
    Before we get started, it's important to note that the current versions of TensorFlow can only be installed using Windows Subsystem for Linux 2 (WSL2). So, if you haven't already installed WSL2, we will show you how to do that as well.
    Once you have WSL2 set up, we will guide you through the steps of installing the necessary drivers, setting up your environment variables, and installing TensorFlow/Keras with GPU support. We'll also show you how to verify that everything is working correctly.
    As mentioned earlier, we'll be using an NVIDIA RTX 6000 (Ada) for this tutorial, which was kindly provided by NVIDIA. However, the steps we cover should be applicable to other NVIDIA GPUs as well.
    By the end of this tutorial, you'll have a fully functioning installation of TensorFlow/Keras with GPU support on your Windows machine, ready to take on your machine learning tasks with lightning-fast performance.
    So, grab a cup of coffee and join us as we dive into the world of TensorFlow/Keras with GPU support on Windows!
    TensorFlow Install Docs
    www.tensorflow...
    NVIDIA RTX 6000 Ada
    www.nvidia.com...
    NVIDIA Driver
    www.nvidia.com...
    0:19 State of Windows TensorFlow in 2023
    1:34 NVIDIA Driver
    3:00 Install WSL2
    3:31 Install Miniconda (Python)
    4:42 Create Virtual Environment
    5:27 Check GPU
    5:37 Install CUDA
    6:46 System Path
    7:32 Install Tensorflow
    8:19 Verify Install

ความคิดเห็น • 159

  • @tjkeranen
    @tjkeranen 6 หลายเดือนก่อน +19

    2024, and this video is still relevant!
    The installation instructions at tensorflow website have changed, and I couldn't get any GPU support to work with them. The "old" command flow listed in this video still works just fine!
    One note: after following your instructions, I had to downgrade Tensorflow to version 2.10.
    With 2.11 it would install and could be loaded correctly, but then it would crash when trying to train or run a model.

    • @bringon_
      @bringon_ 4 หลายเดือนก่อน

      You sir are a true hero. Thank you so much!

  • @marcominoia8804
    @marcominoia8804 ปีที่แล้ว +12

    PERFECT!
    JUST DONE!
    This is the best procedure that i've found on internet.
    Remarks: the TF web page now has new instruction for the GPU set-up section. I used these new ones and all goes well (10/04/2023).
    Thank you Jeff.

    • @makers_lab
      @makers_lab ปีที่แล้ว +1

      Readers should realise, but 10/4/2023 :)

    • @plumberski8854
      @plumberski8854 ปีที่แล้ว

      You got this done without the old method with MSVS, Cuda, CuDNN installation? Thanks.

  • @michaelmurillo1878
    @michaelmurillo1878 ปีที่แล้ว +8

    Bro I freaking love you!! Thank you!
    As a tip for everyone trying to install this with gpu support, stick to the versions he's using in the video. I followed the steps but used the version in the TF instructions and it failed.

    • @plumberski8854
      @plumberski8854 ปีที่แล้ว

      You got this done without the old method with MSVS, Cuda, CuDNN installation? Thanks.

  • @danielmacedo1910
    @danielmacedo1910 11 หลายเดือนก่อน +3

    Jeff, I cannot thank you enough. You've not only shown us the entire installation process but also explained it. Thanks a lot!

  • @aneeshkalita7452
    @aneeshkalita7452 ปีที่แล้ว +7

    Your work on this subject and this simplified tutorial for installing CUDA and Tensorflow is highly appreciated Professor. Thank you

  • @Malleyka
    @Malleyka ปีที่แล้ว +9

    Thanks for the new tutorial! Been struggling for the last 3 weeks to have tensorflow detect my laptop's dedicated gpu. It only sees my integrated gpu. I've gone through many forums, web searches etcc.. and I've tried at least 5 different tutorials including your old ones without success. I'll try this one tonight. God, I hope it works because this is driving me nuts and it's become an obsession of mine to get it to work 😅

    • @eMgotcha77
      @eMgotcha77 ปีที่แล้ว

      Isn't this a BIOS problem? I think i had something similar with my laptop... 🤔
      Anyway, you could force a CUDA-GPU in nVidia Control Panel -> Manage 3D Settings -> Program Settings.
      BUT i'm not sure if it works with WSL.

    • @Malleyka
      @Malleyka ปีที่แล้ว

      ​@@eMgotcha77​Bios problem, could you be more specific? Also, how do you force a CUDA-GPU in Nvidia control panel. I've tried various settings permutations in the nvidia control panel but it hadn't solved my issue in the past. Also, not sure if it's related but running the nvidia-smi command brings up my dedicated gpu but the "volatile uncorr. ECC" value shows "N/A" which is not what I see on other nvidia-smi output screenshots in various forums.

    • @spencerduncan7006
      @spencerduncan7006 ปีที่แล้ว

      Hey @Malleyka I am having the exact same problem and it's driving me crazy. I run tf in WSL on my laptop and when I monitor the nvidia GPU there is 0% activity. If you have found a solution I would greatly appreciate any tips you have to share!

    • @Malleyka
      @Malleyka ปีที่แล้ว

      @@spencerduncan7006 Bro, I kept trying other things afterwards and the solution I ended up going for was drastic. Drastic as in getting a new machine and listing the old one for sale. On the new machine, I followed the same instructions and got it to work without any issues in 30mn or so. Not what I was hoping for but it came to that in the end.

    • @plumberski8854
      @plumberski8854 ปีที่แล้ว

      You got this done without the old method with MSVS, Cuda, CuDNN installation? Thanks.

  • @ryanprasad2090
    @ryanprasad2090 ปีที่แล้ว +3

    Hi Dr. Heaton. I was watching your videos last year and messed around with TensorFlow on my own. I just finished up an MSCS bridge program and am now in an AI program. Thanks for getting me on this path.

  • @asmit10z
    @asmit10z ปีที่แล้ว +3

    As others have said, perfect video. Interesting thing of note - I found your video by giving GPT4 with VoxScript the following prompt:
    I want to learn more about creating a lstm in pycharm inside wsl2 to have tensorflow use my gpu. Please find a list of no more than 10 youtube videos that will expand my knowledge to an expert's level on these topics.
    Your video was the number one result. This wasn't the entire chat history but I found it interesting regardless!

  • @milesperhour23
    @milesperhour23 9 หลายเดือนก่อน +1

    Jeff! Thank you so much for the information. It's so much better than rifling through the docs and GitHub issues. Subscribed!

  • @makers_lab
    @makers_lab ปีที่แล้ว +3

    Great, thanks for this. May 21, current versions give Python 3.10 and TF 2.12, and a 4090 shows up fine after install; reboot wasn't required and followed the TF notes verbatim. Whether running models will work that I built and have been using for a couple of years with early TF2 and a 1070 will be another matter! Also created a .wslconfig in the Windows home dir to increase RAM from the default of 50% physical with:
    [wsl2]
    memory=56GB
    processors=8
    swap=16GB

  • @hamidddshekoohiii8267
    @hamidddshekoohiii8267 ปีที่แล้ว +1

    Oh gooosh. It has just solved the crazy problem I was dealing with. Thank you 👍👍👍

  • @SPalcewski
    @SPalcewski ปีที่แล้ว +1

    Thank you for producing this video!

  • @jacobusstrydom7017
    @jacobusstrydom7017 3 หลายเดือนก่อน

    Thanks man this was a good video. Nothing as frustrating as installing Tensorflow on windows.

  • @cameronblume3816
    @cameronblume3816 8 หลายเดือนก่อน

    10 months later this is slightly dated compared to the current instructions on the TensorFlow site, but it's still close enough that I was able to figure it out. Thanks!

    • @jasjeetsingh1401
      @jasjeetsingh1401 7 หลายเดือนก่อน

      Hi! Can you explain what you did that made it work because I am getting stuck at the pip install tensorflow==2.11 step, it wont let me install tensorflow 2.11, but the process preceding it has gone just as explained in the video

    • @cameronblume5108
      @cameronblume5108 7 หลายเดือนก่อน

      It’s hard to say for sure from this information, but one thing that I encountered a lot of issues with is that both the WSL2 install and any virtual environments within WSL2 are completely clean slates that don’t have any of the files, folders, or programs of your main windows machine. So for example, if you want to pip install something in WSL2 or a virtual environment within WSL2, you would first need to install pip in that environment.

    • @cameronblume5108
      @cameronblume5108 7 หลายเดือนก่อน

      ChatGPT is also really good at explaining computer error messages, especially if you supplement them with the context of what you’re trying to do

  • @briankoech4307
    @briankoech4307 6 หลายเดือนก่อน

    This is a brillant demonstration. Thank you.

  • @TheNokoma
    @TheNokoma 9 หลายเดือนก่อน

    Thank you so much, man! It worked with a few tweaks. I used the newest versions of cuda and tf, it worked fine!

  • @bdouglas
    @bdouglas 10 หลายเดือนก่อน

    The best of the videos I've seen! Thank you!

  • @kenchang3456
    @kenchang3456 ปีที่แล้ว

    Hi Jeff, thank you very much for this video. You too all the guess work out of the process which, for me is the path of least resistance 🙂

  • @Noir_SD
    @Noir_SD ปีที่แล้ว

    Fantastic video. clearly explains everything that you need to know.

  • @davidwhite2011
    @davidwhite2011 ปีที่แล้ว +9

    So Py Torch 2.0 is a much better fit with Windows? Thank you Path of Least Resistance!

    • @HeatonResearch
      @HeatonResearch  ปีที่แล้ว +3

      PyTorch install is a copy/paste from their homepage.... TensorFlow is about 5 pages of instructions that usually works (except when it doesn't). Plus TensorFlow is bailing from just about every aspect of Windowsd.... (but I am not frustrated with their direction, at all 😆😠)

  • @zeuztrumpeter8014
    @zeuztrumpeter8014 ปีที่แล้ว

    This really helped me. Thanks a lot Dr. Heaton

  • @eranfeit
    @eranfeit ปีที่แล้ว

    Thank you very much !!
    I love your detailed explanations.
    Eran

  • @VladislavSoren
    @VladislavSoren ปีที่แล้ว

    It's very helpful guide!
    Thanks very much 😉

  • @maximinmaster7511
    @maximinmaster7511 ปีที่แล้ว +1

    Thank you Jeff.

  • @sandeepkashyap7239
    @sandeepkashyap7239 ปีที่แล้ว

    That worked flawlessly thank you

  • @Lokithad
    @Lokithad ปีที่แล้ว +4

    on wsl2 windows 11, after installing, i get the error after importing tensorlow
    ModuleNotFoundError: No module named 'tensorflow'
    Can someone help? It's urgent

    • @saikiranreddy01123
      @saikiranreddy01123 ปีที่แล้ว

      i'm also having the same issue , did you solved it?

    • @algymudadada7684
      @algymudadada7684 ปีที่แล้ว +2

      Make sure that you have activated the "tf" environment before running the testing script, otherwise it will run from the base environment which is not the one which we installed tensorflow in.
      To enter tf environment simply run; conda activate tf
      Then run the testing script to see if it worked

  • @joxa6119
    @joxa6119 11 หลายเดือนก่อน +1

    I think they already update their docs. I don't found the miniconda part.

  • @daniyal4757
    @daniyal4757 ปีที่แล้ว +2

    hi
    i get this error when i type "nvidia-smi"
    NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.

    • @pootispootingburg258
      @pootispootingburg258 ปีที่แล้ว

      I had same problem. To Fix, I needed to set my container from WSL1 to WSL2. This is done like this: wsl --set-version 2

  • @albusdd1225
    @albusdd1225 ปีที่แล้ว

    Thank you so much!!! I have been struggling on how to setup tf GPU for wsl

  • @dhruvil8
    @dhruvil8 ปีที่แล้ว +1

    It shows an empty list at the end :(
    How do i start fresh by uninstalling everything and reinstalling.. i have tried today multiple times but each time same results.. i do have a compatible gpu… please help

  • @Retalak2
    @Retalak2 5 หลายเดือนก่อน +1

    It is absurdly difficult to get this working properly.

  • @imadou5521
    @imadou5521 ปีที่แล้ว

    THANKS A LOT JEFF !!!!

  • @Falstad88
    @Falstad88 ปีที่แล้ว +1

    7:45 I don't get it. You said "do not install 2.11" as instructed, but then you install 2.11 as instructed?

  • @jupa8002
    @jupa8002 ปีที่แล้ว +2

    How do I active this newly created environment in Pycharm?

  • @Paris-hu3qd
    @Paris-hu3qd ปีที่แล้ว

    Good job, its worked

  • @phamquang5535
    @phamquang5535 ปีที่แล้ว

    thank you good dude.

  • @sobirjondavlatov7375
    @sobirjondavlatov7375 ปีที่แล้ว +1

    I installed everything the same way as it's said in official Tensorflow site, however, the system path are not automatically configured, so I have to do it manually every time. Please, help

    • @omsonawane2848
      @omsonawane2848 ปีที่แล้ว

      Follow the section instructions after setting environment paths where it instructs to create activation file and more two commands given for automatic configuration.

  • @virendrapanchal2981
    @virendrapanchal2981 ปีที่แล้ว

    I have got an error when running the final command to check whether the gpu is activated or not. The error is “AttributeError: module ‘tensorflow.python.platform.self_check’ has no attribute ‘preload_check’. How to solve this??

  • @blackbigdeath
    @blackbigdeath 8 หลายเดือนก่อน

    not works. I installed all components as video says. Tensorflow not seen GPU. I lose many times to install necessary libs, as shown at video end. I got: could not open file to read NUMA node: /sys/bus/pci/devices/0000:03:00.0/numa_node. I hope i can solve this over metod.

  • @nishantmhatre9885
    @nishantmhatre9885 ปีที่แล้ว

    I am bit confused, so do I have to install jypter inside wsl and write code there? but all my file present in my local windows system

  • @yl95
    @yl95 ปีที่แล้ว

    dank je wel!

  • @vivekmusafir2304
    @vivekmusafir2304 6 หลายเดือนก่อน

    what happens when I use cmd instead of power shell?

  • @shyamganesh2699
    @shyamganesh2699 11 หลายเดือนก่อน +1

    Link for miniconda installation site pls

  • @xntumrfo9ivrnwf
    @xntumrfo9ivrnwf ปีที่แล้ว +3

    Ok but how do I use the conda environment that we just created in wsl if I'm writing code and using notebooks in e.g. VSC in Windows?

    • @jagadeeshk6652
      @jagadeeshk6652 ปีที่แล้ว +2

      Activate the conda environment in vscode. Use Jupyter

    • @xntumrfo9ivrnwf
      @xntumrfo9ivrnwf ปีที่แล้ว +6

      @@jagadeeshk6652 yeah thanks but what I meant is how do you refer to the venv you created in WSL while using VSC on Windows. After a bit of research I figured out you need to use the WSL extension in VSC

    • @cannabaro1442
      @cannabaro1442 ปีที่แล้ว +2

      @@xntumrfo9ivrnwf It was so critical point man, and thank you for your reply here!! Everything is done!

    • @ichbin1984
      @ichbin1984 ปีที่แล้ว +1

      @@xntumrfo9ivrnwf Does it work for you? Whenever I want to fit my model, it says "libdevice.10.bc" not found

    • @xntumrfo9ivrnwf
      @xntumrfo9ivrnwf ปีที่แล้ว +1

      @@ichbin1984 hey yes it does, but usually not without having to figure out random errors etc. Just today I had to change my torch version… see if there are similar issues on google

  • @geraniumtech4106
    @geraniumtech4106 10 หลายเดือนก่อน

    Do any of those errors on your screen mean anything important? I have the same ones and I am not sure whether I need to fix it or whether tensorflow should be able to run using my gpu just fine

  • @harshitdabhi1503
    @harshitdabhi1503 ปีที่แล้ว

    Hi, In powershell it shows gpu devices, but in Jupiter nootbook it is not showing me gpu device, please help

  • @TravisMeyerPhD
    @TravisMeyerPhD ปีที่แล้ว

    I'm running Windows 11, directML, tensorflow2.12, python 3.10 just fine. the only funky buisness is tensorflow databases, I can only get 3.2.1 (latest v3) to work, tfds 4 is just buggy. So even though Windows native DML claims not to work natively, it's defnitely worth a try. The nice part is it works for my AMD RX6800 and RTX 3080! the 6800 has 16 gigs of VRAM - sweet!!!

  • @abfig78
    @abfig78 ปีที่แล้ว

    Thanks!

  • @ansar8054
    @ansar8054 2 หลายเดือนก่อน

    guess what
    my 'wsl --install' command having errors

  • @gayanukaamarasuriya
    @gayanukaamarasuriya 6 หลายเดือนก่อน

    Is there a video relevant to install all these in 2024. Some websites are different now.

  • @Manyxbox
    @Manyxbox 11 หลายเดือนก่อน

    I have an integrated GPU and a GTX 1650 in my laptop. At the end, was I supposed to get 2 gpu's as a return?

  • @alyraafat6837
    @alyraafat6837 11 หลายเดือนก่อน

    Thank you for providing an amazing video but how to use jupyter notebook after all the installation is done so that I can use the gpu?

  • @hatefnasirian2895
    @hatefnasirian2895 ปีที่แล้ว

    Very Very Great 🚀🚀

  • @redkiller250
    @redkiller250 ปีที่แล้ว

    Do you have a tutorial for working this with Rstudio on a windows system with GPU?
    I've been looking into Rstudio-server on WSL with Tensorflow and Keras but having no luck installing it.

  • @MohammadAbuHmead
    @MohammadAbuHmead ปีที่แล้ว +1

    I followed all instructions in the video but no gpu listed

    • @pronoybiswas3810
      @pronoybiswas3810 ปีที่แล้ว

      actually he has no idea about the situation of viewer. we are literally struggling but at the end he are begging for subscribe. but did not solve our problem. rubbish....

  • @InsightWeaver
    @InsightWeaver ปีที่แล้ว

    Hi Jeff, I have native windows 11, AMD Ryzen CPU, nvidia 3060 GPU. I tried all of your videos, but I am still stuck. which version or Pytorch and Tensorflow should I install, so they both can run smoothly, which CUDA and CUDAnns should I install ?
    THANKS

  • @abd_el_ouahab3824
    @abd_el_ouahab3824 ปีที่แล้ว

    well explained, thanks a lot.
    by the way do you have another tutorial about the same thing but for ubuntu 22.04.

  • @rolandmackintosh5163
    @rolandmackintosh5163 3 หลายเดือนก่อน

    Can I get your keyboard model? I like the sound it makes! would like to buy one

  • @quantumthoughts2698
    @quantumthoughts2698 ปีที่แล้ว

    sir, after installing run a small Deep Learning Model on GPU like as the part of tutorial so that in case we can check for runtime problems

  • @anshulbisht1350
    @anshulbisht1350 ปีที่แล้ว

    how to use jupyter notebook by the same, after all the installation is done?

  • @apheironnn
    @apheironnn ปีที่แล้ว

    Is there any way to also install jupyter notebook on wsl2 and run deep learning on GPU kernel ?

  • @developer53
    @developer53 ปีที่แล้ว

    hey so do i have to repeat this all steps for a new project or venv

  • @vladimirbosinceanu5778
    @vladimirbosinceanu5778 ปีที่แล้ว

    This didn't work for me and I followed it step by step (on windows 11). I went for Windows native with tensorflow 2.10 instead for the moment.

  • @marconaumann3187
    @marconaumann3187 ปีที่แล้ว +1

    At 7:11 you (and TF) describe how to set the enviroment variable and make it more convienient so you dont have to do so every reboot... / restart of wsl...
    Well... this works absolutly not for me... and I am going crazy at this point trying to fix it...
    I have the file in the path... and have "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$CONDA_PREFIX/lib/:$CUDNN_PATH/lib" written inside... (If I check with nano)
    Does anyone have insight into that?

    • @sergiorosales8658
      @sergiorosales8658 ปีที่แล้ว

      I got the same issue!! I solved by editing the *env_vars.sh* (as you did) and added the line:
      CUDNN_PATH=$(dirname $(python -c "import nvidia.cudnn;print(nvidia.cudnn.__file__)"))
      before export LD... worked perfect at the end. This creates the CUDNN_PATH variable everytime it reboots.

  • @legoliamneeson9386
    @legoliamneeson9386 6 หลายเดือนก่อน

    Oh hey are you able to make an updated review I think stuff has changed

  • @ranati2000
    @ranati2000 ปีที่แล้ว +1

    Thanks but i am not sure how can i integrate it to vs code now

    • @hamzaazeem4602
      @hamzaazeem4602 ปีที่แล้ว

      Me too I am trying to use the new environment with Pycharm but I can't, If you found a solution to this problem please tell me

    • @jupa8002
      @jupa8002 ปีที่แล้ว

      @@hamzaazeem4602 me too, did you find any solution?

    • @mirrorslav5803
      @mirrorslav5803 ปีที่แล้ว

      @@hamzaazeem4602 anything new?

    • @hamzaazeem4602
      @hamzaazeem4602 ปีที่แล้ว

      @@mirrorslav5803 I found a way to use and install cuda environment inside a linux environment, But I could’t use it outside of jupyter notebook and I couldn’t access any folders or files stored in windows

  • @bassemyasser
    @bassemyasser 11 หลายเดือนก่อน

    After Following that , how to use this to run pycharm ?

  • @KaijaKFanpages
    @KaijaKFanpages 3 หลายเดือนก่อน +1

    I am SO FRUSTRATED that there is no native support. I do not think that I am ever willing to move into Linux world. Found it frustrating, overly difficult and taking long hours during the night in the university, so I basically gave up on Linux years and years ago. Maybe that was a mistake I now find, but I am just too damn old to move over anymore.

  • @ngochieunguyen5801
    @ngochieunguyen5801 หลายเดือนก่อน +1

    Hi thanks for video, do we have github link for this?

    • @HeatonResearch
      @HeatonResearch  24 วันที่ผ่านมา

      No, sorry, but I do have links to the source articles in the description.

  • @plumberski8854
    @plumberski8854 ปีที่แล้ว

    Excellent! With this, I do not need to do the MSVS, CUDA, CuDNN installation? If so, this is so much simpler. Thanks.
    P/S Did the steps and finally got device:GPU:0 !!! I was about to give up. Many thanks!
    Appreciate help on:
    A. I did it the old way installing MSVS, Cuda, CuDNN. Not successful. Can I now uninstall MSVS? I assume with WSL2, no need for C compiler now in MSVS and thus can uninstall MSVS? MSVS takes up 29 GB!
    B. Can I remove the installed Cuda toolkit and CuDNN directories from my old method attempt?
    C. Tried to run this " import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))" in Pycharm but got error - AttributeError: module 'tensorflow' has no attribute 'config'. How can I enable tensorflow GPU Cuda access in Pycharm?
    Many thanks! Finally.
    PP/S Found out that only Pycharm Pro can use WSL interpreter. I am using Pycharm community. Pity.

  • @todd0695
    @todd0695 6 หลายเดือนก่อน

    I generally followed these instructions (2/27/24), but had to use conda to install tensorflow to get the test print() command to run. Mixing pip and conda to install into a conda environment is problematic. Pip did the install for me, but it went into a different location than conda installs to, and that location wasn't on the search path. (In fact, pip installed tensorflow into ~/.local/lib/python3.10/site-packages, outside of any conda environment.

    • @bringon_
      @bringon_ 4 หลายเดือนก่อน

      Try to open the Python Env from the Linux WSL in a Kernel on VS Code. When you do this, just run the "%pip install library" (with the % in front) on the Code cell, it should install the libs on the path of the Python Enviroment.

  • @sean_ta
    @sean_ta ปีที่แล้ว

    after all this how can I run the code from VS code
    How can I address this python evironment to vs code?

  • @crleon87
    @crleon87 3 หลายเดือนก่อน

    One key step is: reboot before test the tf installation.

  • @derick-louietrinidad9205
    @derick-louietrinidad9205 ปีที่แล้ว

    thank you thank you thank you

  • @fahimbinaminPersonal
    @fahimbinaminPersonal 5 หลายเดือนก่อน

    It is not working anymore even though it worked earlier. (28 March 2024)

  • @wisnu_aryn
    @wisnu_aryn ปีที่แล้ว

    and now how to connect the environment into the code editor like jupyter notebook or pycharm? like i little bit confuse about is it integrated with windows application?

    • @plumberski8854
      @plumberski8854 ปีที่แล้ว

      I am using Pycharm community. Just learned that only Pycharm Pro can use WSL interpreter. Pity!

  • @martinvalenciaalejo523
    @martinvalenciaalejo523 ปีที่แล้ว

    hello when i verify install, this message appears "Could not find cuda drivers on your machine, GPU will not be used." i install the tensorflow 2.13, cudnn 8.6 and cuda 11.8 and i have rtx3060ti with the NVIDIA STUDIO, what is the possible problem?

    • @mohananant
      @mohananant 11 หลายเดือนก่อน

      Hi facing same problem. Could you solve it?

  • @cannabaro1442
    @cannabaro1442 ปีที่แล้ว

    Dear man! please help to use opencv in the environment you teached, I think there is some crash with it but I cant solve!!

  • @595tomek
    @595tomek ปีที่แล้ว

    GODLIKE

  • @johncraven3560
    @johncraven3560 ปีที่แล้ว +2

    I have tried this setup in two machines and i keep getting issues about “no numa support”. Have looked around for solutions, nothing worked so far. Anybody else having this issue?

    • @krishnagoyal7351
      @krishnagoyal7351 ปีที่แล้ว

      same error kept showing me also

    • @johncraven3560
      @johncraven3560 ปีที่แล้ว

      @@krishnagoyal7351try adding this environment var.
      export TF_ENABLE_ONEDNN_OPTS=0

    • @saikiranreddy01123
      @saikiranreddy01123 ปีที่แล้ว

      Yes ,I'm also getting the same error and jupyter notebooks kernel is dying

    • @krishnagoyal7351
      @krishnagoyal7351 ปีที่แล้ว

      @@saikiranreddy01123 u have to run all new commands which is updated at tensorflow site while runing all commands step by step u will face no error 😊

    • @saikiranreddy01123
      @saikiranreddy01123 ปีที่แล้ว

      @@johncraven3560 I tried it , the kernel still keeo dying.

  • @jessmac2379
    @jessmac2379 ปีที่แล้ว

    Does WSL2 method made the TF processing slower compared to Native Installation method?

    • @HeatonResearch
      @HeatonResearch  ปีที่แล้ว

      Often slow... no pinned memory, however, TF no longer supports native, so you would be restricted to an older version of TF.

    • @jessmac2379
      @jessmac2379 ปีที่แล้ว

      @@HeatonResearch ok, thanks Professor. ❤️ I tried TF v 2.10 since it is said it's the last version with native support, but every method to install that version failed. 😭

  • @JavierGarcia-td8ut
    @JavierGarcia-td8ut ปีที่แล้ว

    Thank you for this tutorial, I was able to install tensorflow!!
    But now I have problems with TensorRT, can you explain how to install it? I can't run my scripts in WSL it give me a lot of errores that I haven't on native windows

    • @JavierGarcia-td8ut
      @JavierGarcia-td8ut ปีที่แล้ว

      I solved my problems copying the "nvvm" folder from cuda to the floder of the script, not the cleanest solution, but it works

    • @bharathkonatham6043
      @bharathkonatham6043 ปีที่แล้ว

      i also got the same issue, and got irritated after spending hours on it and I uninstalled everything..heck

    • @JavierGarcia-td8ut
      @JavierGarcia-td8ut ปีที่แล้ว

      @@bharathkonatham6043 I abandoned the idea of TensorRT, I found that TensorFlow needs to be builded with TensorRT to be able to use TensorRT, but TensorRT it is for real time processing as video analysis. Since I do not need it, I abandoned the idea.
      But I was able to run my scripts as I descrived in my other comment, copying the "nvvm" folder to the folder of the script
      I ask to ChatGPT4 and it helpme a lot

  • @kdlin1
    @kdlin1 ปีที่แล้ว +1

    Which is more preferrable to run TF/PyTorch, Windows 11 or WSL2 on Windows11? Thanks.

    • @HeatonResearch
      @HeatonResearch  ปีที่แล้ว +5

      I would stay in native Windows if I can. WSL2 does not support memory pinning, which is used in many models for a performance boost.

    • @kdlin1
      @kdlin1 ปีที่แล้ว +1

      @@HeatonResearch Thank you.

  • @Neptade
    @Neptade ปีที่แล้ว

    hey! Great video! I was able to install tensorflow successfully but I get these warnings when I run the tests :
    This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
    To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.
    could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
    Your kernel may have been built without NUMA support.
    what would need to be done to remove these warnings? Thanks!

  • @iliaspapadopoulos9861
    @iliaspapadopoulos9861 ปีที่แล้ว

    Do i need to install a specific version of anaconda for this to work?

    • @HeatonResearch
      @HeatonResearch  ปีที่แล้ว

      Not necessarily, unless it is something more than a few years old

  • @Rahil-jg4jg
    @Rahil-jg4jg ปีที่แล้ว

    Thank you for this useful video.
    please help me to rebuild TensorFlow with the appropriate compiler flags in Windows 10 WSL2.
    because of this information message:
    I tensorflow/core/platform/cpu_feature_guard.cc:182] This TensorFlow binary is optimized to use available CPU instructions in performance-critical operations.
    To enable the following instructions: AVX2 FMA, in other operations, rebuild TensorFlow with the appropriate compiler flags.

  • @chandramoulikoushik4389
    @chandramoulikoushik4389 ปีที่แล้ว

    Anyone with Nvidia MX450?

  • @aa-xn5hc
    @aa-xn5hc ปีที่แล้ว +1

    Most people are on win10

  • @GamingAmbienceLive
    @GamingAmbienceLive 6 หลายเดือนก่อน +1

    I am going to curse a lot because ive been at it for a week and still do not have the fucking thing working.
    WHY ARE THE NEW INSTRUCTIONS ON THE WEBSITE NERFED. There are no step by step instructions anymore, there is no instruction to install miniconda etc, everything is out of sequence please make a new tutorial on the latest version of tenrosflo cuda etc i cant run anything I am about to nuke the ubuntu i installed and start from the beginning fuck this

    • @hareram4233
      @hareram4233 4 หลายเดือนก่อน +1

      yes did it get work for u? i also need solution

    • @GamingAmbienceLive
      @GamingAmbienceLive 4 หลายเดือนก่อน +1

      @@hareram4233 yeah I got it to work eventually. You need to follow the table of compatibility that is on tensorflow website

    • @GamingAmbienceLive
      @GamingAmbienceLive 4 หลายเดือนก่อน +1

      @@hareram4233 yes just match the versions correctly

    • @hareram4233
      @hareram4233 4 หลายเดือนก่อน +1

      Worked for me by using 2.15 version...there is some issue with 2.16 right now...hope for others this comment helps... In video he used 2.11 u can use 2.15... and also follow miniconda steps...even tho official website anymore doesn't have miniconda steps

  • @DSDecay
    @DSDecay 6 หลายเดือนก่อน

    I fuckinghate conda. Can you do it w/o it?

  • @kristopherhuber3356
    @kristopherhuber3356 ปีที่แล้ว +2

    Jeff, thank you for your videos. I've been using TF on windows for about 2yrs now. I followed your directions for setting up TF11 using WSL2, and everything seems to be working correctly on my system. I get the same output as you get at 9:11 in your video. My system can see the GPU and my models seem to be running with the same times as under Windows. However even from within python (on WSL2 console), if I type: os.system('nvidia-smi') it's still showing the CUDA 12.1 and not the target 11.2 . Is this expected? How can I 'know' that in fact CUDA 11.2 is really being used? Output below:
    Your kernel may have been built without NUMA support.
    Num GPUs Available: 1
    >>> os.system('nvidia-smi')
    Sun Mar 12 13:19:32 2023
    +---------------------------------------------------------------------------------------+
    | NVIDIA-SMI 530.30.02 Driver Version: 531.18 CUDA Version: 12.1 |
    |-----------------------------------------+----------------------+----------------------+
    | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
    | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
    | | | MIG M. |
    |=========================================+======================+======================|
    | 0 NVIDIA GeForce RTX 3090 On | 00000000:01:00.0 On | N/A |
    | 0% 45C P8 39W / 390W| 1480MiB / 24576MiB | 2% Default |
    | | | N/A |
    +-----------------------------------------+----------------------+----------------------+

    • @lwat6059
      @lwat6059 ปีที่แล้ว

      I may be wrong but from what I've seen, the CUDA version it displays when you run "nvidia-smi" will almost always be what you have installed on your host machine(windows). Your models all use the CUDA version that you installed inside your virtual environment but your linux distro itself is still just using the version that you have on windows(which is how its supposed to be). Honestly tho the fact that it works for you at all means you're all set due to how incredible sensitive tensorflow is with CUDA versions.

    • @user-uo2uh1gl4v
      @user-uo2uh1gl4v ปีที่แล้ว

      check cuda version with : nvcc --version

  • @saikiranreddy01123
    @saikiranreddy01123 ปีที่แล้ว

    hello ,I have done exactly like in video and it worked but when used tf.reshape the kernel is dying . It happpens every single type , the terminal log is
    Your kernel may have been built without NUMA support.
    2023-05-21 15:28:23.030317: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:982] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
    Your kernel may have been built without NUMA support.
    2023-05-21 15:28:23.030387: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:982] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
    Your kernel may have been built without NUMA support.
    2023-05-21 15:28:23.032833: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:982] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
    Your kernel may have been built without NUMA support.
    2023-05-21 15:28:23.032884: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:982] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
    Your kernel may have been built without NUMA support.
    2023-05-21 15:28:23.032913: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:982] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
    Your kernel may have been built without NUMA support.
    2023-05-21 15:28:25.942089: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:982] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
    Your kernel may have been built without NUMA support.
    2023-05-21 15:28:25.947470: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:982] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
    Your kernel may have been built without NUMA support.
    2023-05-21 15:28:25.947486: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1722] Could not identify NUMA node of platform GPU id 0, defaulting to 0. Your kernel may not have been built with NUMA support.
    2023-05-21 15:28:25.948739: I tensorflow/compiler/xla/stream_executor/cuda/cuda_gpu_executor.cc:982] could not open file to read NUMA node: /sys/bus/pci/devices/0000:01:00.0/numa_node
    Your kernel may have been built without NUMA support
    I'm a student and didn't know much about these things . please some one help me