When you purchase through links on our site, we may earn an affiliate commission. Here’s how it works.

Microsoft offers GPU-accelerated ML training on Windows 10 and WSL via TensorFlow-DirectML

Over a year ago, Microsoft announced that it is working with hardware vendors to offer GPU-accelerated training of machine learning (ML) models on Windows Subsystem for Linux (WSL). A preview for this began in June 2020. The outcome of this initiative is TensorFlow-DirectML, a fork of TensorFlow that leverages DirectML to provide cross-vendor hardware acceleration for training ML models on Windows 10 and WSL. Today, this open-source GitHub project has exited preview and become generally available.

Microsoft and Linux written on the left and right respectively with a heart icon in the middle

Microsoft has touted that utilizing TensorFlow-DirectML is quite easy as it can be installed in a Python environment by running the command "pip install tensorflow-directml". After that, it will automatically integrate with your existing scripts that train models. The Redmond tech giant says that it worked directly with students and professionals to provide coverage for their scripts, and optimize operators such as batch normalization and convolution. This process involved enhancing GPU scheduling and memory management mechanisms too.

Microsoft collaborated with vendors such as Nvidia, AMD, and Intel to ensure that a smooth experience is offered across Windows 10 and WSL, so that training is accelerated on DirectX 12-capable GPUs. As it stands, the system requirements for TensorFlow-DirectML are as follows:

Windows 10

  • Windows 10 Version 1709, 64-bit (Build 16299 or higher)
  • Python x86-64 3.5, 3.6, or 3.7
  • One of the following supported GPUs:
    • AMD Radeon R5/R7/R9 2xx series or newer
    • Intel HD Graphics 5xx or newer
    • NVIDIA GeForce GTX 9xx series GPU or newer

Note: Python 3.8 or newer is not currently supported. To use the official PyPi packages, the CPython interpreter is required. NumPy 1.19.4 is requires the KB4598291 to properly work on Windows.

Windows Subsystem for Linux

  • Windows 10 Insider Preview, 64-bit (Build 20150 or higher)
  • Python x86-64 3.5, 3.6, or 3.7
  • One of the following supported GPUs:
    • AMD Radeon R5/R7/R9 2xx series or newer, and 20.20.01.05 WSL driver
    • Intel HD Graphics 6xx or newer, and 28.20.100.8322 WSL driver
    • NVIDIA GeForce GTX 9xx series GPU or newer, and 460.20 WSL driver

Note: Python 3.8 or newer is not currently supported. To use the official PyPi packages, the CPython interpreter is required.

Moving forward, Microsoft has assured that it will continue optimizing the project further with targeted operator support. You can check out the open-source initiative on GitHub here.

Report a problem with article
Steam beta overhauled downloads section
Next Article

Steam's redesigned Downloads and Storage Management pages launch out of beta

Icons showing privacy and security
Previous Article

Google announces Private Compute Core Services for deeper network and ML model isolation

Join the conversation!

Login or Sign Up to read and post a comment.

5 Comments - Add comment