AI开发平台MODELARTS-查询模型runtime:响应参数

时间:2025-03-05 09:28:43

响应参数

状态码:200

表4 响应Body参数

参数

参数类型

描述

count

Integer

不分页的情况下符合查询条件的总数量。

total_count

Integer

当前查询结果的数量,不设置offset、limit查询参数时,count与total相同。

engine_runtimes

Array of EngineAndRuntimesResponse objects

引擎运行环境。

表5 EngineAndRuntimesResponse

参数

参数类型

描述

ai_engine

String

AI引擎类型,目前共有以下几种类型:

  • TensorFlow

  • PyTorch

  • MindSpore

  • XGBoost

  • Scikit_Learn

  • Spark_MLlib

runtimes

Array of strings

运行镜像,如pytorch_1.8.0-cuda_10.2-py_3.7-ubuntu_18.04-x86_64

request_mode

Array of strings

请求模式,AI引擎支持部署为同步在线服务或异步在线服务。

  • sync:同步在线服务

  • async:异步在线服务

accelerators

Array of Accelerator objects

AI引擎可使用的加速卡。

arch

Array of strings

AI引擎架构,目前共两种:

  • x86_64

  • aarch64

status_list

Array of strings

AI引擎状态,目前共三种:

  • normal (正常)

  • deleted (已下线)

  • deleting (下线中)

image_source

Array of strings

镜像来源,目前共两种:

  • base_image (基础镜像)

  • uniform_image (统一镜像)

表6 Accelerator

参数

参数类型

描述

type

String

加速卡类型,目前共三种:

  • npu

  • gpu

  • none

name

String

加速卡名称,如SNT9B。

cuda_version

String

cuda驱动版本。

driver_version_section

String

驱动版本集合。

状态码:401

表7 响应Body参数

参数

参数类型

描述

error_code

String

ModelArts错误码。

error_msg

String

具体错误信息。

状态码:403

表8 响应Body参数

参数

参数类型

描述

error_code

String

ModelArts错误码。

error_msg

String

具体错误信息。

状态码:404

表9 响应Body参数

参数

参数类型

描述

error_code

String

ModelArts错误码。

error_msg

String

具体错误信息。

support.huaweicloud.com/api-modelarts/ShowModelEngineAndRuntime.html