Skip to content

Commit d8170a2

Browse files
committed
touchup
1 parent 3ce8efd commit d8170a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ In MLflow, there are some fundamental differences between logging simple file ar
2424

2525
### Artifact
2626

27-
An artifact is any file that's generated and captured from an experiment's run or job. An artifact could be a model serialized as a pickle file, the weights of a PyTorch or TensorFlow model, or a text file containing the coefficients of a linear regression. Some artifacts have nothing to do with the model itself but contain run configurations, preprocessing information, or sample data. Artifacts can have various formats.
27+
An artifact is any file generated and captured from an experiment's run or job. An artifact could be a model serialized as a pickle file, the weights of a PyTorch or TensorFlow model, or a text file containing the coefficients of a linear regression. Some artifacts have nothing to do with the model itself but contain run configurations, preprocessing information, or sample data. Artifacts can have various formats.
2828

2929
The following example logs a file artifact.
3030

@@ -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, but you make stronger assumptions about this type of artifact that provide a clear contract between the saved files and what they mean.
4242

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

@@ -56,7 +56,7 @@ Logging MLflow models in Azure Machine Learning has the following advantages:
5656

5757
## The MLmodel format
5858

59-
For models logged as simple artifact files, you need to know what the model builder intended for each file so you can load the model for inference. You load MLflow models by using the *MLmodel format* to specify the contract between the artifacts and what they represent.
59+
For models logged as simple artifact files, you need to know what the model builder intended for each file before you can load the model for inference. But for MLflow models, you load the model by using the *MLmodel format* to specify the contract between the artifacts and what they represent.
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

@@ -92,7 +92,7 @@ signature:
9292
9393
### Model flavors
9494
95-
Considering the large number of machine learning frameworks available, MLflow introduced the concept of *flavor* as a way to provide a unique contract for all machine learning frameworks. A flavor indicates what to expect for a given model that's created with a specific framework. For instance, TensorFlow has its own flavor, which specifies how to persist and load a TensorFlow model.
95+
Considering the large number of machine learning frameworks available, MLflow introduced the concept of *flavor* as a way to provide a unique contract for all machine learning frameworks. A flavor indicates what to expect for a given model created with a specific framework. For instance, TensorFlow has its own flavor, which specifies how to persist and load a TensorFlow model.
9696
9797
Because each model flavor indicates how to persist and load the model for a given framework, the MLmodel format doesn't enforce a single serialization mechanism that all models must support. Therefore, each flavor can use the methods that provide the best performance or best support according to their best practices, without compromising compatibility with the MLmodel standard.
9898

0 commit comments

Comments
 (0)