Skip to content

Commit 640860d

Browse files
committed
editorial review
1 parent 2ac23f3 commit 640860d

File tree

4 files changed

+34
-20
lines changed

4 files changed

+34
-20
lines changed

articles/machine-learning/how-to-use-batch-model-deployments.md

Lines changed: 26 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: how-to
99
author: santiagxf
1010
ms.author: fasantia
1111
ms.reviewer: mopeakande
12-
ms.date: 03/29/2024
12+
ms.date: 04/02/2024
1313
ms.custom: how-to, devplatv2, update-code
1414
#Customer intent: As an ML engineer or data scientist, I want to create an endpoint to host my models for batch scoring, so that I can use the same endpoint continuously for different large datasets on-demand or on-schedule.
1515
---
@@ -56,7 +56,7 @@ az configure --defaults workspace=<workspace> group=<resource-group> location=<l
5656

5757
# [Python](#tab/python)
5858

59-
The workspace is the top-level resource for Azure Machine Learning, providing a centralized place to work with all the artifacts you create when you use Azure Machine Learning. In this section, we'll connect to the workspace in which you'll perform deployment tasks.
59+
The workspace is the top-level resource for Azure Machine Learning, providing a centralized place to work with all the artifacts you create when you use Azure Machine Learning. In this section, you connect to the workspace in which you'll perform deployment tasks.
6060

6161
1. Import the required libraries:
6262

