Install WSL2 on Windows 11 with NVIDIA GPU and Docker Support

  Рет қаралды 33,788

Jeff Heaton

Jeff Heaton

Күн бұрын

Windows 11 now provides mainstream support for the NVIDIA GPU driver in WSL2. This finally allows NVIDIA Docker to work with CUDA enabled images. In this video I demonstrate how to install WSL2 on a Windows 11 GPU.
0:40 Check for Windows Updates
2:29 Install video driver
4:10 Install WSL2
5:20 Update WSL2
5:50 Install Ubuntu
7:00 Hyper-V
7:33 Launch Ubuntu
9:30 Install Docker
11:45 Start Docker
14:19 Jupyter in WSL2
NVIDIA CUDA WSL2 Guide
docs.nvidia.com/cuda/wsl-user...
NVIDIA Driver
www.nvidia.com/download/index...

Пікірлер: 53
@tomwalczak4992
@tomwalczak4992 2 жыл бұрын
Super useful video, thanks Jeff! Looking forward to the other DL set-up videos!
@mike8289
@mike8289 Жыл бұрын
I'm very interested in seeing a part 2 of this referring to the things you mentioned towards the end, you gained a new subscriber, thank you for this video!
@stevedevney7322
@stevedevney7322 2 жыл бұрын
I found the actual start to finish time super informative. I remember the first time I Installed Tensorflow gpu. You made it look like it took five minutes, and it took me two days😊
@crimsonmorningstar
@crimsonmorningstar 2 жыл бұрын
you have very thorough and informative videos, concise, and I just wanted to mention I appreciate that! Many producers try to milk the minutes and less is always best. :) thanks!
@anona1443
@anona1443 2 жыл бұрын
Very thorough... He is a good teacher
@maloman1989
@maloman1989 2 жыл бұрын
Really good information, I didn't know that you could use your GPU in linux to machine learning development . I wasn't ready for windows 11 and upgraded my Windows 10 to version 21H2 an worked perfectly!
@gngn2973
@gngn2973 2 жыл бұрын
Dude, I been trying to get this to work with Docker Desktop for a week, and couldn't figure out what I was doing wrong lol. Thanks for pointing out my flaw. Will try this today.
@haydarmehryar3875
@haydarmehryar3875 3 ай бұрын
Super useful as always, hats off to you Jeff
@caileanfinn
@caileanfinn 2 жыл бұрын
Thank you so much! I was stuck on this install all day. Ended up I needed to upgrade windows, plus I didnt leave the docker script run after the sleep. !!!!
@erikjohnson9112
@erikjohnson9112 2 жыл бұрын
Very useful video. I trashed a Windows install on my prior machine trying to dual-boot. I occasionally need Linux but with Graphics/GPU support (so plain WSL2 is not enough, but was otherwise nice in the past). WSLg with Windows 11 means I can now have it all from a single top level OS. Thanks for recording this in-depth video.
@kenchang3456
@kenchang3456 Жыл бұрын
Just upgraded to Win 11 and will be following your video. Thanks for recording and publishing at hi rez 2160, it really helps.
@VArterJr
@VArterJr Жыл бұрын
Hey, Jeff! Great to see you again!
@joshfinkumich
@joshfinkumich 2 жыл бұрын
THIS VIDEO MADE LIFE SO MUCH EASIER. THANKS!!!
@trainsmurf8316
@trainsmurf8316 2 жыл бұрын
Thank you for making these videos it is much appreciated!
@briancompton4705
@briancompton4705 Жыл бұрын
Thanks Jeff this video got my wls woring on Windows 10 (Version 10.0.19044 Build 19044) with zero snags. 👍
@redfield126
@redfield126 Жыл бұрын
Thanks for the video. I am just testing it with RTX 4090. For the moment it seems to be promising on both Tensorflow and PyTorch. Performances looks not that bad and I really like the deep integration between Windows, Ubuntu and Docker. Just one thing I am not 100% comfortable with is the resource management and especially the RAM. Let’s play and see. Thanks again for pointing me to WSL2.
@MiguelOMatic
@MiguelOMatic 2 жыл бұрын
Excellent content, Professor. It really looks like WSL2 is becoming quite usable for ML. Interestingly, NVIDIA seems to have done some edits to the NVIDIA CUDA WSL2 Guide you linked to, basically hiding the info about setting up docker on WSL2 without Docker Desktop. Makes one wonder if Microsoft complained about not wanting to make it too easy for folks to figure out how to run docker on WSL2 without Docker Desktop 🤔...
@tai-au
@tai-au 7 ай бұрын
Thanks for the phenomenal video! Going to try this out 🎉
@leftyjaal
@leftyjaal 2 жыл бұрын
Thanks! this is a very usefull video! I also use the program GeForce Experience software from Nvidia to maintain the Drivers updated!
@Mobay18
@Mobay18 2 жыл бұрын
This is great! Many people have Windows machine with a RTX 3080 or 3090, that they use for gaming and now they can tinker with ML without having to dual boot to Linux.
@Piupiumacher
@Piupiumacher 2 жыл бұрын
you can also install CUDNN on windows and use some of it's performance, but it is far from optimal.
@kenchang3456
@kenchang3456 Жыл бұрын
Since my main system is a Surface Book 3, I'd love to see more ML content using the Win 11/WSl 2 environment. Thanks!
@petehall1900
@petehall1900 2 жыл бұрын
yes please more wsl2 and cuda videos
@kenchang3456
@kenchang3456 Жыл бұрын
Just got my laptop re-imaged so I'm going to try this, thanks for sharing. Not bad, looks like it only took an hour, give or take. With ChatGPT and the like taking the world by storm, if you have the time, could you make a video on training some domain knowledge data into ChatGPT or one of the open-source models like Alpaca or Falcon.
@miticoso971
@miticoso971 2 жыл бұрын
Hi Jeff! Really thanks for your work. I have been trying to carry on this procedure for 2 days.. but when I come to the docker's benchmark test it always says "error: only 0 device available, 1 requested". I also checked with nvidia-smi the correct installation of the drivers ( NVD 512.15 , CUDA 11.6) and it also shows the GPU correctly. I hope you can help me to solve this problem..
@ahmeterkamakgun8745
@ahmeterkamakgun8745 2 жыл бұрын
I think you must do sudo permission to access inside the /mnt/c, professor. Appreciated for your help.
@lashlarue59
@lashlarue59 2 жыл бұрын
Jeff one of the problem that I ran into was running CUDA GUI program under WSL2. When you install the CUDA Toolkit for WSL2 you get a bunch of example CUDA programs with their source code. Most of the text based CUDA applications work fine BUT when you run any of the GUI CUDA examples such as Mandelbrot, simpleTexture3D, volumeRender, particles, oceanFFT etc. or basically any of the GUI apps from their Graphics, Imaging or Simulation directories you will basically get the same program errors and then a segmentation fault. The explanation I got from Microsoft was this is because CUDA GUI application require the NVIDIA native GL driver which exposes extension for CUDA. OpenGL is accelerated in WSLg through Mesa mapping on top of our vGPU/DX12 projection and Mesa doesn’t support those CUDA extension. To support this would require NVIDIA to bring their native GL driver to WSL. This was back in November and I tried addressing this with nVidia but they pretty much ignored it. If you have a need (which I do) to do CUDA graphics programming this will be a problem.
@erikjohnson9112
@erikjohnson9112 2 жыл бұрын
Please follow up here if you find a solution (and remember).
@lashlarue59
@lashlarue59 2 жыл бұрын
@@erikjohnson9112 Will do!
@nicopurnomo7292
@nicopurnomo7292 Жыл бұрын
Thanks Jeff! do you have examples on how you have used WSL2 for your projects?
@leandromartinrios6518
@leandromartinrios6518 Жыл бұрын
Thank you for this great tutorial. I was wondering if you know how to use an IDE like VScode (free for docker images). Do you have a video on that???
@OscarRangelMX
@OscarRangelMX 2 жыл бұрын
Hey Jeff, thanks a lot for another video, I was wondering what is your opinion, it is the same to develop on WSL 2 Linux as a Linux OS?
@abdubaghdad
@abdubaghdad Жыл бұрын
Hi Jeff, the NVIDIA CUDA WSL2 Guide has been updated, could you please update the video accordingly?
@nishadiprasangini119
@nishadiprasangini119 2 жыл бұрын
very useful
@oluwatobiadefami8944
@oluwatobiadefami8944 2 жыл бұрын
would pip installing pytorch for cuda work in the docker env?
@scotthaney4995
@scotthaney4995 2 жыл бұрын
I installed docker desktop on PC, and configured wsl 2 there, then used docker image Ubuntu, so Ubuntu was on docker, couldn't figure out the rest from there. Could you try that process,and see if you can get any further?
@sadivamadaan2190
@sadivamadaan2190 2 жыл бұрын
is there any performance drop in the GPU in WSL2 ?
@muhamadnady839
@muhamadnady839 Жыл бұрын
Thanks for clear explanation, I have build a docker file which have "nvidia/cuda:12.1.1-base-ubuntu20.04" img as base img, I am trying to run a python file in docker container. does I need to have my files in ubuntu directory, or I could keep them in a folder over the windows desktop, does i need to run docker compuse up commad from ubuntu terminal, or if i have windows docker desktop i could run the command on windows command prompt. thnx for the video
@lichingngamba6503
@lichingngamba6503 Жыл бұрын
Is there a way to use gstreamer in docker container with gpu.
@bibhabasumohapatra
@bibhabasumohapatra 2 жыл бұрын
I have docker... Can i do the cuda part latter
@JeevanEG
@JeevanEG 3 ай бұрын
Cant we upgrade tensorflow version??
@nickfooz
@nickfooz Жыл бұрын
This seems to only work with CUDA, unless I'm missing something. Does anybody know how to make it work with Vulkan? For me it's still listing llvmpipe (CPU based) as the only Vulkan device available.
@arxerisdam1
@arxerisdam1 Жыл бұрын
this works for kali too?
@gianpierocea
@gianpierocea Жыл бұрын
Hello, I hope someone who knows better in the comment section might help me. I am unfortunate enough to have a dell XPS 9560 for which the Windows 11 upgrade was never allowed due to using i7, if I understand, so I am using windows 10. Anyway, I tried to follow the Nvidia+wsl2 guide and almost got it to work but then there is a step where I am required to run systemctl restart docker, after having installed nvifia-docker but this command failed and when I tried to run a test container it could not detect the GPU. A little search showed that I was probably using the in windows version of the wsl2, and should be using instead the app version. Now I am trying to download an upgrade I had not installed kb5020030 as this should let me install the app store version which will have systemd . Clearly not having windows 11 makes this all more tricky, has anyone managed to work with cuda containers on wsl2 on windows 10? Does anyone have a specific guide? Thanks!
@scotthaney4995
@scotthaney4995 2 жыл бұрын
I'd like to see more of working with Tao,and other NGC containers with wsl2 please.
@HeatonResearch
@HeatonResearch 2 жыл бұрын
Sure, let me add more NGC to the list.
@davidwhite2011
@davidwhite2011 2 жыл бұрын
Did you have the drawing for the GPU yet?
@HeatonResearch
@HeatonResearch 2 жыл бұрын
Yes, I will post something on the winner soon.
@CoachFullmer
@CoachFullmer 21 күн бұрын
Can this work on windows 10?
@Maisonier
@Maisonier 2 ай бұрын
Amazing video, but I think it's time for a new one after 2 years 😅 somethings have changed.
Tensorflow with GPU on Windows WSL using Docker
17:00
KNuggies
Рет қаралды 35 М.
Install WSL2 on Windows 11 with NVIDIA CUDA 11.8
10:40
Archive
Рет қаралды 29 М.
Increíble final 😱
00:37
Juan De Dios Pantoja 2
Рет қаралды 112 МЛН
1❤️
00:17
Nonomen ノノメン
Рет қаралды 8 МЛН
WSL2 Ubuntu GUI
13:51
David Bombal
Рет қаралды 583 М.
Install Tensorflow/Keras in WSL2 for Windows with NVIDIA GPU
9:59
Windows development setup with WSL2, ZSH, VSCode, and more
12:02
Christian Lempa
Рет қаралды 216 М.
WSL: Run Linux GUI Apps
17:16
Microsoft Developer
Рет қаралды 139 М.
AMD/NVIDIA GPU Passthrough in Window 11 - Proxmox Guide
21:27
If you're not developing with this, you're wasting your time
14:30
Articulated Robotics
Рет қаралды 265 М.
Linux on Windows......Windows on Linux
23:54
NetworkChuck
Рет қаралды 79 М.
Simple maintenance. #leddisplay #ledscreen #ledwall #ledmodule #ledinstallation
0:19
LED Screen Factory-EagerLED
Рет қаралды 13 МЛН
После ввода кода - протирайте панель
0:18