Promoting assets to a deployment space
Learn about how to promote assets from a project to a deployment space and the requirements for promoting specific asset types.
Promoting assets to your deployment space
You can promote assets from your project to a deployment space. For a list of assets that can be promoted from a project to a deployment space, refer to Adding assets to a deployment space. When you are promoting assets, you can:
- Choose an existing space or create a new one.
- Add tags to help identify the promoted asset.
- Choose dependent assets to promote them at the same time.
Follow these steps to promote your assets to your deployment space:
-
From your project, go to the Assets tab.
-
Select the Options (
) icon and click Promote to space.
Notes:
- Promoting assets and their dependencies from a project to a space by using the Watson Studio user interface is the recommended method to guarantee that the promotion flow results in a complete asset definition. For example, relying on the Data and AI Common Core API to manage the promotion flow of an asset, together with its dependencies, can result in the promoted asset from being inaccessible from the space.
- For an asset with versions, the versions are indicated with a numbered badge. When you promote an asset that has versions, you can promote the current version, or you can promote one of the versions.
- Promoting assets from default Git-based projects is not supported. To move assets from a project with default Git integration to a deployment space, follow the steps that are described in Adding code packages to a deployment space.
- Depending on your configuration and the type of asset that you promote, large asset attachments, typically more than 2 GB, can cause the promotion action to time out.
For more information, see:
Promoting connections and connected data
When you promote a connection that uses personal credentials or Cloud Pak for Data authentication to a deployment space, the credentials are not promoted. You must provide the credentials information again or allow Cloud Pak for Data authentication.
Because Storage Volume connections support only personal credentials, to be able to use this type of asset after it is promoted to a space, you must provide the credentials again.
Some types of connections allow for using your personal
platform credentials. If you promote a connection or connected data that uses your personal platform credentials, tick the Use my platform login credentials checkbox.
Although you can promote any kind of data connection to
a space, where you can use the connection is governed by factors such as model and deployment type. For example, you can access any of the connected data by using a script. However, in batch deployments you are limited to particular types
of data, as listed in Creating a batch deployment.
Promoting models
When you promote a model to a space:
- Components that are required for a successful deployment, such as a custom software specification or model definition are automatically promoted as well.
- The data assets that were used to train the model are not promoted with it. Information on data assets used to train the model is included in model metadata.
Promoting notebooks and scripts
-
If you created a job for a notebook and you selected Log and updated version as the job run result output, the notebook cannot be promoted to a deployment space.
-
If you are working in a notebook that you created before IBM Cloud Pak for Data 4.0, and you want to promote this notebook to a deployment space, follow these steps to enable promoting it:
- Save a new version of the notebook.
- Select the newly created version.
- Select either Log and notebook or Log only as the job run result output under Advanced configuration.
- Run your job again.
Now you can promote it manually from the project Assets page or programmatically by using CPDCTL commands.
-
If you want to promote a notebook programmatically, use CPDCTL commands to move the notebook or script to a deployment space. To learn how to use CPDCTL to move notebooks or scripts to spaces, refer to CPDCTL code samples. For the reference guide, refer to CPDCTL command reference.
If you want to promote your notebook or script together with the environment template that was used to run it (for example, in cases when you are using a custom environment), follow the steps that are described in Adding code packages to a deployment space.
- If you save an AutoAI experiment as a notebook in your Project, then promote the notebook from your deployment space, your notebook job might fail. This can happen if the runtime environment that is selected to run the deployment job for the notebook contains less number of resources than the runtime environment originally used to run the AutoAI experiment. To avoid failure, your must promote the notebook and the environment separately to your deployment space.
Parent topic: Assets in deployment spaces