In order to undeploy a model from an endpoint via shell i must specify the deployed-model-id
as described in gcloud ai endpoints undeploy-model
How do i get this deployed model id?
Apparently, to get the deployed model id you need the output of gcloud ai endpoints describe ENDPOINT_ID
underlined with pink is the deployed model id ('id: '
)
underlined with yellow is the actual model id,
To get all depoly-model-id
s of a model you can do:
gcloud ai endpoints describe $ENDPOINT_ID --region=$GCP_REGION | grep -A 1 "id:" | grep -B 1 $MODEL_ID | grep -v $MODEL_ID
And use it to undeploy a model using:
gcloud ai endpoints undeploy-model ENDPOINT_ID --deployed-model-id=DEPLOYED_MODEL_ID
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With