Set-up for distributed deep learning
To begin, you need to have access to an Azure Databricks workspace with an interactive standard cluster. If you do not have a workspace and/or the required cluster, follow the instructions below.
Create Azure Databricks resources
To use Azure Databricks, you first need to deploy an Azure Databricks workspace in your Azure subscription and create a cluster on which you will run notebooks and code. You can then upload the data and notebooks to experiment with in your workspace.
Deploy an Azure Databricks workspace
- In the Azure portal, create a new Azure Databricks resource, specifying the following settings:
- Subscription: Choose the Azure Subscription in which to deploy the workspace.
- Resource Group: Create a new resource group.
- Workspace Name: Provide a name for your workspace.
- Region: Select a location near you for deployment. For the list of regions supported by Azure Databricks, see Azure services available by region.
- Pricing Tier: Standard
- Wait for the workspace to be created. Workspace creation takes a few minutes. During workspace creation, the portal displays the Submitting deployment for Azure Databricks tile on the right side. You may need to scroll right on your dashboard to see the tile. There is also a progress bar displayed near the top of the screen. You can watch either area for progress.
Create a cluster
When your Azure Databricks workspace resource has been created, go to it in the portal, and select Launch Workspace to open your Databricks workspace in a new tab, signing in if prompted.
- In the left-hand menu of your Databricks workspace, select Compute, and then select + Create Cluster to add a new cluster with the following configuration:
- Name: Enter a unique name.
- Cluster Mode: Standard
- Pool: None
- Databricks Runtime Version: Select the ML edition of the latest available version of the runtime. Ensure that the version selected:
- Both CPU and GPU clusters can be used for this exercise. CPU will be cheaper for testing than GPU.
- Includes Scala > 2.11
- Includes Spark > 3.0
- Terminate after: 120 minutes of inactivity
- Node Type: Standard_DS3_v2
- Wait for your cluster to be created, which may take several minutes. The cluster will start automatically, and eventually the spinning Pending indicator next to the cluster name will change to a solid green circle to indicate a status of Running.
Import Databricks notebooks
In the Azure Databricks Workspace, using the command bar on the left, select Workspace. Then select Users, and ☗ your_user_name.
In the blade that appears, select the downwards pointing chevron (v) next to your name, and select Import.
On the Import Notebooks dialog, import the notebook archive from the following URL, noting that a folder with the archive name is created, containing two notebooks:
Explore distributed deep learning
In this exercise, you will discover how to use automated MLflow for hyperparameter tuning.
In the 06 - Distributed Deep Learning folder in your workspace, open the 1.0 Distributed Deep Learning notebook.
In the top left dropdown menu, choose your cluster to attach your notebook to that cluster. (Alternatively, you will be prompted to attach a cluster when running the first cell in an unattached notebook).
Read the notes in the notebook, running each code cell in turn.
If you’re finished working with Azure Databricks for now, in Azure Databricks workspace, on the Compute page, select your cluster and select ■ Terminate to shut it down. Otherwise, leave it running for the next exercise.