0

AI Platform我通过使用全局端点的 UI创建了一个模型。我正在尝试部署使用 Saved Model 构建器导出的基本 tensorflow 1.15.0 模型。当我尝试部署此模型时,我Create Version Failed. Bad model detected with error: "Error loading the model"在 UI 中收到错误,并且我在日志中看到以下内容:

ERROR:root:Failed to import GA GRPC module. This is OK if the runtime version is 1.x

Failure: Could not reach metadata service: Internal Server Error.

ERROR:root:Command '['/tools/google-cloud-sdk/bin/gsutil', '-o', 'GoogleCompute:service_account=default', 'cp', '-R', 'gs://cml-365057443918-1608667078774578/models/xsqr_global/v6/7349456410861999293/model/*', '/tmp/model/0001']' returned non-zero exit status 1.

ERROR:root:Error loading model: 'generator' object has no attribute 'next'

ERROR:root:Error loading the model

  • 框架/ML 运行时版本: Tensorflow 1.15.0
  • 蟒蛇: 3.7.3

奇怪的是,gcloud ai-platform local predict这个导出的模型可以正常工作,我可以在区域端点上部署这个完全相同的模型,没有任何问题。如果我尝试使用全局端点模型,它只会给出这个错误。但我需要全局端点,因为我计划使用自定义预测例程(如果我能让这个基本模型首先工作)。

日志似乎表明从存储中复制模型存在问题?我尝试为各种 IAM 角色提供额外的查看者权限,但我仍然遇到相同的错误。

谢谢您的帮助。

4

1 回答 1

0

我认为这与https://issuetracker.google.com/issues/175316320相同的问题

该问题中的评论说该修复程序现在正在推出。

于 2021-01-09T00:50:24.857 回答