ZenML Integration¶
Config generation, model promotion lifecycle, and reusable pipeline steps.
Config Generation¶
fair.zenml.config
¶
Promotion¶
fair.zenml.promotion
¶
Steps¶
fair.zenml.steps
¶
Reusable ZenML steps for model developers.
load_model resolves a model from the ZenML artifact store using either a direct artifact version ID or a URI fallback. The materializer registered at training time handles deserialization — PyTorch, Keras, TensorFlow, or any custom materializer works transparently.
load_model(model_uri, zenml_artifact_version_id='')
¶
Resolve model from ZenML artifact store. Framework-agnostic via materializer.
Source code in fair/zenml/steps.py
Instrumentation¶
fair.zenml.instrumentation
¶
mlflow_training_context(hyperparameters, model_name=None, base_model_id=None, dataset_id=None)
¶
Context manager that instruments a training step with MLflow.
Handles autolog, param logging, tag setting, and wall-clock timing. Contributors use this instead of manual MLflow calls.
Source code in fair/zenml/instrumentation.py
log_evaluation_results(metrics)
¶
Log evaluation metrics to both MLflow and ZenML fair-prefixed metadata.