gpt4 book ai didi

Azure ML - 模型未注册,遇到 WebServiceException

转载 作者:行者123 更新时间:2023-12-03 03:42:20 26 4
gpt4 key购买 nike

我之前已经使用以下完全相同的代码片段成功注册了一个模型:

#register model
from azureml.core.model import Model

register_model = Model.register(model_path = "./models",
model_name = "cr_tools",
description = "Tools relating to the Customer Relations classifier.",
workspace = ws)

register_model

但现在它不适用于不同的模型(不同的 ./models 目录),并且我遇到了以下错误:

ServiceException: ServiceException:
Code: 504
Message: Operation returned an invalid status code 'Gateway Time-out'
Details:

Headers: {
"Date": "Tue, 04 Jan 2022 22:12:54 GMT",
"Content-Type": "text/html",
"Content-Length": "160",
"Connection": "keep-alive",
"Strict-Transport-Security": "max-age=15724800; includeSubDomains; preload",
"X-Content-Type-Options": "nosniff",
"x-request-time": "60.019"
}
InnerException: 504 Server Error: Gateway Time-out for url: https://eastus.experiments.azureml.net/artifact/v2.0/subscriptions/c450f3d1-583c-495f-b5d3-0b38b99e70c0/resourceGroups/ba-p-zeaus-group020-rg/providers/Microsoft.MachineLearningServices/workspaces/p-group020-aml-ws-001/artifacts/batch/metadata/LocalUpload/220104T215629-7c0d42b6

最佳答案

无法找到错误的确切原因。但一般来说 ServiceException: ServiceException: Code: 504 错误是在没有收到 URI 指定的上游服务器的及时响应时发生的。

但是,您可以引用这个github repo用于模型注册和部署。

关于Azure ML - 模型未注册,遇到 WebServiceException,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70585667/

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