【问题标题】:i am getting error when deploying machine learning model in aci在 aci 中部署机器学习模型时出现错误
【发布时间】:2021-07-29 12:39:50
【问题描述】:

我在尝试部署机器学习模型时遇到以下错误,当我上次(1 个月前)使用相同的 score.py 文件部署时,它已成功部署,谁能告诉我为什么它现在给出错误

错误信息如下

service.get_logs()

Received bad response from Model Management Service:
Response Code: 404
Headers: {'Date': 'Thu, 29 Jul 2021 12:34:55 GMT', 'Content-Type': 'application/json', 
'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'Vary': 'Accept-Encoding', 'x-ms- 
client-request-id': '70679512-c060-4340-adb7-b48ce00449f5', 'x-ms-client-session-id': 
'1def55d9-4542-4b5b-b499-81aaa966e48a', 'api-supported-versions': '1.0, 2018-03-01-preview, 
2018-11-19', 'Strict-Transport-Security': 'max-age=15724800; includeSubDomains; preload', 'X- 
Content-Type-Options': 'nosniff', 'x-request-time': '0.961', 'Content-Encoding': 'gzip'}

**My deployment code is below**
aci_config = AciWebservice.deploy_configuration()

service = Model.deploy(workspace=ws,
                   name='try',
                   models=[model_x],
                   inference_config=inference_config,
                   deployment_config=aci_config,overwrite=True)
service.wait_for_deployment(show_output=True)

【问题讨论】:

    标签: python azure azure-aks azure-machine-learning-studio azure-container-instances


    【解决方案1】:

    您尚未分享您的错误消息,因此我无法确定根本原因。但是我看到发生同样的错误当一个区域处于高负载下时,您可能会在部署实例时遇到失败。

    要缓解此类部署失败,请尝试部署资源设置较低的实例,或者稍后尝试部署,或在具有可用资源的其他区域尝试部署。

    尝试分配更少的资源,例如

    aciconfig = AciWebservice.deploy_configuration(cpu_cores=1, memory_gb=8, 标签={“数据”:“文本”,“方法”:“NB”}, description='预测某事')

    你可以试一试。

    参考:https://docs.microsoft.com/en-us/azure/container-instances/container-instances-region-availability

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-02-09
      • 2017-02-20
      • 2016-10-27
      • 1970-01-01
      • 2022-08-18
      相关资源
      最近更新 更多