Removing foundation models from IBM watsonx.ai

You can remove foundation models or text embedding models from the cluster where IBM watsonx.ai is available. If you deployed AI models that you no longer want to use, remove them from the cluster to free up resources for other models or services.

Before you begin

  • To complete this task the first time, you must be the instance administrator who installed the IBM watsonx.ai service.

Procedure

To remove foundation models:

Exclude any models that you want to remove from the list of model IDs specified in install_model_list. Limit the list to include only the models that you want to continue to use.
oc patch watsonxaiifm watsonxaiifm-cr \
--namespace=${PROJECT_CPD_INST_OPERANDS} \
--type=merge \
--patch='{"spec":{"install_model_list":["<model-id-1-to-keep>","<model-id-2-to-keep>"]}}'
The list of models must include all of the models that you want to keep deployed.

What to do next

If the foundation model that you removed had a custom sharding configuration, remove the sharding details for the foundation model from the custom resource also. For more information, see Changing foundation model sharding configuration.