Ask Learn
Preview
Please sign in to use this experience.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Wow, what a wordy title. In this post, I want to share the tricks I’ve learned for using the Data Science Virtual Machine on Azure with GPU hardware.
To begin, why would you want to do this? Here’s the value prop:
GPU: 15m38.556s
th train.lua -input_h5 data/tiny-shakespeare.h5 -input_json data/tiny-shakespeare.json
CPU: 55m51.655s
th train.lua -input_h5 data/tiny-shakespeare.h5 -input_json data/tiny-shakespeare.json -gpu -1
There are multiple versions of the Data Science Virtual Machine. There are similar tools on all of them, but for example, the Ubuntu image contains additional deep learning frameworks that aren’t supported on Windows.
To get GPU support, you need both hardware with GPUs in a datacenter, as well as the right software – namely, a virtual machine image that includes GPU drivers so you can use the GPU.
The biggest tip is to use the Deep Learning Virtual Machine! The provisioning experience has been optimized to filter to the options that support GPU (the NC series – see below), which make it easier to set it up correctly.
Outside of the Deep Learning Virtual Machine, the big gotchas to creating a vanilla Data Science Virtual Machine for deep learning on GPU are:
NOTE: this is a screenshot, so it might not be accurate for you, future reader! I also only had the US and Canada regions selected, and there are many more datacenters available. Click here to change the region filters and get the latest data.
If you are using a Windows data science virtual machine, once the DSVM is provisioned, you can remote desktop into it.
If you are using a Linux data science virtual machine, once the DSVM is provisioned, you have a couple of choices on how to connect to it. More details are here, but the quick summary is that you can use any of these options:
* In Windows 10, you can enable the Windows subsystem for Linux by running this PowerShell command as administrator and rebooting: “Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux”.
Azure Data Science Virtual Machine documentation: don’t forget to explore the whole tree in the left-hand pane
Data Science Virtual Machine Plans and Pricing: note that this is for the Windows Server 2016 version specifically
Virtual Machines with GPU support
Get to know your DSVM: shows all of the tools, platforms, utilities, and samples that are included in the Data Science Virtual Machine, neatly organized by category
Data Science Virtual Machine product webpage: this is more of a high-level overview
Please sign in to use this experience.
Sign in