云服务器内容精选
-
问题现象 用户创建AI应用时,构建镜像失败,失败日志中提示下载obs文件失败(Get object size from OBS failed!)。 图1 下载obs文件失败 用户创建AI应用时,事件提示:复制模型文件失败,请检查OBS权限是否正常(Failed to copy model file due to obs exception. Please Check your obs access right.)或用户%s没有OBS的obs:object:PutObjectAcl权限(User %s does not have obs:object:PutObjectAcl permission.)。 图2 复制模型文件失败
-
响应参数 状态码: 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 加速卡名称,如a30 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 具体错误信息
-
响应示例 状态码: 200 OK { "count" : 4, "total_count" : 4, "engine_runtimes" : [ { "ai_engine" : "TensorFlow", "runtimes" : [ "tf1.13-python3.6-cpu", "tf1.13-python3.6-gpu", "tf1.13-python3.7-cpu", "tf1.13-python3.7-gpu", "python3.6", "tf1.13-python3.7-aiflow-gpu", "tf1.13-python3.7-gpu-async", "tensorflow_2.1.0-cuda_10.1-py_3.7-ubuntu_18.04-x86_64", "tensorflow_2.6.0-cuda_11.2-py_3.7-ubuntu_18.04-x86_64", "tensorflow_1.15.5-cuda_11.4-py_3.8-ubuntu_20.04-x86_64" ], "request_mode" : [ "sync", "sync", "sync", "sync", "sync", "sync", "async", "sync", "sync", "sync" ], "accelerators" : [ { "type" : "none" }, { "type" : "gpu", "cuda_version" : "cuda 10.2" }, { "type" : "none" }, { "type" : "gpu", "cuda_version" : "cuda 10.2" }, { "type" : "none" }, { "type" : "gpu", "cuda_version" : "cuda 10.2" }, { "type" : "gpu", "cuda_version" : "cuda 10.2" }, { "type" : "none" }, { "type" : "none" }, { "type" : "none" } ], "arch" : [ "x86_64", "x86_64", "x86_64", "x86_64", "x86_64", "x86_64", "x86_64", "x86_64", "x86_64", "x86_64" ], "status_list" : [ "normal", "normal", "normal", "normal", "normal", "normal", "normal", "normal", "normal", "normal" ], "image_source" : [ "base_image", "base_image", "base_image", "base_image", "base_image", "base_image", "base_image", "uniform_image", "uniform_image", "uniform_image" ] }, { "ai_engine" : "PyTorch", "runtimes" : [ "python3.6", "python3.7", "pytorch1.4-python3.7", "pytorch_1.11.0-cann_7.0.1-py_3.9-euler_2.10.7-aarch64-snt9b", "pytorch_1.8.0-cuda_10.2-py_3.7-ubuntu_18.04-x86_64", "pytorch_1.8.2-cuda_11.1-py_3.7-ubuntu_18.04-x86_64" ], "request_mode" : [ "sync", "sync", "sync", "sync", "sync", "sync" ], "accelerators" : [ { "type" : "none" }, { "type" : "none" }, { "type" : "none" }, { "type" : "npu", "name" : "SNT9", "driver_version_section" : "C8x" }, { "type" : "none" }, { "type" : "none" } ], "arch" : [ "x86_64", "x86_64", "x86_64", "aarch64", "x86_64", "x86_64" ], "status_list" : [ "normal", "normal", "normal", "normal", "normal", "normal" ], "image_source" : [ "base_image", "base_image", "base_image", "uniform_image", "uniform_image", "uniform_image" ] }, { "ai_engine" : "MindSpore", "runtimes" : [ "mindspore_1.9.0-cann_6.0.1-py_3.7-euler_2.9.9-x86_64-snt3p-300i", "mindspore_1.7.0-cuda_10.1-py_3.7-ubuntu_18.04-x86_64", "mindspore_1.2.0-py_3.7-cuda_10.1-ubuntu_18.04-x86_64" ], "request_mode" : [ "sync", "sync", "sync" ], "accelerators" : [ { "type" : "none" }, { "type" : "none" }, { "type" : "none" } ], "arch" : [ "x86_64", "x86_64", "x86_64" ], "status_list" : [ "normal", "normal", "normal" ], "image_source" : [ "uniform_image", "uniform_image", "uniform_image" ] }, { "ai_engine" : "Custom", "runtimes" : [ ], "request_mode" : [ ], "accelerators" : [ ], "arch" : [ ], "status_list" : [ ], "image_source" : [ ] } ] }
-
URI GET /v1/{project_id}/models/ai-engine-runtimes 表1 路径参数 参数 是否必选 参数类型 描述 project_id 是 String 用户项目ID。获取方法请参见获取项目ID。 表2 Query参数 参数 是否必选 参数类型 描述 limit 否 String 每页显示的条目数量 offset 否 String 偏移量,表示从此偏移量开始查询, offset大于等于0
-
响应参数 状态码: 200 表4 响应Body参数 参数 参数类型 描述 delete_success_list Array of strings 删除成功的模型id列表。 delete_failed_list Array of DeleteModelResponseFailedList objects 删除失败的模型id及其失败原因列表。 表5 DeleteModelResponseFailedList 参数 参数类型 描述 error_msg String 删除该模型失败的错误提示信息。 error_code String 删除该模型失败的错误码。 model_id String 删除失败的模型id。
-
URI DELETE /v1/{project_id}/models/{model_id} 表1 路径参数 参数 是否必选 参数类型 描述 model_id 是 String 需要删除的AI应用ID。 project_id 是 String 用户项目ID。获取方法请参见获取项目ID和名称。 表2 Query参数 参数 是否必选 参数类型 描述 cascade 否 Boolean 是否级联删除。默认为false,只删除当前模型ID所对应的模型。取值为true时除了删除模型ID指定的模型,还会删除与指定模型同名不同版本的所有模型。一次最多删除20个模型,超过的模型不删除。
-
响应示例 状态码: 200 删除成功或者失败的提示信息。 { "delete_success_list" : [ "10eb0091-887f-4839-9929-cbc884f1e20e" ], "delete_failed_list" : [ { "error_msg" : "Failed to delete model, model(759645d9-3672-4db1-bb6d-49ed58b84e10) already deploy service.", "error_code" : "ModelArts.3009", "model_id" : "e527d311-a947-46da-a6e0-66c49945dfaa" } ] }
-
问题现象 订阅的AI应用一直处于等待同步状态,可能原因如下: 我的订阅列表上方提示“由于ModelArts的数据存储、模型导入以及部署上线等功能依赖OBS、SWR等服务,需获取依赖服务的授权后,才能正常使用ModelArts的相关功能。” 图1 AI应用等待同步 单击资产名称左侧小三角或者单击“同步”,报错:ModelArts.0108: 您未被授权执行该操作。 单击资产名称左侧小三角或者单击“同步”,报错:ModelArts.5055: 订阅已过期。
更多精彩内容
CDN加速
GaussDB
文字转换成语音
免费的服务器
如何创建网站
域名网站购买
私有云桌面
云主机哪个好
域名怎么备案
手机云电脑
SSL证书申请
云点播服务器
免费OCR是什么
电脑云桌面
域名备案怎么弄
语音转文字
文字图片识别
云桌面是什么
网址安全检测
网站建设搭建
国外CDN加速
SSL免费证书申请
短信批量发送
图片OCR识别
云数据库MySQL
个人域名购买
录音转文字
扫描图片识别文字
OCR图片识别
行驶证识别
虚拟电话号码
电话呼叫中心软件
怎么制作一个网站
Email注册网站
华为VNC
图像文字识别
企业网站制作
个人网站搭建
华为云计算
免费租用云托管
云桌面云服务器
ocr文字识别免费版
HTTPS证书申请
图片文字识别转换
国外域名注册商
使用免费虚拟主机
云电脑主机多少钱
鲲鹏云手机
短信验证码平台
OCR图片文字识别
SSL证书是什么
申请企业邮箱步骤
免费的企业用邮箱
云免流搭建教程
域名价格