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 update multiple options together, subject to the restrictions of the selected update mode.

When the model deployment is in an Active state, you can update the following option groups with zero downtime to the 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.

Updates to multiple options are processed sequentially and can take longer than updating a single option. To monitor progress, use the work request.

    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 the options you want.

      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.