<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Best practice for model promotion so that models are not removed from previous stage in Machine Learning</title>
    <link>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/70993#M3300</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thanks for interesting information.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2024 09:23:34 GMT</pubDate>
    <dc:creator>GregoryNation</dc:creator>
    <dc:date>2024-05-29T09:23:34Z</dc:date>
    <item>
      <title>Best practice for model promotion so that models are not removed from previous stage</title>
      <link>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/19108#M1036</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using Model Registry to promote models is great. However, I am facing an issue, where multiple Databricks workspaces (SIT / UAT / Prod) use a model at various stages (Staging for SIT and UAT, Production for Prod workspace).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have a workflow running in all environments, everything is equal except input and output data, and the model staging state. This means that the workflow fails in SIT &amp;amp; UAT as soon as the model is promoted to Production state, since it no longer exists in Staging state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to promote a model, but still keeping a copy of it with the "None" or "Staging" state? Otherwise, what would be a good practice to keep the testing environments running with the same model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot any MLFlow / Databricks experts!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2022 13:56:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/19108#M1036</guid>
      <dc:creator>thibault</dc:creator>
      <dc:date>2022-12-02T13:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for model promotion so that models are not removed from previous stage</title>
      <link>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/19109#M1037</link>
      <description>&lt;P&gt;Hello Thibault,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reusing already built model there are multiple options:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Register the model from dev to QA&amp;nbsp;model registry as described &lt;A href="https://docs.databricks.com/machine-learning/manage-model-lifecycle/multiple-workspaces.html" alt="https://docs.databricks.com/machine-learning/manage-model-lifecycle/multiple-workspaces.html" target="_blank"&gt;here&lt;/A&gt; OR&lt;UL&gt;&lt;LI&gt;In this scenario only the registered model will be copied&lt;/LI&gt;&lt;LI&gt;Lineage to runs is not possible&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;You can copy dev's registered model and the MLflow runs that are linked to its versions to QA workspace (details &lt;A href="https://docs.databricks.com/mlflow/migrate-mlflow-objects.html?_ga=2.27317180.1811032129.1675107429-670455211.1650901610" alt="https://docs.databricks.com/mlflow/migrate-mlflow-objects.html?_ga=2.27317180.1811032129.1675107429-670455211.1650901610" target="_blank"&gt;here&lt;/A&gt; and &lt;A href="https://github.com/mlflow/mlflow-export-import#why-use-mlflow-export-import" alt="https://github.com/mlflow/mlflow-export-import#why-use-mlflow-export-import" target="_blank"&gt;here&lt;/A&gt;)&lt;UL&gt;&lt;LI&gt;This approach will keep the lineage&lt;/LI&gt;&lt;LI&gt;This approach has some limitations (listed &lt;A href="https://github.com/mlflow/mlflow-export-import/blob/master/README_limitations.md" alt="https://github.com/mlflow/mlflow-export-import/blob/master/README_limitations.md" target="_blank"&gt;here&lt;/A&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the ask is changing the stage of the registered model version in the current registry:&lt;/P&gt;&lt;P&gt;You can only have one stage per version. However, you can register the same run's MLflow model with more than one registered model (version).&amp;nbsp;which is available using API (example &lt;A href="https://mlflow.org/docs/latest/model-registry.html#adding-an-mlflow-model-to-the-model-registry" alt="https://mlflow.org/docs/latest/model-registry.html#adding-an-mlflow-model-to-the-model-registry" target="_blank"&gt;here&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am happy to help with any further information needed.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2023 20:09:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/19109#M1037</guid>
      <dc:creator>User16502773013</dc:creator>
      <dc:date>2023-01-30T20:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for model promotion so that models are not removed from previous stage</title>
      <link>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/19110#M1038</link>
      <description>&lt;P&gt;Thanks for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see, so as I see it, a clean way to do it is to &lt;/P&gt;&lt;UL&gt;&lt;LI&gt;have a model registry per workspace&lt;/LI&gt;&lt;LI&gt;use the mlflow import/export tool to copy a model from dev -&amp;gt; sit -&amp;gt; qa -&amp;gt; prod workspaces based on cicd and mlops&lt;/LI&gt;&lt;LI&gt;not use the model stage functionality and use only one stage&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Benefits :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;simplicity as there is no dependency on the model staging transitions&lt;/LI&gt;&lt;LI&gt;easily integrates with mlops and cicd&lt;/LI&gt;&lt;LI&gt;keeps the lineage&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Cons :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;need to create a model registry per workspace&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this sound reasonable? I'll give it a try and see how much I can automate from model building in dev to prod through my cicd pipeline.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 20:10:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/19110#M1038</guid>
      <dc:creator>thibault</dc:creator>
      <dc:date>2023-01-31T20:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for model promotion so that models are not removed from previous stage</title>
      <link>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/70993#M3300</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thanks for interesting information.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 09:23:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/70993#M3300</guid>
      <dc:creator>GregoryNation</dc:creator>
      <dc:date>2024-05-29T09:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Best practice for model promotion so that models are not removed from previous stage</title>
      <link>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/71421#M3324</link>
      <description>&lt;P&gt;Thats what I need&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2024 08:35:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/machine-learning/best-practice-for-model-promotion-so-that-models-are-not-removed/m-p/71421#M3324</guid>
      <dc:creator>KarenGalvez</dc:creator>
      <dc:date>2024-06-03T08:35:34Z</dc:date>
    </item>
  </channel>
</rss>

