我正在尝试为我的模型部署端点,但不断收到与权限相关的错误:
Kind: Pod, Name: DownloadFailed, Type: Warning, Time: 2024-10-31T01:26:40.607179Z, Message: Model download failed, retrying. Please check storage-initializer log for detail.
这是
storage-initializer log
:
[Storage download stage] processing error: error when getting file size: HEAD https://mystorage.blob.core.windows.net/mycontainer/path/to/model, RESPONSE 403: 403 This request is not authorized to perform this operation using this permission. ERROR CODE: AuthorizationPermissionMismatch
这是我的步骤:
1:我在工作区中创建了一个模型
az ml model create --name mymodel --resource-group myrg -w myws --version 1 --path azureml://subscriptions/123-31233-2323-232/resourcegroups/myrg/workspaces/myws/datastores/mydatastore/paths/path/to/my/model/weights
2:创建环境:
$schema: https://azuremlschemas.azureedge.net/latest/environment.schema.json
name: mymodel-env
image: myacr.azurecr.io/image:1
version: 1
3:创建端点
$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineEndpoint.schema.json
name: mymodel-ep
auth_mode: aad_token
4:然后我进行部署:
$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json
name: mymodel-deployment
endpoint_name: mymodel-ep
model: azureml:mymodel:1
code_configuration:
code: ../src/model/folder
scoring_script: score.py
environment: azureml:mymodel-env:1
instance_type: my-instance-type
instance_count: 1
我觉得这可能是一个服务错误。但请任何人纠正我。
谢谢
如上所述。 我希望部署应该能够下载创建的模型。