Skip to content

Commit 2bc00ca

Browse files
AbeOmorjuliakm
andauthored
Apply suggestions from code review
Co-authored-by: Julia Kulla-Mader <[email protected]>
1 parent 87b54ab commit 2bc00ca

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

articles/machine-learning/how-to-setup-mlops-github-azureml.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Before you can set up an MLOps project with AzureML, you need to set up authenti
6262

6363
![Screenshot of the cloud shell environment dropdown.](./media/how-to-setup-mlops-azureml/PS_CLI1_1.png)
6464

65-
1. Copy the following bash commands to your computer and update the **projectName**, **subscriptionId**, and **environment** variables with the values for your project. This command will also grant the **Contributor** role to the service principal in the subscription provided. This is required for Azure DevOps to properly use resources in that subscription.
65+
1. Copy the following bash commands to your computer and update the **projectName**, **subscriptionId**, and **environment** variables with the values for your project. This command will also grant the **Contributor** role to the service principal in the subscription provided. This is required for GitHub Actions to properly use resources in that subscription.
6666

6767
``` bash
6868
projectName="<your project name>"
@@ -79,7 +79,7 @@ Before you can set up an MLOps project with AzureML, you need to set up authenti
7979

8080
1. Copy your edited commands into the Azure Shell and run them (**Ctrl** + **Shift** + **v**).
8181

82-
1. After running these commands, you'll be presented with information related to the service principal. Save this information to a safe location, it will be use later in the demo to configure Azure DevOps.
82+
1. After running these commands, you'll be presented with information related to the service principal. Save this information to a safe location, you'll use it later in the demo to configure Azure DevOps.
8383

8484
```json
8585
@@ -110,7 +110,7 @@ Before you can set up an MLOps project with AzureML, you need to set up authenti
110110

111111
![Screenshot of service principal setup.](./media/how-to-setup-mlops-azureml/SP-setup-ownership-tab.png)
112112

113-
1. Go through the process of creating a Service Principle (SP) selecting **Accounts in any organizational directory (Any Azure AD directory - Multitenant)** and name it **Azure-ARM-Prod-ProjectName**. Replace **ProjectName** with the name of your project so that the service principal can be uniquely identified.
113+
1. Go through the process of creating a Service Principal (SP) selecting **Accounts in any organizational directory (Any Azure AD directory - Multitenant)** and name it **Azure-ARM-Prod-ProjectName**. Replace **ProjectName** with the name of your project so that the service principal can be uniquely identified.
114114

115115
1. Go to **Certificates & Secrets** and add for each SP **New client secret**, then store the value and secret separately.
116116

@@ -124,11 +124,11 @@ Before you can set up an MLOps project with AzureML, you need to set up authenti
124124

125125
---
126126

127-
## Set up GitHub Repo
127+
## Set up GitHub repo
128128

