MLflow
Learn how to use the MLflow Experiment Tracker with ZenML.
The ZenML MLflow Experiment Tracker integration and stack component allows you to log and visualize information from your pipeline steps using MLflow, without having to write extra MLflow code.
Prerequisites
To use the MLflow Experiment Tracker, you'll need:
ZenML
mlflow
integration installed (zenml integration install mlflow -y
)An MLflow deployment, either local (scenario 1) or remote with proxied artifact storage (scenario 5)
Configuring the Experiment Tracker
There are two main MLflow deployment scenarios:
Local (scenario 1): Use a local artifact store, only suitable for running ZenML locally. No extra configuration needed.
Remote with proxied artifact storage (scenario 5): Can be used with any stack components. Requires authentication configuration.
For remote, you'll need to configure authentication using one of:
Basic authentication (not recommended for production)
ZenML secrets (recommended)
To use ZenML secrets:
Using the Experiment Tracker
To log information with MLflow in a pipeline step:
Enable the experiment tracker using the
@step
decoratorUse MLflow's logging or auto-logging capabilities as usual
Viewing Results
You can find the URL to the MLflow experiment for a ZenML run:
This will link to your deployed MLflow instance UI, or the local MLflow experiment file.
Additional Configuration
You can further configure the experiment tracker using MLFlowExperimentTrackerSettings
:
For more details and advanced options, see the full MLflow Experiment Tracker documentation.
Last updated