@@ -261,13 +261,21 @@ A model deployment is a set of resources required for hosting the model that doe
261261
In the [Azure Machine Learning studio](https://ml.azure.com), follow these steps:
262262

263263
1. Navigate to the __Environments__ tab on the side menu.
264+
264265
1. Select the tab __Custom environments__ > __Create__.
266+
265267
1. Enter the name of the environment, in this case `torch-batch-env`.
266-
1. For __Select environment source__ select __Use existing docker image with optional conda file__.
268+
269+
1. For __Select environment source__, select __Use existing docker image with optional conda file__.
270+
267271
1. For __Container registry image path__, enter `mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04`.
272+
268273
1. Select **Next** to go to the "Customize" section.
274+
269275
1. Copy the content of the file _deployment-torch/environment/conda.yaml_ from the GitHub repo into the portal.
276+
270277
1. Select __Next__ until you get to the "Review page".
278+
271279
1. Select __Create__ and wait until the environment is ready for use.
272280

273281
---
@@ -481,7 +489,7 @@ You can run and invoke a batch endpoint using Azure CLI, Azure Machine Learning
481489
1. For "Path", enter the full URL `https://azuremlexampledata.blob.core.windows.net/data/mnist/sample`.
482490

483491
> [!TIP]
484-
> This path work only because the given path has public access enabled. In general, youl need to register the data source as a __Datastore__. See [Accessing data from batch endpoints jobs](how-to-access-data-batch-endpoints-jobs.md) for details.
492+
> This path works only because the given path has public access enabled. In general, you need to register the data source as a __Datastore__. See [Accessing data from batch endpoints jobs](how-to-access-data-batch-endpoints-jobs.md) for details.
485493

486494
:::image type="content" source="./media/how-to-use-batch-model-deployments/select-datastore-job.png" alt-text="Screenshot of selecting datastore as an input option." lightbox="media/how-to-use-batch-model-deployments/select-datastore-job.png":::
487495

@@ -521,11 +529,9 @@ The following code checks the job status and outputs a link to the Azure Machine
521529

522530
:::image type="content" source="media/how-to-use-batch-model-deployments/summary-jobs.png" alt-text="Screenshot of summary of jobs submitted to a batch endpoint." lightbox="media/how-to-use-batch-model-deployments/summary-jobs.png":::
523531

524-
1. You'll see a list of the jobs created for the selected endpoint.
532+
1. From the displayed list of the jobs created for the selected endpoint, select the last job that is running.
525533

526-
1. Select the last job that is running.
527-
528-
1. You'll be redirected to the job monitoring page.
534+
1. You're now redirected to the job monitoring page.
529535

530536
---
531537

@@ -678,13 +684,21 @@ In this example, you add a second deployment that uses a __model built with Kera
678684
# [Studio](#tab/azure-studio)
679685

680686
1. Navigate to the __Environments__ tab on the side menu.
687+
681688
1. Select the tab __Custom environments__ > __Create__.
689+
682690
1. Enter the name of the environment, in this case `keras-batch-env`.
691+
683692
1. For __Select environment source__, select __Use existing docker image with optional conda file__.
693+
684694
1. For __Container registry image path__, enter `mcr.microsoft.com/azureml/openmpi4.1.0-ubuntu20.04`.
695+
685696
1. Select **Next** to go to the "Customize" section.
697+
686698
1. Copy the content of the file _deployment-keras/environment/conda.yaml_ from the GitHub repo into the portal.
699+
687700
1. Select __Next__ until you get to the "Review page".
701+
688702
1. Select __Create__ and wait until the environment is ready for use.
689703

690704
---
@@ -731,7 +745,7 @@ In this example, you add a second deployment that uses a __model built with Kera
731745

732746
1. On the deployment configuration page, give the deployment a name.
733747

734-
1. Unselect the option to __Make this new deployment the default for batch jobs__.
748+
1. Undo the selection for the option: __Make this new deployment the default for batch jobs__.
735749

736750
1. For __Output action__, ensure __Append row__ is selected.
737751

@@ -747,7 +761,7 @@ In this example, you add a second deployment that uses a __model built with Kera
747761

748762
1. For __Select a scoring script for inferencing__, browse to select the scoring script file *deployment-keras/code/batch_driver.py*.
749763

750-
1. For __Select environment__, select the environment you created ina previous step.
764+
1. For __Select environment__, select the environment you created in a previous step.
751765

752766
1. Select __Next__.
753767

@@ -806,7 +820,7 @@ Notice `deployment_name` is used to specify the deployment to execute. This para
806820

807821
1. Select __Create job__.
808822

809-
1. On __Deployment__, select the deployment you want to execute. In this case, `mnist-keras`.
823+
1. For __Deployment__, select the deployment you want to execute. In this case, `mnist-keras`.
810824

811825
1. Complete the job creation wizard to get the job started.
812826

@@ -836,7 +850,7 @@ Although you can invoke a specific deployment inside an endpoint, you'll typical
836850

837851
:::image type="content" source="./media/how-to-use-batch-model-deployments/update-default-deployment.png" alt-text="Screenshot of updating default deployment.":::
838852

839-
1. On __Select default deployment__, select the name of the deployment you want to set as the default.
853+
1. For __Select default deployment__, select the name of the deployment you want to set as the default.
840854

841855
1. Select __Update__.
842856

articles/machine-learning/includes/azureml-batch-clone-samples-with-studio.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: santiagxf
33
ms.service: machine-learning
44
ms.topic: include
5-
ms.date: 03/19/2024
5+
ms.date: 04/02/2024
66
ms.author: fasantia
77
---
88

@@ -29,7 +29,7 @@ To follow along with this example in a Jupyter Notebook, in the cloned repositor
2929
1. On the left navigation bar, select the option __Notebooks__.
3030
1. Select __Samples__.
3131
1. Navigate to the folder _SDK v2/sdk/python/endpoints/batch/deploy-models/mnist-classifier_.
32-
1. Select the notebook __mnist-batch.ipynb__ .
32+
1. Select the notebook __mnist-batch.ipynb__.
3333
1. Select __Clone this notebook__.
3434

3535
---

articles/machine-learning/includes/azureml-batch-clone-samples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
author: santiagxf
33
ms.service: machine-learning
44
ms.topic: include
5-
ms.date: 04/22/2023
5+
ms.date: 04/02/2024
66
ms.author: fasantia
77
---
88

articles/machine-learning/includes/azureml-batch-prereqs-with-studio.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
author: santiagxf
33
ms.service: machine-learning
44
ms.topic: include
5-
ms.date: 03/19/2024
5+
ms.date: 04/02/2024
66
ms.author: fasantia
77
---
88

99
Before you follow the steps in this article, make sure you have the following prerequisites:
1010

1111
* An Azure subscription. If you don't have an Azure subscription, create a free account before you begin. Try the [free or paid version of Azure Machine Learning](https://azure.microsoft.com/free/).
1212

13-
* An Azure Machine Learning workspace. If you don't have one, use the steps in the [How to manage workspaces](../how-to-manage-workspace.md) to create one.
13+
* An Azure Machine Learning workspace. If you don't have one, use the steps in the [How to manage workspaces](../how-to-manage-workspace.md) article to create one.
1414

15-
* Ensure you have the following permissions in the workspace:
15+
* To perform the following tasks, ensure that you have these permissions in the workspace:
1616

17-
* Create/manage batch endpoints and deployments: Use roles Owner, contributor, or custom role allowing `Microsoft.MachineLearningServices/workspaces/batchEndpoints/*`.
17+
* To create/manage batch endpoints and deployments: Use owner role, contributor role, or a custom role allowing `Microsoft.MachineLearningServices/workspaces/batchEndpoints/*`.
1818

19-
* Create ARM deployments in the workspace resource group: Use roles Owner, contributor, or custom role allowing `Microsoft.Resources/deployments/write` in the resource group where the workspace is deployed.
19+
* To create ARM deployments in the workspace resource group: Use owner role, contributor role, or a custom role allowing `Microsoft.Resources/deployments/write` in the resource group where the workspace is deployed.
2020

2121
* You need to install the following software to work with Azure Machine Learning:
2222

0 commit comments

Comments
 (0)