Skip to content

Commit 3dab4a0

Browse files
committed
edits
1 parent 7423bc2 commit 3dab4a0

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

articles/machine-learning/concept-mlflow.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ms.custom: cliv2, sdkv2
1717

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

20-
This article describes the capabilities and advantages of [MLflow](https://www.mlflow.org), an open-source framework designed to manage the complete machine learning lifecycle. MLflow can train and serve models on different platforms, letting you use a consistent set of tools whether your experiments are running locally or on a remote compute target, virtual machine, or Azure Machine Learning compute instance.
20+
This article describes the capabilities and advantages of [MLflow](https://www.mlflow.org), an open-source framework designed to manage the complete machine learning lifecycle. MLflow can train and serve models on different platforms. You can use a consistent set of tools whether your experiments are running locally or on a remote compute target, virtual machine, or Azure Machine Learning compute instance.
2121

2222
Azure Machine Learning workspaces are MLflow-compatible, which means that you can use an Azure Machine Learning workspace the same way you use an MLflow server. This compatibility has the following advantages:
2323

@@ -26,7 +26,7 @@ Azure Machine Learning workspaces are MLflow-compatible, which means that you ca
2626
- You can run any training routine that uses MLflow in Azure Machine Learning without making any changes.
2727

2828
> [!TIP]
29-
> Unlike the Azure Machine Learning SDK v1, there's no logging functionality in the v2 SDK. Use MLflow logging to ensure that your training routines are cloud-agnostic and portable, removing any code dependency on Azure Machine Learning.
29+
> Unlike the Azure Machine Learning SDK v1, there's no logging functionality in the v2 SDK. You can use MLflow logging to ensure that your training routines are cloud-agnostic and portable, removing any dependency your code has on Azure Machine Learning.
3030
3131
## Tracking with MLflow
3232

@@ -40,7 +40,7 @@ MLflow in Azure Machine Learning can:
4040
- [Track Azure Databricks machine learning experiments](how-to-use-mlflow-azure-databricks.md).
4141
- [Track Azure Synapse Analytics machine learning experiments](how-to-use-mlflow-azure-synapse.md).
4242

43-
### Tracking limitations with MLflow in R
43+
### Tracking with MLflow in R
4444

4545
MLflow support in R has the following limitations:
4646

@@ -50,28 +50,28 @@ MLflow support in R has the following limitations:
5050

5151
For examples of using the MLflow tracking client with Azure Machine Learning, see [Train R models using the Azure Machine Learning CLI (v2)](https://github.com/Azure/azureml-examples/tree/main/cli/jobs/single-step/r).
5252

53-
### Tracking limitations with MLflow in Java
53+
### Tracking with MLflow in Java
5454

5555
MLflow support in Java has the following limitations:
5656

5757
- MLflow tracking is limited to tracking experiment metrics and parameters on Azure Machine Learning jobs.
5858
- Artifacts and models can't be tracked. Instead, use the `Outputs` folder in jobs along with the `mlflow.save_model` method to save models or artifacts that you want to capture.
5959

60-
For a simple Java example that uses the MLflow tracking client with the Azure ML tracking server, see [azuremlflow-java](https://github.com/Azure/azureml-examples/tree/main/cli/jobs/single-step/java/iris).
60+
For a simple Java example that uses the MLflow tracking client with the Azure Machine Learning tracking server, see [azuremlflow-java](https://github.com/Azure/azureml-examples/tree/main/cli/jobs/single-step/java/iris).
6161

6262
### Example tracking with MLflow notebooks
6363

64-
- [Training and tracking an XGBoost classifier with MLflow](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/train-and-log/xgboost_classification_mlflow.ipynb) demonstrates how to track experiments, log models, and combine multiple flavors into pipelines.
65-
- [Training and tracking an XGBoost classifier with MLflow using service principal authentication](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/train-and-log/xgboost_service_principal.ipynb) demonstrates how to track experiments from a compute that's running outside Azure Machine Learning. The example shows how to authenticate against Azure Machine Learning services by using a service principal.
66-
- [Hyper-parameter optimization using HyperOpt and nested runs in MLflow](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/train-and-log/xgboost_nested_runs.ipynb) demonstrates how to use child runs to do hyper-parameter optimization for models by using the popular library `Hyperopt`. The example shows how to transfer metrics, parameters, and artifacts from child runs to parent runs.
67-
- [Logging models with MLflow](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/train-and-log/logging_and_customizing_models.ipynb) demonstrates how to use the concept of models instead of artifacts. The example also shows how to construct custom models.
68-
- [Manage runs and experiments with MLflow](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/runs-management/run_history.ipynb) demonstrates how to query experiments, runs, metrics, parameters, and artifacts from Azure Machine Learning.
64+
- [Training and tracking an XGBoost classifier with MLflow](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/train-and-log/xgboost_classification_mlflow.ipynb) demonstrates how to use MLflow to track experiments, log models, and combine multiple flavors into pipelines.
65+
- [Training and tracking an XGBoost classifier with MLflow using service principal authentication](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/train-and-log/xgboost_service_principal.ipynb) demonstrates how to use MLflow to track experiments from a compute that's running outside Azure Machine Learning. The example shows how to authenticate against Azure Machine Learning services by using a service principal.
66+
- [Hyperparameter optimization using HyperOpt and nested runs in MLflow](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/train-and-log/xgboost_nested_runs.ipynb) demonstrates how to use child runs to do hyperparameter optimization for models by using the popular library HyperOpt. The example shows how to transfer metrics, parameters, and artifacts from child runs to parent runs.
67+
- [Logging models with MLflow](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/train-and-log/logging_and_customizing_models.ipynb) demonstrates how to use the concept of models instead of artifacts with MLflow. The example also shows how to construct custom models.
68+
- [Manage runs and experiments with MLflow](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/runs-management/run_history.ipynb) demonstrates how to use MLflor to query experiments, runs, metrics, parameters, and artifacts from Azure Machine Learning.
6969

7070
## Model registries with MLflow
7171

7272
Azure Machine Learning supports MLflow for model management. This support represents a convenient way to support the entire model lifecycle for users that are familiar with the MLflow client. For more information about how to manage models by using the MLflow API in Azure Machine Learning, see [Manage model registries in Azure Machine Learning with MLflow](how-to-manage-models-mlflow.md).
7373

74-
### Example model registry notebook
74+
### Example MLflow model registry notebook
7575

7676
- [Model management with MLflow](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/model-management/model_management.ipynb) demonstrates how to manage models in registries.
7777

@@ -86,15 +86,15 @@ The MLflow SDK, Azure Machine Learning CLI, Azure Machine Learning SDK for Pytho
8686
- [Deploy MLflow to online endpoints](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/deploy/mlflow_sdk_online_endpoints.ipynb) demonstrates how to deploy MLflow models to online endpoints using the MLflow SDK.
8787
- [Progressive rollout of MLflow deployments](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/deploy/mlflow_sdk_online_endpoints_progresive.ipynb) demonstrates how to deploy MLflow models to online endpoints using the MLflow SDK with progressive model rollout. The example also shows deployment of multiple versions of a model to the same endpoint.
8888
- [Deploy MLflow models to legacy web services](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/deploy/mlflow_sdk_web_service.ipynb) demonstrates how to deploy MLflow models to legacy web services (Azure Container Instances or Azure Kubernetes Service v1) using the MLflow SDK.
89-
- [Train models in Azure Databricks and deploy them on Azure ML](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/deploy/track_with_databricks_deploy_aml.ipynb) demonstrates how to train models in Azure Databricks and deploy them in Azure Machine Learning. The example covers cases where you also want to track the experiments with the MLflow instance in Azure Databricks.
89+
- [Train models in Azure Databricks and deploy them on Azure Machine Learning](https://github.com/Azure/azureml-examples/blob/main/sdk/python/using-mlflow/deploy/track_with_databricks_deploy_aml.ipynb) demonstrates how to train models in Azure Databricks and deploy them in Azure Machine Learning. The example covers cases where you also want to track the experiments with the MLflow instance in Azure Databricks.
9090

9191
## Training with MLflow Projects (preview)
9292

93-
[!INCLUDE machine-learning-preview-generic-disclaimer]
93+
[!INCLUDE [machine-learning-preview-generic-disclaimer](includes/machine-learning-preview-generic-disclaimer.md)]
9494

9595
You can submit training jobs to Azure Machine Learning by using [MLflow Projects](https://www.mlflow.org/docs/latest/projects.html). You can submit jobs locally with Azure Machine Learning tracking or migrate your jobs to the cloud via [Azure Machine Learning compute](how-to-create-attach-compute-cluster.md).
9696

97-
To learn how to submit training jobs with MLflow projects that use Azure Machine Learning workspaces for tracking, see [Train with MLflow Projects in Azure Machine Learning (preview)](how-to-train-mlflow-projects.md).
97+
To learn how to submit training jobs with MLflow Projects that use Azure Machine Learning workspaces for tracking, see [Train with MLflow Projects in Azure Machine Learning (preview)](how-to-train-mlflow-projects.md).
9898

9999
### Example MLflow Projects notebooks
100100

@@ -106,10 +106,10 @@ To learn how to submit training jobs with MLflow projects that use Azure Machine
106106
The following table shows the machine learning lifecycle operations that are possible with each of the Azure Machine Learning client tools.
107107

108108
| Feature | MLflow SDK | Azure Machine Learning CLI/SDK | Azure Machine Learning studio |
109-
| :- | :-: | :-: | :-: |
109+
|---|---|---|---|
110110
| Track and log metrics, parameters, and models | **✓** | | |
111111
| Retrieve metrics, parameters, and models | **✓** | Only artifacts and models can be downloaded. | **✓** |
112-
| Submit training jobs | Possible by using MLflow Projects (preview) | **✓** | **✓** |
112+
| Submit training jobs | Possible by using MLflow Projects (preview). | **✓** | **✓** |
113113
| Submit training jobs with Azure Machine Learning data assets | | **✓** | **✓** |
114114
| Submit training jobs with machine learning pipelines | | **✓** | **✓** |
115115
| Manage experiments and runs | **✓** | **✓** | **✓** |
@@ -118,7 +118,8 @@ The following table shows the machine learning lifecycle operations that are pos
118118
| Deploy MLflow models to Azure Machine Learning (online and batch) | Deployment of MLflow models for batch inference isn't currently supported.<sup>2</sup> | **&check;** | **&check;** |
119119
| Deploy non-MLflow models to Azure Machine Learning | | **&check;** | **&check;** |
120120

121-
<sup>1</sup> For more information, see [Manage model registries in Azure Machine Learning with MLflow](how-to-manage-models-mlflow.md) for details.
121+
<sup>1</sup> For more information, see [Manage model registries in Azure Machine Learning with MLflow](how-to-manage-models-mlflow.md).
122+
122123
<sup>2</sup> For an alternative, see [Deploy and run MLflow models in Spark jobs](how-to-deploy-mlflow-model-spark-jobs.md).
123124

124125
## Related content

0 commit comments

Comments
 (0)