In hopes of helping others subvert the trials and tribulations of setting up a fully function TenserFlow 2.0 environment, I decided to record my process and share it with the masses.
The goal of this project is to aid in the setup and configuration of a CUDA enabled TensorFlow 2.0 Machine Learning environment (TFML) within WSL2.
- A CUDA enabled NVIDIA GPU or above
- Check the CUDA Compatibility list for more info - https://developer.nvidia.com/cuda-gpus
- Recommended Compute capability of 5.0
- A CUDA enabled NVIDIA driver is installed in Windows
- I have the NVIDIA Studio Driver | Version: 536.99 Release date: 08/08/2023
- Game Ready Drivers work as well
- An Ubuntu WSL2 Distro is up and running in a supported Windows build
- Recommended: Ubuntu 22.04.3 LTS
- Recommended: 5.15.90.1-microsoft-standard-WSL2
- Network/Internet is available within Windows and the WSL2 environment
- A user was created during the deployment of Ubuntu
- Basic understanding of ubuntu Linux Command Line, PowerShell and Python
- Nothing heavy is needed to get started
- TensorFlow version: 2.13.0
- Keras version: 2.13.1
- Python version: 3.11.4
- ipykernel: 6.25.1
- WSL: 5.15.90.1-microsoft-standard-WSL2
- Ubuntu version: Ubuntu 22.04.3 LTS
- CUDA NVCC version: 12.2.128
- CUDA Toolkit version: 11.8.0
- Jupyter Core version: 5.3.1
- Conda version: 23.7.3
Full list of packages. https://github.com/BrandXX/tfml-env-pub/blob/master/tfml/conda-env-export.yaml
CUDA on WSL User Guide
-
CUDA on WSL User Guide
- https://docs.nvidia.com/cuda/archive/11.5.2/pdf/CUDA_on_WSL_User_Guide.pdf
- Also located at /docs/cuda_on_wsl_user_guide.pdf
-
Tensorflow Compatibility list
-
Tensorflow's main site
-
NVIDIA's Developer site
Moving forward, I plan to release a WSL install guide, DirectML install guide, example projects, useful instructions, scripts, code snippets and more.