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
@@ -170,7 +170,7 @@ The workspace is the top-level resource for Azure Machine Learning, providing a
170
170
171
171
### Create the registered model
172
172
173
-
You can create a registered model from a model:
173
+
You can create a registered model from a model that's:
174
174
175
175
- Located on your local computer.
176
176
- Located on an Azure Machine Learning datastore.
@@ -229,16 +229,18 @@ If your model data comes from a job output, you have two options for specifying
229
229
>[!NOTE]
230
230
>The *artifacts* reserved keyword represents output from the default artifact location.
231
231
232
-
-**MLflow runs: URIformat**
232
+
-**MLflow runs:**URIformat
233
233
234
-
This option is optimized for MLflow users, who are probably already familiar with the MLflow `runs:`URIformat. This option creates a model from artifacts in the default *artifact* location, where all MLflow-logged models and artifacts are located. This option also establishes a lineage between a registered model and the run the model came from.
234
+
This option is optimized for MLflow users, who are probably already familiar with the MLflow `runs:`URIformat. This option creates a model from artifacts in the default artifact location, where all MLflow-logged models and artifacts are located. This option also establishes a lineage between a registered model and the run the model came from.
az ml model create --name <registered-model-name>--version 1--path runs:/<run-id>/<path-to-model>/--type mlflow_model
243
+
az ml model create --name my-registered-model --version 1--path runs:/my_run_0000000000/model/--type mlflow_model
242
244
```
243
245
244
246
# [Python SDK](#tab/python)
@@ -248,37 +250,37 @@ If your model data comes from a job output, you have two options for specifying
248
250
from azure.ai.ml.constants import ModelType
249
251
250
252
run_model= Model(
251
-
path="runs:/<run-id>/model/"
252
-
name="<registered-model-name>",
253
+
path="runs:/my_run_0000000000/model/"
254
+
name="my-registered-model",
253
255
description="Model created from run.",
254
-
type=ModelType.mlflow_model
256
+
type=ModelType.MLFLOW_MODEL
255
257
)
256
258
257
259
ml_client.models.create_or_update(run_model)
258
260
```
259
261
260
262
---
261
-
-**azureml://jobs URIformat**
263
+
-**azureml://jobs**URIformat
262
264
263
265
The `azureml://jobs` reference URI option lets you register a model from artifacts inany of the job's output paths. This format aligns with the `azureml://datastores` reference URI format, and also supports referencing artifacts from named outputs other than the default artifact location.
264
266
265
267
If you didn't directly register your model within the training script by using MLflow, you can use this option to establish a lineage between a registered model and the job it was trained from.
- Default artifact location: `azureml://jobs/<run-id>/outputs/artifacts/paths/<path-to-model>/`. This location is equivalent to MLflow `runs:/<run-id>/<model>/`.
271
+
- Default artifact location: `azureml://jobs/<run-id>/outputs/artifacts/paths/<path-to-model>/`. This location is equivalent to MLflow `runs:/<run-id>/<model>`.
270
272
- Named output folder: `azureml://jobs/<run-id>/outputs/<named-output-folder>`
271
273
- Specific file within the named output folder: `azureml://jobs/<run-id>/outputs/<named-output-folder>/paths/<model-filename>`
272
-
- Specific folder path within the named output folder: `azureml://jobs/<run-id>/outputs/<named-output-folder>/paths/<model-folder-name>/`
274
+
- Specific folder path within the named output folder: `azureml://jobs/<run-id>/outputs/<named-output-folder>/paths/<model-folder-name>`
273
275
274
-
For example:
276
+
Example:
275
277
276
278
# [Azure CLI](#tab/cli)
277
279
278
280
Save a model from a named output folder:
279
281
280
282
```azurecli
281
-
az ml model create --name run-model-example --version 1--path azureml://jobs/<job_name>/outputs/artifacts/paths/model/
283
+
az ml model create --name run-model-example --version 1--path azureml://jobs/my_run_0000000000/outputs/artifacts/paths/model/
282
284
```
283
285
284
286
For a complete example, see the [CLI reference](/cli/azure/ml/model).
@@ -393,7 +395,7 @@ The `Output` class allows you to define:
The following code creates an output that mounts your AzureML default datastore in read-write mode. The code simply loads the local MLflow model asinputand exports the same model as an output of the job saved in the mounted datastore.
398
+
The following example creates an output that mounts your default datastore in read-write mode. The code simply loads the local MLflow model asinputand exports the same model as an output of the job saved in the mounted datastore.
0 commit comments