Deploying a model in Databricks

Databricks Concepts

Kevin Barlow

Data Practitioner

Machine Learning Lifecycle

Machine Learning Lifecycle

1 https://www.datacamp.com/blog/machine-learning-lifecycle-explained
Databricks Concepts

Model Deployment and Operations

Machine Learning Lifecycle

Databricks Concepts

Concerns with deploying models

Availability

  • How will my end users or application use the model?
  • Where do I need to put my model to access it?
  • Will the model be easy to understand or use?

Using a ML model

Evaluation

  • Are my users actually using my model?
  • Is my model still performing well?
  • Do I need to retrain my model?
  • Do I need a new model that is better?

Evaluating a ML model

Databricks Concepts

Model Deployment Process

Model Deployment Process

Databricks Concepts

Model Flavors

  • MLFlow Models can store a model from any machine learning framework
  • Models are stored alongside different configurations and artifacts
  • Models can be "translated" into another kind of model based on needs. For example:
    • scikit-learn
    • pyfunc
    • spark
    • tensorflow

MLFlow Models

Databricks Concepts

Model Registry

Databricks Model Registry

Databricks Concepts

Model Registry

Model Registry - Registered Models

Databricks Concepts

Model Registry

Model Registry - Model Versions

Databricks Concepts

Model Registry

Model Registry - Model Staging

Databricks Concepts

Model Serving

Databricks Model Serving

Databricks Concepts

Model Serving

Model Serving - Cluster

Databricks Concepts

Model Serving

Model Serving - Model Selection

Databricks Concepts

Model Serving

Model Serving Metrics

1 https://www.databricks.com/product/model-serving
Databricks Concepts

Let's practice!

Databricks Concepts

Preparing Video For Download...