Skip to content

Commit a411c38

Browse files
committed
review cx
1 parent a7da2c9 commit a411c38

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

articles/machine-learning/concept-mlflow-models.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ description: Learn how MLflow uses the concept of models instead of artifacts to
55
services: machine-learning
66
author: msakande
77
ms.author: mopeakande
8-
ms.reviewer: fasantia
8+
ms.reviewer: cacrest
99
ms.service: azure-machine-learning
1010
ms.subservice: mlops
11-
ms.date: 09/27/2024
11+
ms.date: 09/30/2024
1212
ms.topic: conceptual
1313
ms.custom: cliv2, sdkv2, FY25Q1-Linter
1414
#Customer intent: As a data scientist, I want to understand MLflow artifacts and models so I can use MLflow models to enable streamlined deployment workflows.
@@ -38,7 +38,7 @@ mlflow.log_artifact(filename)
3838

3939
### Model
4040

41-
An MLflow model is an artifact, but you make stronger assumptions about this type of artifact that provide a clear contract between the saved files and what they mean.
41+
An MLflow model is an artifact for which you make stronger assumptions that provide a clear contract between the saved files and what they mean. If, however, you log your model's files simply as artifacts, you need to know what each of the files mean and how to load them for inference.
4242

4343
You can log MLflow models by using the MLflow SDK, for example:
4444

@@ -60,7 +60,7 @@ For models logged as simple artifact files, you need to know what the model buil
6060

6161
The MLmodel format stores assets in a folder that has no specific naming requirement. Among the assets is a file named *MLmodel* that's the single source of truth for how to load and use the model.
6262

63-
The following example shows an MLflow model folder called *credit_defaults_model* in Azure Machine Learning studio. The folder contains the *MLmodel* file and other model artifacts.
63+
The following image shows an MLflow model folder called *credit_defaults_model* in Azure Machine Learning studio. The folder contains the *MLmodel* file and other model artifacts.
6464

6565
:::image type="content" source="media/concept-mlflow-models/mlflow-mlmodel.png" alt-text="A screenshot showing assets of a sample MLflow model, including the MLmodel file." lightbox="media/concept-mlflow-models/mlflow-mlmodel.png":::
6666

@@ -121,7 +121,7 @@ There are two types of signatures:
121121
- **Column-based signatures** operate on tabular data. For models with this type of signature, MLflow supplies `pandas.DataFrame` objects as inputs.
122122
- **Tensor-based signatures** operate with n-dimensional arrays or tensors. For models with this signature, MLflow supplies `numpy.ndarray` as inputs, or a dictionary of `numpy.ndarray` for named tensors.
123123

124-
The following *MLmodel* example shows a computer vision model trained with `fastai`. This model receives a batch of images represented as tensors of shape `(300, 300, 3)` with their RGB representation as unsigned integers. The model outputs batches of predictions as probabilities for two classes.
124+
The following example shows the `signature` section for a computer vision model trained with `fastai`. This model receives a batch of images represented as tensors of shape `(300, 300, 3)` with their RGB representation as unsigned integers. The model outputs batches of predictions as probabilities for two classes.
125125

126126
```yaml
127127
signature:
@@ -163,7 +163,8 @@ dependencies:
163163
name: mlflow-env
164164
```
165165

166-
An MLflow environment operates at the level of the model, but an Azure Machine Learning environment operates at the workspace level for registered environments or the jobs/deployments level for anonymous environments. When you deploy MLflow models, Azure Machine Learning builds the model environment and uses it for deployment. You can use the [Azure Machine Learning CLI](concept-v2.md) to override this behavior and deploy MLflow models to a specific Azure Machine Learning environment.
166+
>[!NOTE]
167+
>An MLflow environment operates at the level of the model, but an Azure Machine Learning environment operates at the workspace level for registered environments or the jobs/deployments level for anonymous environments. When you deploy MLflow models, Azure Machine Learning builds the model environment and uses it for deployment. You can use the [Azure Machine Learning CLI](concept-v2.md) to override this behavior and deploy MLflow models to a specific Azure Machine Learning environment.
167168

168169
### Predict function
169170

0 commit comments

Comments
 (0)