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
In this workflow, you'll first create the model in the workspace and thencopy it to the registry. This workflow is useful when you want to test the model in the workspace before sharing it. For example, deploy it to endpoints, try out inference with some test data and then copy the model to a registry if everything looks good. This workflow may also be useful when you're developing a series of models using different techniques, frameworks or parameters and want to promote just one of them to the registry as a production candidate.
489
+
In this workflow, you'll first create the model in the workspace and thenshare it to the registry. This workflow is useful when you want to test the model in the workspace before sharing it. For example, deploy it to endpoints, try out inference with some test data and then copy the model to a registry if everything looks good. This workflow may also be useful when you're developing a series of models using different techniques, frameworks or parameters and want to promote just one of them to the registry as a production candidate.
490
490
491
491
# [Azure CLI](#tab/cli)
492
492
@@ -505,7 +505,7 @@ az ml model create --name nyc-taxi-model --version 1 --type mlflow_model --path
505
505
506
506
Note down the model name and version. You can validate if the model is registered in the workspace by browsing it in the Studio UI or using `az ml model show --name nyc-taxi-model --version $model_version` command.
507
507
508
-
Next, you'll now copy the model from the workspace to the registry. Note now the `--path` parameter is referring to the model with the workspace with the `azureml://subscriptions/<subscription-id-of-workspace>/resourceGroups/<resource-group-of-workspace>/workspaces/<workspace-name>/models/<model-name>/versions/<model-version>` syntax.
508
+
Next, you'll now share the model from the workspace to the registry.
509
509
510
510
511
511
```azurecli
@@ -515,7 +515,7 @@ az ml model share --name nyc-taxi-model --version 1 --registry-name <registry-na
515
515
516
516
> [!TIP]
517
517
> * Make sure to use the right model name and version if you changed it in the `az ml model create` command.
518
-
> * The above command creates the model in the registry with the same name and version. You can provide a different name or version with the `--name` or `--version` parameters.
518
+
> * The above command has two optional parameters "--share-with-name" and "--share-with-version". If these are not provided the new model will have the same name and version as the model that is being shared.
519
519
Note down the `name` and `version` of the model from the output of the `az ml model create` command and use them with `az ml model show` commands as follows. You'll need the `name` and `version`in the next section when you deploy the model to an online endpoint for inference.
Note down the model name and version. You can validate if the model is registered in the workspace by browsing it in the Studio UI or fetching it using `ml_client_workspace.model.get()` method.
558
558
559
-
Next, you'll now copy the model from the workspace to the registry. Construct the path to the model with the workspace using the `azureml://subscriptions/<subscription-id-of-workspace>/resourceGroups/<resource-group-of-workspace>/workspaces/<workspace-name>/models/<model-name>/versions/<model-version>` syntax.
560
-
559
+
Next, you'll now share the model from the workspace to the registry.
>Make sure to use the right model name and versionif you changed it in the `ml_client_workspace.model.create_or_update()` method used to create the model in workspace.
567
+
>The above code has two optional parameters "share-with-name" and "share-with-version". If these are not provided the new model will have the same name and version as the model that is being shared.
569
568
570
569
Note down the `name` and `version` of the model from the output and use them with `ml_client_workspace.model.get()` commands as follows. You'll need the `name` and `version` in the next section when you deploy the model to an online endpoint for inference.
0 commit comments