Lab 1 - Environment Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
To get started we need to setup a few resources in Azure. For this we are going to use the Azure CLI. If you don’t have the installed on your machine you can follow the here.
To install the machine learning extension, use the following command:
The Azure Machine Learning workspace must be created inside a resource group. You can use an existing resource group or create a new one. To create a new resource group, use the following command. Replace with the name to use for this resource group. Replace with the Azure region to use for this resource group:
Example name and location:
resource group name: pytorchworkshop
location: WestEurope
To create a new workspace where the services are automatically created, use the following command:
You can now view your workspace by visiting
To train our model we need an Azure Machine Learning Compute cluster. To create a new compute cluster, use the following command.
This command will create an Azure Machine Learning Compute cluster with 1 node that is always on and is using STANDARD_NC6 virtual Machines.
To speed up the training process you can use a GPU enabled NC6 machine
Creating compute can take a few minutes to complete
To train our model we are going to use a notebook. To run a notebook in Azure Machine Learning studio we need to create a Compute Instance.
Choose a unique name
Creating compute can take a few minutes to complete
Navigate to the Notebook section in Azure Machine Learning Workspace.
Create a new file with name 'simpsons' and File type 'notebook'
If everything went correctly you should be looking at a screen that looks like the one below and see that your notebook is running on your created Compute Instance.
View your created Azure Machine Learning Compute cluster on
View your created Azure Machine Learning Compute cluster on