【发布时间】:2022-01-13 06:25:50
【问题描述】:
运行 Azure ML Online 终结点命令时,它在本地运行。但是当我尝试将它部署到 Azure 时,我收到了这个错误。
命令 - az ml online-deployment create --name blue --endpoint "unique-name" -f endpoints/online/managed/sample/blue-deployment.yml --all-traffic
{
"status": "Failed",
"error": {
"code": "DriverFileNotFound",
"message": "Driver file with name score.py not found in provided dependencies. Please check the name of your file.",
"details": [
{
"code": "DriverFileNotFound",
"message": "Driver file with name score.py not found in provided dependencies. Please check the name of your file.\nThe build log is available in the workspace blob store \"coloraiamlsa\" under the path \"/azureml/ImageLogs/1673692e-e30b-4306-ab81-2eed9dfd4020/build.log\"",
"details": [],
"additionalInfo": []
}
],
这是直接取自 azureml-examples repo 的部署 YAML
$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json
name: blue
endpoint_name: my-endpoint
model:
local_path: ../../model-1/model/sklearn_regression_model.pkl
code_configuration:
code:
local_path: ../../model-1/onlinescoring/
scoring_script: score.py
environment:
conda_file: ../../model-1/environment/conda.yml
image: mcr.microsoft.com/azureml/openmpi3.1.2-ubuntu18.04:20210727.v1
instance_type: Standard_F2s_v2
instance_count: 1
【问题讨论】: