You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/machine-learning/tutorial-deploy-model.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ ms.topic: tutorial
9
9
author: dem108
10
10
ms.author: sehan
11
11
ms.reviewer: mopeakande
12
-
ms.date: 03/01/2024
12
+
ms.date: 03/04/2024
13
13
ms.custom: mlops, devx-track-python #add more custom tags
14
14
#Customer intent: This tutorial is intended to show users what is needed for deployment and present a high-level overview of how Azure Machine Learning handles deployment. Deployment isn't typically done by a data scientist, so the tutorial won't use Azure CLI examples. We will link to existing articles that use Azure CLI as needed. The code in the tutorial will use SDK v2. The tutorial will continue where the "Create reusable pipelines" tutorial stops.
Learn to deploy a model to an online endpoint, using Azure Machine Learning Python SDK v2.
21
21
22
-
In this tutorial, you use a model trained to predict the likelihood of defaulting on a credit card payment. The goal is to deploy this model and show its use.
22
+
In this tutorial, you deploy and use a model that predicts the likelihood of a customer defaulting on a credit card payment.
23
23
24
-
The steps you'll take are:
24
+
The steps you take are:
25
25
26
26
> [!div class="checklist"]
27
27
> * Register your model
@@ -35,7 +35,7 @@ The steps you'll take are:
35
35
> * Get details of the second deployment
36
36
> * Roll out the new deployment and delete the first one
37
37
38
-
This video shows how to get started in Azure Machine Learning studio so that you can follow the steps in the tutorial. The video shows how to create a notebook, create a compute instance, and clone the notebook. The steps are also described in the following sections.
38
+
This video shows how to get started in Azure Machine Learning studio so that you can follow the steps in the tutorial. The video shows how to create a notebook, create a compute instance, and clone the notebook. The steps are also described in the following sections.
@@ -61,12 +61,12 @@ This video shows how to get started in Azure Machine Learning studio so that you
61
61
62
62
## Create handle to workspace
63
63
64
-
Before you dive in the code, you need a way to reference your workspace. For this, you create`ml_client` for a handle to the workspace and use the `ml_client` to manage resources and jobs.
64
+
Before you dive in the code, you need a way to reference your workspace. Create`ml_client` for a handle to the workspace and use the `ml_client` to manage resources and jobs.
65
65
66
-
In the next cell, enter your Subscription ID, Resource Group name and Workspace name. To find these values:
66
+
In the next cell, enter your Subscription ID, Resource Group name, and Workspace name. To find these values:
67
67
68
68
1. In the upper right Azure Machine Learning studio toolbar, select your workspace name.
69
-
1. Copy the value for workspace, resource group and subscription ID into the code.
69
+
1. Copy the value for workspace, resource group, and subscription ID into the code.
70
70
1. You need to copy one value, close the area and paste, then come back for the next one.
71
71
72
72
@@ -92,11 +92,11 @@ ml_client = MLClient(
92
92
93
93
## Register the model
94
94
95
-
If you already completed the earlier training tutorial, [Train a model](tutorial-train-model.md), you've registered an MLflow model as part of the training script and can skip to the next section.
95
+
If you already completed the earlier training tutorial, [Train a model](tutorial-train-model.md), you registered an MLflow model as part of the training script and can skip to the next section.
96
96
97
97
If you didn't complete the training tutorial, you need to register the model. Registering your model before deployment is a recommended best practice.
98
98
99
-
The following code specifies the `path` (where to upload files from) inline. If you [cloned the tutorials folder](quickstart-create-resources.md#learn-from-sample-notebooks), then run the following code as-is. Otherwise, [download the files and metadata for the model to deploy](https://azuremlexampledata.blob.core.windows.net/datasets/credit_defaults_model.zip). Update the path to the location on your local computer where you've unzipped the model's files.
99
+
The following code specifies the `path` (where to upload files from) inline. If you [cloned the tutorials folder](quickstart-create-resources.md#learn-from-sample-notebooks), then run the following code as-is. Otherwise, [download the files and metadata for the model to deploy](https://azuremlexampledata.blob.core.windows.net/datasets/credit_defaults_model.zip) and unzip the files. Update the path to the location of the unzipped files on your local computer.
100
100
101
101
The SDK automatically uploads the files and registers the model.
102
102
@@ -127,7 +127,7 @@ You can check the **Models** page in [Azure Machine Learning studio](https://ml.
127
127
128
128
:::image type="content" source="media/tutorial-deploy-model/registered-model-in-studio.png" alt-text="Screenshot shows the registered model in studio.":::
129
129
130
-
Alternatively, the code below retrieves the latest version number for you to use.
130
+
Alternatively, the following code retrieves the latest version number for you to use.
131
131
132
132
133
133
```python
@@ -147,7 +147,7 @@ Now that you have a registered model, you can create an endpoint and deployment.
147
147
148
148
After you train a machine learning model, you need to deploy it so that others can use it for inferencing. For this purpose, Azure Machine Learning allows you to create **endpoints** and add **deployments** to them.
149
149
150
-
An **endpoint**, in this context, is an HTTPS path that provides an interface for clients to send requests (input data) to a trained model and receive the inferencing (scoring) results back from the model. An endpoint provides:
150
+
An **endpoint**, in this context, is an HTTPS path that provides an interface for clients to send requests (input data) to a trained model and receive the inferencing (scoring) results from the model. An endpoint provides:
Deploy the model as a second deployment called `green`. In practice, you can create several deployments and compare their performance. These deployments could use a different version of the same model, a completely different model, or a more powerful compute instance.
371
+
Deploy the model as a second deployment called `green`. In practice, you can create several deployments and compare their performance. These deployments could use a different version of the same model, a different model, or a more powerful compute instance.
372
372
373
373
In this example, you deploy the same model version, using a more powerful compute instance that could potentially improve performance.
0 commit comments