Chapter 3. MLflow for Traditional ML
MLflow is an open-source tool that was originally created by Databricks for experiment tracking and model registry, and it’s one of the most popular tools in the MLOps ecosystem. It is available both as a standalone tool and as an integrated component of the Databricks platform.
Early in my career, before MLflow existed, we built our own internal tooling to store metrics, parameters, and models. It worked, but it was painful to maintain and hard to standardize across teams. When MLflow came along, it solved exactly that problem, and it has only grown since.
MLflow provides a wide range of features, for both standard machine learning models and LLM-based applications. Here’s a list of the most important ones (which we’ll also cover in Chapter 8):
- MLflow Tracking
-
This is a centralized repository that logs ML model parameters, metrics, artifacts, and a reference to data used for model training. Experiment tracking gives insights into changes in models over time, and makes it possible for you to search for runs and experiments, so it’s crucial for traceability and reproducibility.
- MLflow Model Registry
-
This is a centralized model store that allows users to manage a model’s lifecycle and add tags, aliases, and new model versions. It has a different backend than experiment tracking. To register a model, you must first log it using MLflow Tracking. On Databricks, you should use the Unity Catalog model registry to register models.
- MLflow evaluation ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access