Skip to content

Commit 4634553

Browse files
Additional edits.
1 parent ad36379 commit 4634553

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

articles/machine-learning/how-to-deploy-automl-endpoint.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ms.devlang: azurecli
1818

1919
[!INCLUDE [dev v2](includes/machine-learning-dev-v2.md)]
2020

21-
In this article, you learn how to deploy an AutoML-trained machine learning model to an online real-time inference endpoint. Automated machine learning, also referred to as automated ML or AutoML, is the process of automating the time-consuming, iterative tasks of developing a machine learning model. For more information, see [What is automated machine learning (AutoML)?](concept-automated-ml.md).
21+
In this article, you learn how to deploy an AutoML-trained machine learning model to an online real-time inference endpoint. Automated machine learning, also referred to as automated ML or AutoML, is the process of automating the time-consuming, iterative tasks of developing a machine learning model. For more information, see [What is automated machine learning (AutoML)?](concept-automated-ml.md)
2222

2323
In the following sections, you learn how to deploy AutoML trained machine learning model to online endpoints using:
2424

@@ -36,10 +36,10 @@ Deploying an AutoML-trained model from the Automated ML page is a no-code experi
3636

3737
1. In Azure Machine Learning studio, go to the **Automated ML** page.
3838
1. Select your experiment and run it.
39-
1. Choose the **Models + child** jobs tab.
39+
1. Choose the **Models + child jobs** tab.
4040
1. Select the model that you want to deploy.
4141
1. After you select a model, the **Deploy** button is available with a dropdown menu.
42-
1. Select *Real-time endpoint* option.
42+
1. Select **Real-time endpoint** option.
4343

4444
:::image type="content" source="media/how-to-deploy-automl-endpoint/deploy-button.png" lightbox="media/how-to-deploy-automl-endpoint/deploy-button.png" alt-text="Screenshot showing the Deploy button's drop-down menu.":::
4545

@@ -53,18 +53,18 @@ If you want to have more control over the deployment, you can download the train
5353

5454
To download the components, you need for deployment:
5555

56-
1. Go to your Automated ML experiment and run in your machine learning workspace.
56+
1. Go to your Automated ML experiment and run it in your machine learning workspace.
5757
1. Choose the **Models + child jobs** tab.
58-
1. Select the model you want to use. After you select a model, the *Download* button is enabled.
58+
1. Select the model you want to use. After you select a model, the **Download** button is enabled.
5959
1. Choose **Download**.
6060

6161
:::image type="content" source="media/how-to-deploy-automl-endpoint/download-model.png" lightbox="media/how-to-deploy-automl-endpoint/download-model.png" alt-text="Screenshot showing the selection of the model and download button.":::
6262

63-
You receive a zip file that contains:
63+
You receive a *.zip* file that contains:
6464

65-
- A conda environment specification file named `conda_env_<VERSION>.yml`
66-
- A Python scoring file named `scoring_file_<VERSION>.py`
67-
- The model itself, in a Python `.pkl` file named `model.pkl`
65+
- A conda environment specification file named *conda_env_<VERSION>.yml*
66+
- A Python scoring file named *scoring_file_<VERSION>.py*
67+
- The model itself, in a Python *.pkl* file named *model.pkl*
6868

6969
To deploy using these files, you can use either the studio or the Azure CLI.
7070

@@ -73,8 +73,8 @@ To deploy using these files, you can use either the studio or the Azure CLI.
7373
1. In Azure Machine Learning studio, go to the **Models** page.
7474
1. Select Select **+ Register** > **From local files**.
7575
1. Register the model you downloaded from Automated ML run.
76-
1. Go to Environments page, select Custom environment, and select + Create option to create an environment for your deployment. Use the downloaded conda yaml to create a custom environment.
77-
1. Select the model, and from the Deploy drop-down option, select Deploy to real-time endpoint.
76+
1. Go to the Environments page, select **Custom environment**, and select **+ Create** to create an environment for your deployment. Use the downloaded conda yaml to create a custom environment.
77+
1. Select the model, and from the D**eploy** dropdown menu, select **Real-time endpoint**.
7878
1. Complete all the steps in wizard to create an online endpoint and deployment.
7979

8080
# [Azure CLI](#tab/cli)
@@ -97,40 +97,40 @@ If you receive an error message or you don't see `Extensions: ml` in the respons
9797

9898
:::code language="azurecli" source="~/azureml-examples-main/cli/misc.sh" id="az_account_set":::
9999

100-
1. Set the default resource group and workspace to where you wish to create the deployment.
100+
1. Set the default resource group and workspace to where you want to create the deployment.
101101

102102
:::code language="azurecli" source="~/azureml-examples-main/cli/setup.sh" id="az_configure_defaults":::
103103

104104
### Put the scoring file in its own directory
105105

106-
Create a directory called `src/` and place the scoring file that you downloaded into it. This directory is uploaded to Azure and contains all the source code necessary to do inference. For an AutoML model, there's just the single scoring file.
106+
Create a directory called *src*. Save the scoring file that you downloaded to it. This directory is uploaded to Azure and contains all the source code necessary to do inference. For an AutoML model, there's just the single scoring file.
107107

108108
### Create the endpoint and deployment yaml file
109109

