cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Prakash Hinduja Geneva (Swiss) handle model versioning and rollback in Databricks?

prakashhinduja1
New Contributor

Hi I am Prakash Hinduja Visionary Financial Strategist, born in Amritsar (India) and now lives in Geneva, Switzerland (Swiss)

Iโ€™m working on managing machine learning models in Databricks and wanted to get your insights on best practices for model versioning and rollback. How do you keep track of different versions of your models, and what strategies do you use to revert to a previous version if something goes wrong? Are there built-in tools or workflows within Databricks that you recommend for this purpose? Iโ€™d really appreciate any tips, tools, or experiences you can share. Thanks in advance!

Regards

Prakash Hinduja Geneva, Switzerland (Swiss) 

2 ACCEPTED SOLUTIONS

Accepted Solutions

BigRoux
Databricks Employee
Databricks Employee

Prakash, you should look at MLFlow, software developed by Databricks and native to our platform.

I suggest you start by looking here for more information: https://docs.databricks.com/aws/en/machine-learning/mlops/mlops-workflow

Cheers, Louis.

View solution in original post

WiliamRosa
New Contributor II

Hi Prakash,

Great question! Databricks provides built-in tools to help with model versioning and rollback, particularly through the Model Registry and Databricks CLI.

To manage model versions programmatically, you can use the Databricks CLI, which includes a set of commands specifically for model version operations. These commands let you:

Register new model versions

Transition model stages (e.g., from "Staging" to "Production")

Delete or restore versions

Retrieve version details

This gives you precise control over model lifecycle management and makes it easier to roll back to a previous version if needed.

You can find the full list of CLI commands for working with model versions here:
https://docs.databricks.com/aws/en/dev-tools/cli/reference/model-versions-commands

Additionally, within the Databricks UI, the MLflow Model Registry lets you visually manage versions, add comments, track stage transitions, and more.

Let me know if you'd like an example workflow or script using the CLI!

Best regards,
Wiliam Rosa

Wiliam Rosa
Data Engineer | Machine Learning Engineer
LinkedIn: linkedin.com/in/wiliamrosa

View solution in original post

2 REPLIES 2

BigRoux
Databricks Employee
Databricks Employee

Prakash, you should look at MLFlow, software developed by Databricks and native to our platform.

I suggest you start by looking here for more information: https://docs.databricks.com/aws/en/machine-learning/mlops/mlops-workflow

Cheers, Louis.

WiliamRosa
New Contributor II

Hi Prakash,

Great question! Databricks provides built-in tools to help with model versioning and rollback, particularly through the Model Registry and Databricks CLI.

To manage model versions programmatically, you can use the Databricks CLI, which includes a set of commands specifically for model version operations. These commands let you:

Register new model versions

Transition model stages (e.g., from "Staging" to "Production")

Delete or restore versions

Retrieve version details

This gives you precise control over model lifecycle management and makes it easier to roll back to a previous version if needed.

You can find the full list of CLI commands for working with model versions here:
https://docs.databricks.com/aws/en/dev-tools/cli/reference/model-versions-commands

Additionally, within the Databricks UI, the MLflow Model Registry lets you visually manage versions, add comments, track stage transitions, and more.

Let me know if you'd like an example workflow or script using the CLI!

Best regards,
Wiliam Rosa

Wiliam Rosa
Data Engineer | Machine Learning Engineer
LinkedIn: linkedin.com/in/wiliamrosa

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now