129129
1. Fork the [MLOps v2 Demo Template Repo](https://github.com/Azure/mlops-v2-gha-demo) in your GitHub organization
130130

131-
1. Go to https://github.com/Azure/mlops-v2-gha-demo/fork to fork the mlops v2 demo repo into your Github org. This repo has reusable mlops code that can be used across multiple projects.
131+
1. Go to https://github.com/Azure/mlops-v2-gha-demo/fork to fork the MLOps v2 demo repo into your Github org. This repo has reusable MLOps code that can be used across multiple projects.
132132

133133
![image](./media/how-to-setup-mlops-azureml/gh-fork.png)
134134

@@ -156,13 +156,13 @@ Before you can set up an MLOps project with AzureML, you need to set up authenti
156156
> This finishes the prerequisite section and the deployment of the solution accelerator can happen accordingly.
157157

158158

159-
## Deploying Machine Learning Project Infrastructure Using GitHub Actions
160-
This step deploys the training pipeline to the Azure Machine Learning workspace created in the previous steps.
159+
## Deploy machine learning project infrastructure with GitHub Actions
160+
This step deploys the training pipeline to the Machine Learning workspace created in the previous steps.
161161

162162
> [!TIP]
163163
> Make sure you understand the [Architectural Patterns](/azure/architecture/data-guide/technology-choices/machine-learning-operations-v2) of the solution accelerator before you checkout the MLOps v2 repo and deploy the infrastructure. In examples you'll use the [classical ML project type](/azure/architecture/data-guide/technology-choices/machine-learning-operations-v2#classical-machine-learning-architecture).
164164
165-
### Configure Azure ML Environment Parameters
165+
### Configure Machine Learning environment parameters
166166
1. Go to your repository and select the `config-infra-prod.yml` file in the root.
167167
168168
This config file uses the namespace and postfix values the names of the artifacts to ensure uniqueness. Update the following section in the config to your liking. Default values and settings in the files are show below:
@@ -181,25 +181,25 @@ This step deploys the training pipeline to the Azure Machine Learning workspace
181181
> If you are running a Deep Learning workload such as CV or NLP, ensure your GPU compute is available in your deployment zone.
182182
> The enable_monitoring flag in these files defaults to False. Enabling this flag will add additional elements to the deployment to support Azure ML monitoring based on https://github.com/microsoft/AzureML-Observability. This will include an ADX cluster and increase the deployment time and cost of the MLOps solution.
183183
184-
### Deploy Azure Machine Learning Infrastructure
184+
### Deploy Machine Learning infrastructure
185185
186186
1. In your GitHub project repository (ex: taxi-fare-regression), select **Actions**
187187
188188
![GitHub actions](./media/how-to-setup-mlops-azureml/gh-actions.png)
189189
190-
This will display the pre-defined GitHub workflows associated with your project. For a classical machine learning project, the available workflows will look similar to this:
190+
This displays the pre-defined GitHub workflows associated with your project. For a classical machine learning project, the available workflows look similar to this:
191191
192192
![GitHub workflows](./media/how-to-setup-mlops-azureml/gh-workflows.png)
193193
194194
1. Select would be **tf-gha-deploy-infra.yml**. This would deploy the Azure ML infrastructure using GitHub Actions and Terraform.
195195
196196
![GitHub deploy-infra](./media/how-to-setup-mlops-azureml/gh-deploy-infra.png)
197197
198-
1. On the right side of the page, select **Run workflow** and select the branch to run the workflow on. This may deploy Dev Infrastructure if you've created a dev branch or Prod infrastructure if deploying from main. Monitor the pipline for successful completion.
198+
1. On the right side of the page, select **Run workflow** and select the branch to run the workflow on. This may deploy Dev Infrastructure if you've created a dev branch or Prod infrastructure if deploying from main. Monitor the workflow for successful completion.
199199

200200
![GitHub infra pipeline](./media/how-to-setup-mlops-azureml/gh-infra-pipeline.png)
201201

202-
1. When the pipeline has complete successfully, you can find your Azure ML Workspace and associated resources by logging in to the Azure Portal. Next, a model training and scoring pipelines will be deployed into the new Azure Machine Learning environment.
202+
1. When the pipeline has complete successfully, you can find your Azure ML Workspace and associated resources by logging in to the Azure Portal. Next, a model training and scoring pipelines will be deployed into the new Machine Learning environment.
203203

204204

205205
## Sample Training and Deployment Scenario
@@ -210,7 +210,7 @@ This training pipeline contains the following steps:
210210

211211
**Prepare Data**
212212
- This component takes multiple taxi datasets (yellow and green) and merges/filters the data, and prepare the train/val and evaluation datasets.
213-
- Input: Local data under ./data/ (multiple .csv files)
213+
- Input: Local data under `./data/` (multiple .csv files)
214214
- Output: Single prepared dataset (.csv) and train/val/test datasets.
215215

216216
**Train Model**
@@ -227,28 +227,28 @@ This training pipeline contains the following steps:
227227
**Register Model**
228228
- This component scores the model based on how accurate the predictions are in the test set.
229229
- Input: Trained model and the deploy flag.
230-
- Output: Registered model in Azure Machine Learning.
230+
- Output: Registered model in Machine Learning.
231231

232232
## Deploying the Model Training Pipeline
233233

234-
Next, you will deploy the model training pipeline to your new Azure Machine Learning workspace. This pipeline will create a compute cluster instance, register a training environment defining the necessary Docker image and python packages, register a training dataset, then start the training pipeline described in the last section. When the job is complete, the trained model will be registered in the Azure ML workspace and be available for deployment.
234+
Next, you will deploy the model training pipeline to your new Machine Learning workspace. This pipeline will create a compute cluster instance, register a training environment defining the necessary Docker image and python packages, register a training dataset, then start the training pipeline described in the last section. When the job is complete, the trained model will be registered in the Azure ML workspace and be available for deployment.
235235

236-
1. In your GitHub project repository (ex: taxi-fare-regression), select **Actions**
236+
1. In your GitHub project repository (example: taxi-fare-regression), select **Actions**
237237

238238
![GitHub actions page](./media/how-to-setup-mlops-azureml/gh-actions.png)
239239

240240
1. Select the **deploy-model-training-pipeline** from the workflows listed on the left and the click **Run Workflow** to execute the model training workflow. This will take several minutes to run, depending on the compute size.
241241

242242
![Pipeline Run](./media/how-to-setup-mlops-azureml/gh-training-pipeline.png)
243243

244-
1. Once completed, a successful run will register the model in the Azure Machine Learning workspace.
244+
1. Once completed, a successful run will register the model in the Machine Learning workspace.
245245

246246
![Training Step](./media/how-to-setup-mlops-azureml/gh-training-step.png)
247247

248248
> [!NOTE]
249249
> If you want to check the output of each individual step, for example to view output of a failed run, click a job output, and then click each step in the job to view any output of that step.
250250

251-
With the trained model registered in the Azure Machine learning workspace, you are ready to deploy the model for scoring.
251+
With the trained model registered in the Machine learning workspace, you are ready to deploy the model for scoring.
252252

253253
### Deploying the Trained Model
254254

0 commit comments

Comments
 (0)