Editing a Model Deployment

The options that can be edited (updated) depend on the lifecycleState of the Data Science model deployment.

Important

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 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.

When the model deployment is in an Inactive state, you can change all the options at once.

    1. On the Projects list page, select the project that contains the model deployments that you want to work with. If you need help finding the list page or the project, see Listing Projects.
    2. On the project details page, select Model deployments.
      All model deployments in the selected project are displayed in a table.
    3. Find the model deployment that you want to work with.
    4. From the Actions menu (three dots) for the model deployment, select Edit.
    5. On the Edit model deployment page, change an option.
      Important

      Each individual option change must be submitted before another option is changed using the same steps.

      For field descriptions, see Creating a Model Deployment.

    6. Select Submit.
  • 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 parameters and values for CLI commands, see the CLI Command Reference.

  • Use the UpdateModelDeployment operation to edit (update) a model deployment.