gpt4 book ai didi

google-cloud-platform - 无法使用自定义容器 GCP 进行部署

转载 作者:行者123 更新时间:2023-12-04 11:44:26 32 4
gpt4 key购买 nike

我的图像是 11.4 GB。我正在尝试以下命令:

gcloud beta ai-platform versions create v1 \
--region=$REGION \
--model=$MODEL \
--machine-type=n1-highmem-2 \
--image=$REGION-docker.pkg.dev/$PROJECT_ID/$REPO_NAME/$IMAGE_NAME \
--ports=8000
它失败了:
Error: model server never became ready. Please validate that your model file or container configuration are valid, Error details: model server never became ready: status: "False" last_transition_time { seconds: 1603932493 } reason: "ContainersNotReady" message: "containers with unready status: [online-prediction-be-test85b70d-v1fb1b0606]" type: "ContainersReady"
即使我可以使用 docker run 在本地运行图像.我需要改变什么?
当我在没有指定区域并且详细设置为 DEBUG 的情况下运行时,我得到:
RecursionError: maximum recursion depth exceeded while calling a Python object
ERROR: gcloud crashed (RecursionError): maximum recursion depth exceeded while calling a Python object

The Python stack trace is massive (last couple of lines):
File "/googlecloudsdk/core/log.py", line 484, in ShowStructuredOutput
show_messages = properties.VALUES.core.show_structured_logs.Get()
File "/googlecloudsdk/core/properties.py", line 2380, in Get
value = _GetProperty(self, named_configs.ActivePropertiesFile.Load(),
File "/googlecloudsdk/core/properties.py", line 2679, in _GetProperty
value = _GetPropertyWithoutDefault(prop, properties_file)
File "/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 2711, in _GetPropertyWithoutDefault
value = _GetPropertyWithoutCallback(prop, properties_file)
File "/google-cloud-sdk/lib/googlecloudsdk/core/properties.py", line 2741, in _GetPropertyWithoutCallback
for value_flags in reversed(invocation_stack):

最佳答案

从您收到的此错误消息中无法理解任何内容,但是,
我猜 gcloud 无法对您的容器运行健康检查,
你能指定它:--health-route看到了吗?

关于google-cloud-platform - 无法使用自定义容器 GCP 进行部署,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64599212/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com