MLOps using Azure Databricks & Azure ML - question on data prep for model inference and retraining.

Kiran Purushotham 11 Reputation points
2020-12-14T15:09:41.913+00:00

I am using this blog (https://databricks.com/blog/2020/10/13/using-mlops-with-mlflow-and-azure.html) to set-up MLOps using Azure Databricks & Azure ML. As mentioned in the blog, we deploy MLflow model into an Azure ML environment using the built in MLflow deployment capabilities, which is used for inference. A couple of questions -

  1. How and where does the data prep come into picture before inference and how I can integrate that piece.
  2. How to create a re-training workflow for the model?

Thanks.

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,830 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,148 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ramr-msft 17,736 Reputation points
    2020-12-15T08:22:17.753+00:00

    @Kiran Purushotham Thanks, using Databricks to build models and track using MLFlow. Then wants to deploy the model using MLFlow->AML service integration and wants to monitor the model. To work around the limitation of MLflow deployment, you can switch to AML deployment but use the model created and registered by MLFlow at AML.
    First, add mflow to conda dependencies to be able to use it in your scoring script, then in init method, load the model using mlflow API, for example:
    model = mlflow.pytorch.load_model(model_dir)
    You need to check artifact structure of the mode registered in AML to construct model_dir correctly because it was created using MLFlow API.

    You may implement ML Ops with a hybrid setup:
    Cloud Part:
    • Azure DevOps can orchestrate Azure ML Service for MLOps practices.
    • Azure ML Service can be used to training and orchestrating model development, an MLOps manual in link.

    On Prems:
    • We can train models using data & CPU power on local, on prems.
    • We can run Azure DevOps pipelines on prems with the Azure DevOps Server running on an On Prems Hardware.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.