---
title: Model package artifact creation workflow
description:  The improved model package artifact creation workflow provides a clearer and more consistent path to model deployment with visible connections between a model and its associated model packages.
section_name: MLOps
maturity: public-preview
---

# Model package artifact creation workflow {: #model-package-artifact-creation-workflow }

!!! info "Availability information"
    The updated model package creation workflow is off by default. Contact your DataRobot representative or administrator for information on enabling this feature.

    <b>Feature flag:</b> Enable .mlpkg Artifact Creation for Model Packages

Now available as a public preview feature, the improved model package artifact creation workflow provides a clearer and more consistent path to model deployment with visible connections between a model and its associated model packages in the [Model Registry](reg-create). Using this new approach, when you deploy a model, you begin by providing model package details and adding the model package to the Model Registry. After you create the model package and allow the build to complete, you can deploy it by [adding the deployment information](add-deploy-info).

## Register and deploy a model from the Leaderboard

To register and deploy a model using this new workflow:

1. From the **Leaderboard**, select the model to use for generating predictions, and then click **Predict > Deploy**.

    ![](images/pp-model-artifact-creation1.png)

2. To follow best practices, DataRobot recommends that you first [prepare the model for deployment](model-rec-process#prepare-a-model-for-deployment). This process runs **Feature Impact**, retrains the model on a reduced feature list, and trains on a higher sample size, followed by the entire sample (latest data for date/time partitioned projects).

    * If the model has the **Prepared For Deployment** badge, proceed to the next step.

        ![](images/pp-model-artifact-creation2.png)
    
    * If the model doesn't have the **Prepared For Deployment** badge, click **Prepare for deployment**.

        ![](images/pp-model-artifact-creation3.png)

3. On the **Deploy model** tab, provide the following model package information, and then click **Add to Model Registry**:

    ![](images/pp-model-artifact-creation4.png)

    Field                     | Description
    --------------------------|------------
    Prediction threshold      | For binary classification models, enter the value a prediction score must exceed to be assigned to the positive class. The default value is `0.5`.
    Model package name        | Enter a descriptive model package name. The default is the model name (followed by the prediction threshold for binary classification model packages).
    Model package description | _Optional_. Enter a description of the model package.

    !!! note
        If you set the prediction threshold before the [deployment preparation process](model-rec-process), the value does not persist. When deploying the prepared model, if you want it to use a value other than the default, set the value after the model has the **Prepared for Deployment** badge.

4. Allow the model to build. The **Building** status can take a few minutes, depending on the size of the model. A model package must have a **Status** of **Ready** before you can deploy it.

    ![](images/pp-model-artifact-creation-building.png)

5. In the **Model Packages** list, locate the model package you want to deploy, and then click **Deploy**.

    ![](images/pp-model-artifact-creation5.png)

6. Add [deployment information and create the deployment](add-deploy-info).

## Deploy a model package from the Model Registry

To deploy a registered model using this new workflow:

1. Click **Model Registry** > **Model Packages**.

2. Click the **Actions** menu for the model package you want to deploy, and then click **Deploy**.

    The **Status** column shows the build status of the model package.

    ![](images/pp-model-artifact-creation6.png)

    If you deploy a model package that doesn't have a **Status** of **Ready**, the build process starts:

    ![](images/pp-model-artifact-creation7.png)

3. Add [deployment information and create the deployment](add-deploy-info).

You can also open a model package from the Model Registry and deploy it from **Package Info** tab:

![](images/pp-model-artifact-creation8.png)