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-train-deploy-model-cli.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ services: machine-learning
8
8
ms.service: machine-learning
9
9
ms.subservice: core
10
10
ms.topic: conceptual
11
-
ms.date: 01/08/2019
11
+
ms.date: 03/26/2020
12
12
---
13
13
14
14
# Tutorial: Train and deploy a model from the CLI
@@ -63,7 +63,7 @@ The `examples/cli-train-deploy` directory from the project contains the followin
63
63
The repository contains the following files, which are used to deploy the trained model as a web service:
64
64
65
65
*`aciDeploymentConfig.yml`: A __deployment configuration__ file. This file defines the hosting environment needed for the model.
66
-
*`inferenceConfig.yml`: An __inference configuration__ file. This file defines the software environment used by the service to score data with the model.
66
+
*`inferenceConfig.json`: An __inference configuration__ file. This file defines the software environment used by the service to score data with the model.
67
67
*`score.py`: A python script that accepts incoming data, scores it using the model, and then returns a response.
68
68
*`scoring-env.yml`: The conda dependencies needed to run the model and `score.py` script.
69
69
*`testdata.json`: A data file that can be used to test the deployed web service.
@@ -198,10 +198,10 @@ The output of this command is similar to the following JSON:
198
198
}
199
199
```
200
200
201
-
This command creates a new compute target named `cpu`, with a maximum of four nodes. The VM size selected provides a VM with a GPU resource. For information on the VM size, see [VM types and sizes].
201
+
This command creates a new compute target named `cpu-cluster`, with a maximum of four nodes. The VM size selected provides a VM with a GPU resource. For information on the VM size, see [VM types and sizes].
202
202
203
203
> [!IMPORTANT]
204
-
> The name of the compute target (`cpu` in this case), is important; it is referenced by the `.azureml/mnist.runconfig` file used in the next section.
204
+
> The name of the compute target (`cpu-cluster` in this case), is important; it is referenced by the `.azureml/mnist.runconfig` file used in the next section.
205
205
206
206
## Define the dataset
207
207
@@ -299,7 +299,7 @@ For more information on run configuration files, see [Set up and use compute tar
299
299
300
300
## Submit the training run
301
301
302
-
To start a training run on the `cpu-compute` compute target, use the following command:
302
+
To start a training run on the `cpu-cluster` compute target, use the following command:
303
303
304
304
```azurecli-interactive
305
305
az ml run submit-script -c mnist -e myexperiment --source-directory scripts -t runoutput.json
@@ -368,7 +368,7 @@ The first command downloads the registered model to the current directory. The f
368
368
To deploy a model, use the following command:
369
369
370
370
```azurecli-interactive
371
-
az ml model deploy -n myservice -m "mymodel:1" --ic inferenceConfig.yml --dc aciDeploymentConfig.yml
371
+
az ml model deploy -n myservice -m "mymodel:1" --ic inferenceConfig.json --dc aciDeploymentConfig.yml
372
372
```
373
373
374
374
> [!NOTE]
@@ -448,10 +448,10 @@ This command returns a JSON document that contains the name of the deleted servi
448
448
449
449
### Delete the training compute
450
450
451
-
If you plan on continuing to use the Azure Machine Learning workspace, but want to get rid of the `cpu-compute` compute target created for training, use the following command:
451
+
If you plan on continuing to use the Azure Machine Learning workspace, but want to get rid of the `cpu-cluster` compute target created for training, use the following command:
452
452
453
453
```azurecli-interactive
454
-
az ml computetarget delete -n cpu
454
+
az ml computetarget delete -n cpu-cluster
455
455
```
456
456
457
457
This command returns a JSON document that contains the ID of the deleted compute target. It may take several minutes before the compute target has been deleted.
0 commit comments