Skip to content

Commit 7041c13

Browse files
Merge pull request #223179 from santiagxf/santiagxf/mlflow-2.0-deprecation-models
Update how-to-manage-models-mlflow.md
2 parents 0cfd399 + 4580434 commit 7041c13

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

articles/machine-learning/how-to-manage-models-mlflow.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,13 @@ client = mlflow.tracking.MlflowClient()
7676
The following sample prints all the model's names:
7777

7878
```python
79-
for model in client.list_registered_models():
79+
for model in client.search_registered_models():
8080
print(f"{model.name}")
8181
```
8282

83+
> [!NOTE]
84+
> __MLflow 2.0 advisory:__ In older versions of Mlflow (<2.0), use method `MlflowClient.list_registered_models()` instead.
85+
8386
### Getting specific versions of the model
8487

8588
The command above will retrieve the model object which contains all the model versions. However, if you want to get the last registered model version of a given model, you can use `get_registered_model`:
@@ -158,7 +161,7 @@ model = mlflow.pyfunc.load_model(f"models:/{model_name}/Staging")
158161

159162
## Editing and deleting models
160163

161-
Editing registered models is supported in both Mlflow and Azure ML, however, there are some differences between them that are important to notice:
164+
Editing registered models is supported in both Mlflow and Azure ML. However, there are some differences important to be noticed:
162165

163166
> [!WARNING]
164167
> Renaming models is not supported in Azure Machine Learning as model objects are immmutable.
@@ -203,7 +206,7 @@ The MLflow client exposes several methods to retrieve and manage models. The fol
203206
| Registering models in MLflow format | **&check;** | **&check;** | **&check;** | **&check;** |
204207
| Registering models not in MLflow format | | | **&check;** | **&check;** |
205208
| Registering models from runs outputs/artifacts | **&check;** | **&check;**<sup>1</sup> | **&check;**<sup>2</sup> | **&check;** |
206-
| Registering models from runs outputs/artifacts in a different tracking server/workspace | **&check;** | | | |
209+
| Registering models from runs outputs/artifacts in a different tracking server/workspace | **&check;** | | **&check;**<sup>5</sup> | **&check;**<sup>5</sup> |
207210
| Listing registered models | **&check;** | **&check;** | **&check;** | **&check;** |
208211
| Retrieving details of registered model's versions | **&check;** | **&check;** | **&check;** | **&check;** |
209212
| Editing registered model's versions description | **&check;** | **&check;** | **&check;** | **&check;** |
@@ -221,9 +224,10 @@ The MLflow client exposes several methods to retrieve and manage models. The fol
221224
> - <sup>2</sup> Use URIs with format `azureml://jobs/<job-id>/outputs/artifacts/<path>`.
222225
> - <sup>3</sup> Registered models are immutable objects in Azure ML.
223226
> - <sup>4</sup> Use search box in Azure ML Studio. Partial match supported.
227+
> - <sup>5</sup> Use [registries](how-to-manage-registries.md).
224228
225229
## Next steps
226230

227231
- [Logging MLflow models](how-to-log-mlflow-models.md)
228232
- [Query & compare experiments and runs with MLflow](how-to-track-experiments-mlflow.md)
229-
- [Guidelines for deploying MLflow models](how-to-deploy-mlflow-models.md)
233+
- [Guidelines for deploying MLflow models](how-to-deploy-mlflow-models.md)

0 commit comments

Comments
 (0)