Editing a Model Deployment
The options that can be edited (updated) depend on the lifecycleState
of the Data Science model deployment.
When the model deployment is in an Active state, you can change these option groups one at a time with zero downtime to a model deployment:
-
Name or description: Change the name or description.
-
Default configuration: Change or add custom environment variable keys and values.
-
Models: Change the compartment, project, or model.
-
Compute: Change the shape series, number of CPUs, or amount of memory for each CPU in gigabytes.
-
Logging: Change the logging configuration for access and predict logs.
-
Load Balancer or BYOC: Change the load balancing bandwidth or the bring your own container.
Networking resources: Changing from default networking to custom networking is allowed. If custom networking is already selected, it can't be changed to default networking.
You can't edit all the options at once when the model deployment resource is active.
When the model deployment is in an Inactive state, you can change all the options at once.
Use the oci data-science model-deployment update command and required parameters to edit (update) a model deployment:
oci data-science model-deployment update --model-deployment-id
<model-deployment-id>
... [OPTIONS]For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.
Use the UpdateModelDeployment operation to edit (update) a model deployment.