I am trying to create an MLOps Pipeline using Azure DevOps and Azure Databricks. From Azure DevOps, I am submitting a Databricks job to a cluster, which trains a Machine Learning Model and saves it into MLFlow Model Registry with a custom flavour (using PyFunc Custom Model).
Now after the job gets over, I want to export this MLFlow Object (with all dependencies - Conda dependencies, two model files - one .pkl
and one .h5
, the Python Class with load_context()
and predict()
functions defined so that after exporting I can import it and call predict as we do with MLFlow Models).
How do I export this entire MLFlow Model and save it as an AzureDevOps Artifact to be used in the CD phase (where I will deploy it to an AKS cluster with a custom base image)?