110110
To create an online endpoint from the command line, create an *endpoint.yml* and a *deployment.yml* file. The following code, taken from the [Azure Machine Learning Examples repo](https://github.com/Azure/azureml-examples), shows the *endpoints/online/managed/sample/*, which captures all the required inputs.
111111

112-
__automl_endpoint.yml__
112+
*automl_endpoint.yml*
113113

114114
::: code language="yaml" source="~/azureml-examples-main/cli/endpoints/online/managed/sample/endpoint.yml" :::
115115

116-
__automl_deployment.yml__
116+
*automl_deployment.yml*
117117

118118
::: code language="yaml" source="~/azureml-examples-main/cli/endpoints/online/managed/sample/blue-deployment.yml" :::
119119

120120
You need to modify this file to use the files you downloaded from the AutoML Models page.
121121

122-
1. Create a file `automl_endpoint.yml` and `automl_deployment.yml` and paste the contents of the preceding examples.
122+
1. Create a file *automl_endpoint.yml* and *automl_deployment.yml* and paste the contents of the preceding examples.
123123

124124
1. Change the value of the `name` of the endpoint. The endpoint name needs to be unique within the Azure region. The name for an endpoint must start with an upper- or lowercase letter and only consist of '-'s and alphanumeric characters.
125125

126-
1. In the `automl_deployment` file, change the value of the keys at the following paths.
126+
1. In the *automl_deployment.yml* file, change the value of the keys at the following paths.
127127

128128
| Path | Change to |
129129
|:---- |:--------- |
130-
| `model:path` | The path to the `model.pkl` file you downloaded. |
130+
| `model:path` | The path to the *model.pkl* file you downloaded. |
131131
| `code_configuration:code:path` | The directory in which you placed the scoring file. |
132-
| `code_configuration:scoring_script` | The name of the Python scoring file (`scoring_file_<VERSION>.py`). |
133-
| `environment:conda_file` | A file URL for the downloaded conda environment file (`conda_env_<VERSION>.yml`). |
132+
| `code_configuration:scoring_script` | The name of the Python scoring file (*scoring_file_\<VERSION>.py*). |
133+
| `environment:conda_file` | A file URL for the downloaded conda environment file (*conda_env_\<VERSION>.yml*). |
134134

135135
> [!NOTE]
136136
> For a full description of the YAML, see [Online endpoint YAML reference](reference-yaml-endpoint-online.md).
@@ -162,7 +162,7 @@ For more information, see [Install the Azure Machine Learning SDK v2 for Python]
162162

163163
### Put the scoring file in its own directory
164164

165-
Create a directory called `src/` and place the scoring file you downloaded into it. This directory is uploaded to Azure and contains all the source code necessary to do inference. For an AutoML model, there's just the single scoring file.
165+
Create a directory called *src*. Save the scoring file that you downloaded to it. This directory is uploaded to Azure and contains all the source code necessary to do inference. For an AutoML model, there's just the single scoring file.
166166

167167
### Connect to Azure Machine Learning workspace
168168

@@ -199,7 +199,7 @@ Create a directory called `src/` and place the scoring file you downloaded into
199199

200200
### Create the endpoint and deployment
201201

202-
Next, create the managed online endpoints and deployments.
202+
Create the managed online endpoints and deployments.
203203

204204
1. Configure online endpoint.
205205

@@ -253,26 +253,26 @@ Next, create the managed online endpoints and deployments.
253253
)
254254
```
255255

256-
In this example, the files you downloaded from the AutoML Models page are in the `src` directory. You can modify the parameters in the code to suit your situation.
256+
In this example, the files you downloaded from the AutoML Models page are in the *src* directory. You can modify the parameters in the code to suit your situation.
257257

258258
| Parameter | Change to |
259259
|:--------- |:--------- |
260-
| `model:path` | The path to the `model.pkl` file you downloaded. |
260+
| `model:path` | The path to the *model.pkl* file you downloaded. |
261261
| `code_configuration:code:path` | The directory in which you placed the scoring file. |
262-
| `code_configuration:scoring_script` | The name of the Python scoring file (`scoring_file_<VERSION>.py`). |
263-
| `environment:conda_file` | A file URL for the downloaded conda environment file (`conda_env_<VERSION>.yml`). |
262+
| `code_configuration:scoring_script` | The name of the Python scoring file (*scoring_file_\<VERSION>.py*). |
263+
| `environment:conda_file` | A file URL for the downloaded conda environment file (*conda_env_\<VERSION>.yml*). |
264264

265265
1. Create the deployment.
266266

267-
Using the `MLClient` created earlier, create the deployment in the workspace. This command starts the deployment creation and return a confirmation response while the deployment creation continues.
267+
Using the `MLClient` created earlier, create the deployment in the workspace. This command starts creating the deployment. It returns a confirmation response while the deployment creation continues.
268268

269269
```python
270270
ml_client.begin_create_or_update(blue_deployment)
271271
```
272272

273273
After you create a deployment, you can score it as described in [Test the endpoint with sample data](how-to-deploy-managed-online-endpoint-sdk-v2.md#test-the-endpoint-with-sample-data).
274274

275-
You can learn to deploy to managed online endpoints with SDK more in [Deploy and score a machine learning model by using an online endpoint](how-to-deploy-managed-online-endpoint-sdk-v2.md).
275+
To learn more about deploying to managed online endpoints with SDK, see [Deploy and score a machine learning model by using an online endpoint](how-to-deploy-managed-online-endpoint-sdk-v2.md).
276276

277277
---
278278

0 commit comments

Comments
 (0)