Creating a Model Deployment with a Compute Target
Create a model deployment in Data Science with a compute target.
You can create a model deployment that uses a compute target for its infrastructure. When you select a compute target, the model deployment runs on the managed compute capacity provided by that compute target instead of provisioning separate on-demand infrastructure for the deployment.
Use this option when you want supported model deployments to share reusable managed capacity, improve GPU utilization, or use scale-to-zero behavior for supported deployments. Model deployment using a compute target supports Service Managed Container only.
Before You Begin
Before creating a model deployment with a compute target, do the following.
- Create a compute target in the same region.
- Confirm that the compute target has enough available capacity for the deployment.
- Confirm that the model deployment uses a service-managed container flow.
- Confirm that you have permissions to manage model deployments and use the required model artifacts. See Model Deployment Policies.
Invoking the Predict Endpoint
Model deployments that use compute targets support the /predict endpoint for request-response inference.
The caller must have permission to invoke the model deployment predict endpoint:
allow group <group-name> to use data-science-model-deployments in compartment <compartment-name>
Use the oci data-science model-deployment create command and required parameters to create a model deployment:
oci data-science model-deployment create --compartment-id <compartment-id> ... [OPTIONS]For a complete list of parameters and values for CLI commands, see the CLI Command Reference.
Use the CreateModelDeployment operation to create a model deployment.