资讯 社区 文档
技术能力
语音技术
文字识别
人脸与人体
图像技术
语言与知识
视频技术

查看可评估模型列表

接口描述

本接口用于查看可评估模型列表。

鉴权说明

调用本文API,使用“基于安全认证AK/SK”进行签名计算鉴权,即使用安全认证中的Access Key ID 和 Secret Access Key进行鉴权,具体鉴权认证机制参考HTTP调用鉴权说明

请求结构

POST /wenxinworkshop/modelrepo/eval/model/list HTTP/1.1
Host: qianfan.baidubce.com
Authorization: authorization string
Content-Type: application/json

{}

请求头域

除公共头域外,无其它特殊头域。

响应头域

除公共头域外,无其它特殊头域。

响应参数

名称 类型 描述
log_id int 请求ID
result object[] 请求结果

result说明

名称 类型 描述
modelId number 模型ID,注意:该字段后续可能废弃,如需使用模型ID,请使用modelIdStr
modelIdStr string 模型ID,string类型
modelName string 模型名称
source string 模型来源,说明:
· 用户模型
· 预置模型
modelType number 模型类型
tags string[] 标签列表
modelVersionList object[] 模型版本列表

modelVersionList说明

名称 类型 描述
modelVersionId number 模型版本ID,注意:该字段后续可能废弃,如需使用模型版本ID,请使用modelVersionIdStr
modelVersionIdStr string 模型版本ID,string类型
version string 版本号
sourceType string 来源-训练/预置/加速
framework string 框架
algorithm string 算法
modelNet string 网络
description string 描述

请求示例

# 替换下列示例中的Authorization、x-bce-date
curl 'https://qianfan.baidubce.com/wenxinworkshop/modelrepo/eval/model/list' \
--header 'Authorization: bce-auth-v1/f0ee7axxxx/2023-09-19T13:42:13Z/180000/host;x-bce-date/9a8cfb8ee5xxxxxxxxxxxxxxx' \
--header 'x-bce-date: 2023-09-19T13:37:10Z' \
--header 'Content-Type: application/json' \
--data '{}'

响应示例

{
  "log_id": "2347238209",
  "result": [
    {
            "modelId": 8,
            "modelIdStr": "am-ay2k0r83q9qr",
            "modelName": "ERNIE-Bot-turbo",
            "source": "PlatformPreset",
            "modelType": 0,
            "trainType": "ernieBotLite",
            "modelVersionList": [
                {
                    "modelVersionId": 600,
                    "modelVersionIdStr": "amv-nsjesf9kasjt",
                    "version": "ERNIE-Bot-turbo-0922",
                    "sourceType": "PlatformPreset",
                    "framework": "paddle",
                    "algorithm": "ERNIE_EB-ERNIEBOT_V202_FUSE",
                    "modelNet": "paddlepaddle-ERNIE_EB-ERNIEBOT_V202_LORA_FUSE",
                    "trainType": "ernieBotLite",
                    "description": "通过数据和策略迭代,提升模型生成效果。"
                },
                {
                    "modelVersionId": 492,
                    "modelVersionIdStr": "amv-4u0rw8juur1p",
                    "version": "ERNIE-Bot-turbo-0725",
                    "sourceType": "PlatformPreset",
                    "framework": "paddle",
                    "algorithm": "ERNIE_EB-ERNIEBOT_V201_8K",
                    "modelNet": "paddlepaddle-ERNIE_EB-ERNIEBOT_V201_8K",
                    "trainType": "ernieBotLite",
                    "description": "支持7K输入+1K输出,支持系统设置,新增推理参数"
                },
                {
                    "modelVersionId": 244,
                    "modelVersionIdStr": "amv-70ahikpspjqs",
                    "version": "ERNIE-Bot-turbo-0704",
                    "sourceType": "PlatformPreset",
                    "framework": "paddle",
                    "algorithm": "ERNIE_EB-ERNIEBOT_V200",
                    "modelNet": "paddlepaddle-ERNIE_EB-ERNIEBOT_V200",
                    "trainType": "ernieBotLite",
                    "description": "优化推理效果,修复部分问题"
                }
            ]
        },
        {
            "modelId": 446,
            "modelIdStr": "am-44f8ji8eegp0",
            "modelName": "Yi-34B",
            "source": "PlatformPreset",
            "modelType": 0,
            "trainType": "",
            "modelVersionList": [
                {
                    "modelVersionId": 635,
                    "modelVersionIdStr": "amv-mpjrtxej6hye",
                    "version": "Yi-34B-Chat",
                    "sourceType": "PlatformPreset",
                    "framework": "Pytorch",
                    "algorithm": "opensource-yi-34b",
                    "modelNet": "pytorch-yi-34b-chat-1.13.1",
                    "trainType": "",
                    "description": "支持对话的chat版本"
                },
                {
                    "modelVersionId": 620,
                    "modelVersionIdStr": "amv-ffff66e1fm3d",
                    "version": "Yi-34B",
                    "sourceType": "PlatformPreset",
                    "framework": "Pytorch",
                    "algorithm": "opensource-yi-34b",
                    "modelNet": "pytorch-yi-34b-1.13.1",
                    "trainType": "",
                    "description": "初始预训练版本"
                }
            ]
        }
  ]
}

错误码

若请求错误,服务器将返回的JSON文本包含以下参数:

名称 描述
error_code 错误码
error_msg 错误描述信息,帮助理解和解决发生的错误

例如错误返回:

{
  "error_code": 500001,
  "error_msg": "param invalid"
}

更多其他错误码,也可以查看错误码说明

上一篇
查看模型评估结果列表
下一篇
批量删除模型评估