【问题标题】:How to undeploy a model, or specifically how to get deployed model's id from shell on Vertex AI?如何取消部署模型,或者特别是如何从 Vertex AI 上的外壳获取已部署模型的 id?
【发布时间】:2021-08-09 19:40:46
【问题描述】:

为了通过 shell 从端点取消部署模型,我必须指定 deployed-model-idgcloud ai endpoints undeploy-model中所述

我如何获得这个已部署的模型 ID?

【问题讨论】:

    标签: google-ai-platform


    【解决方案1】:

    显然,要获取已部署的模型 ID,您需要 gcloud ai endpoints describe ENDPOINT_ID 的输出 带有粉红色下划线的是已部署的模型 ID ('id: ') 黄色下划线的是实际的模型ID,

    要获取模型的所有depoly-model-ids,您可以这样做:

    gcloud ai endpoints describe $ENDPOINT_ID --region=$GCP_REGION | grep -A 1 "id:" | grep -B 1 $MODEL_ID | grep -v $MODEL_ID

    并使用它来取消部署模型:

    gcloud ai endpoints undeploy-model ENDPOINT_ID --deployed-model-id=DEPLOYED_MODEL_ID

    【讨论】:

      猜你喜欢
      • 2022-10-06
      • 1970-01-01
      • 2023-02-09
      • 2022-01-25
      • 1970-01-01
      • 2022-11-10
      • 2021-12-21
      • 1970-01-01
      • 2020-12-16
      相关资源
      最近更新 更多