Using multiple models in your ML deployment
You can deploy multiple models to your ML deployment, including models from different experiments. After deploying models from experiments, use the Deployable models pane in the ML deployment to configure dynamic prediction workflows. When generating predictions, the model you are using is referenced as an alias. This system of aliases allows you to replace models over time without needing to create a new ML deployment, and also eases comparative testing of model performance on production data.
Model aliases are used in both batch prediction and real-time prediction workflows. For information, see:
Deployable models pane in an ML deployment

What are model aliases?
Each model you add to your ML deployment is referenced as a model alias. An alias is a dynamic container within your ML deployment that directs AutoML to run predictions with a model in the deployment. Within the alias, models can be changed to allow easy replacement of out-of-date models. One model can be added per model alias. Aliases allow you to easily change models within a prediction generation workflow without the need for editing prediction configurations, creating a new ML deployment, or updating API calls.
Every ML deployment has a default alias. The default alias cannot be deleted or renamed, but you can easily change the model to use for generating predictions with it. If you do not specify an alias to use in predictions from your ML deployment, the default alias is used.
You can add up to 10 aliases within an ML deployment, including the default alias.
Use cases for model aliases
-
Replacing out-of-date models with retrained models over time without requiring updates to prediction configurations or API calls.
-
Testing and comparing performance of different models on the same production data without having to create multiple ML deployments.
-
Using a single deployment to generate predictions from different models depending on specific conditions.
Considerations for deploying models to ML deployments
When adding models to an ML deployment, models can be from different ML experiments, which may be in different spaces in Qlik Cloud Analytics. Consider the following:
-
To add a model to an ML deployment, the model needs to have the same experiment type (binary classification, multiclass classification, or regression) as the model in the default alias.
-
If the model schema and apply data are not compatible, predictions (batch, real-time, direct API, or connector-based) cannot run successfully.
-
There are permissions requirements for the users adding models to deployments, as well as working with model aliases (for example, adding, renaming, and deleting aliases). For more information, see Permissions.
Working with aliases
You work with aliases in the Deployable models pane within the ML deployment. The Deployable models pane features an intuitive drag-and-drop interface for model assignment.
When you are finished making changes in the Deployable models, click Save changes in the top right corner of the interface.
Adding new aliases is optional. If you do not need to work with multiple aliases, you can work with the default alias only, and swap between models using only this alias.
Getting started
Before you can assign models to aliases, you need to deploy all required models to the ML deployment. This process is performed in the ML experiment where each model was trained. For information, see Deploying models.
Adding an alias
First, create a blank alias.
Do the following:
-
In the ML deployment, open the Deployable models pane.
-
Under Available models, click Add alias.
-
Click Save changes in the top right corner of the interface.
Alternatively, click next to a model under All models in the deployment, and select Add to new alias.
Assigning a model to an alias (including the default alias)
After you have added the alias, you need to assign a model to it. You can also assign a different model to the default alias using this workflow.
Do the following:
-
Under All models in the deployment, find the model you want to assign to the alias.
-
Next to the Model name, drag the model onto the alias.
Alternatively, click
next to the model and select Add to <alias name>, or Swap to default alias to replace the model assigned to the default alias.
-
Click Save changes in the top right corner of the interface.
Renaming and deleting aliases
You can rename and delete any alias except the default alias.
Do the following:
-
In the ML deployment, open the Deployable models pane.
-
Click
next to the model alias, and select Rename or Delete.
-
Click Save changes in the top right corner of the interface.
Removing models from an ML deployment
Over time, you might need to remove models from the deployment.
Do the following:
-
In the ML deployment, open the Deployable models pane.
-
Under All models in the deployment, click
next to the model and select Remove from deployment. In order to be able to remove a model from the deployment, the model needs to be unassigned from all aliases in the deployment.
-
Click Save changes in the top right corner of the interface.
Permissions
This section outlines the permissions you need to perform actions related to model deployment and aliases.
For more information about AutoML permissions, see Who can work with Qlik AutoML.
Deploying and removing models from an ML deployment
To deploy models to an ML deployment (new or existing), you need:
-
Professional or Full User entitlement
-
Automl Experiment Contributor or Automl Deployment Contributor security role
-
Required space role in the space of the ML deployment
-
For deployments in shared spaces, one of the following:
-
Owner (of the space)
-
Can manage
-
Can edit
-
-
For deployments in managed spaces, one of the following:
-
Owner (of the space)
-
Can manage
-
-
-
Required space role in the space of the ML experiment:
-
For experiments in shared spaces, one of the following:
-
Owner (of the space)
-
Can manage
-
Can edit
-
-
To remove models from an ML deployment, you need:
-
Professional or Full User entitlement
-
Automl Experiment Contributor security role
-
Required space role in the space of the ML deployment
-
For deployments in shared spaces, one of the following:
-
Owner (of the space)
-
Can manage
-
Can edit
-
-
For deployments in managed spaces, one of the following:
-
Owner (of the space)
-
Can manage
-
-
Working with model aliases
Working with model aliases involves creating, deleting, and renaming aliases. To perform these actions, you need:
-
Professional or Full User entitlement
-
Automl Experiment Contributor security role
-
Required space role in the space of the ML deployment
-
For deployments in shared spaces, one of the following:
-
Owner (of the space)
-
Can manage
-
Can edit
-
-
For deployments in managed spaces, one of the following:
-
Owner (of the space)
-
Can manage
-
-