GCP AI平台顶点端点模型undeploy:404带有ID`2367889687867的部署模式

发布于 2025-02-07 04:41:09 字数 774 浏览 1 评论 0原文

我正在尝试从端点上解开模型,以下此文档

Endpoint.undeploy(deployed_model_id=model_id)

我什至尝试过。同样的问题也是如此。

获取404错误

缺少具有ID 2367889687867的部署模型

信息:

  1. 模型和端点都在同一区域。
  2. 在端点中有一个单个模型,cropart_percentage = 100

I am trying to un-deploy model from an endpoint following this documentation.

Endpoint.undeploy(deployed_model_id=model_id)

I even tried google api. Same Issue with this as well.

Getting 404 error

The Deployed Model with ID 2367889687867 is missing.

INFO:

  1. Both model and Endpoint are in same region.
  2. There is a single model deployed in the endpoint with traffic_percentage=100.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

负佳期 2025-02-14 04:41:09

deployed_model_id不同于model_id。这就是为什么您遇到错误404的原因,它正在搜索不相同的东西。

使用list_models()为您提供所有已部署的模型ID的列表,而使用list(),则可以获取depareed_model_id by:

  • 您可以使用
  • list()

list_models( )list()list() 只带一个,您可以添加过滤器,例如display_namemodel_idregion

list(
    filter= ‘display_name= “display_name”’,
)

。 >使用云SDK deployed_model_id 。

gcloud ai models list --region=$REGION --filter="DISPLAY_NAME: $NAME" | grep "MODEL_ID" | cut -f2 -d: | sed 's/\s//'

此外,您可以指定deployed_model_id使用云SDK部署模型时命令应该看起来像:

gcloud ai endpoints deploy-model $endpoint --project=$project --region=$region --model=$model_id --display-name=$model_name --deployed-model-id=$deployed_model_id

当您部署诸如端点,项目,区域,区域,模型之类的模型时,需要一些标志和显示名称。还有其他可选标​​志您可以使用deployed_model_id是其中之一(我不知道这是可能的,但您是否可以设置Deployed_model_id与model_id相同。

The deployed_model_id is different from the model_id.That’s why you are getting the Error 404, it is searching for something that is not the same.

You can get the deployed_model_id by:

  • list_models()
  • list()

Using list_models() brings you a list of all the deployed models ids, while using list() only brings one, you can add filters such as display_name, model_id, region, etc.

list(
    filter= ‘display_name= “display_name”’,
)

You also can get the deployed_model_id using the Cloud SDK.

gcloud ai models list --region=$REGION --filter="DISPLAY_NAME: $NAME" | grep "MODEL_ID" | cut -f2 -d: | sed 's/\s//'

Additionally, you can specify the deployed_model_id when you are deploying your model using Cloud SDK the command should look like:

gcloud ai endpoints deploy-model $endpoint --project=$project --region=$region --model=$model_id --display-name=$model_name --deployed-model-id=$deployed_model_id

There are some flags that are required when you deploy a model such as endpoint, project, region, model and display name. And there are others that are optional flags that you can use deployed_model_id is one of them.(I don’t know if this is possible but you could set the deployed_model_id as the same as the model_id).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文