查看可评估模型列表
更新时间:2025-05-13
接口描述
本接口用于查看可评估模型列表。
鉴权说明
调用本文API,使用“基于安全认证AK/SK”进行签名计算鉴权,即使用安全认证中的Access Key ID 和 Secret Access Key进行鉴权,具体鉴权认证机制参考HTTP调用鉴权说明。
请求结构
Bash
1POST /wenxinworkshop/modelrepo/eval/model/list HTTP/1.1
2Host: qianfan.baidubce.com
3Authorization: authorization string
4Content-Type: application/json
5
6{}
请求头域
除公共头域外,无其它特殊头域。
响应头域
除公共头域外,无其它特殊头域。
响应参数
名称 | 类型 | 描述 |
---|---|---|
log_id | int | 请求ID |
result | List<object> | 请求结果 |
result说明
名称 | 类型 | 描述 |
---|---|---|
modelId | number | 模型ID,注意:该字段后续可能废弃,如需使用模型ID,请使用modelIdStr |
modelIdStr | string | 模型ID,string类型 |
modelName | string | 模型名称 |
source | string | 模型来源,说明: · 用户模型 · 预置模型 |
modelType | number | 模型类型 |
tags | List<string> | 标签列表 |
modelVersionList | List<object> | 模型版本列表 |
modelVersionList说明
名称 | 类型 | 描述 |
---|---|---|
modelVersionId | number | 模型版本ID,注意:该字段后续可能废弃,如需使用模型版本ID,请使用modelVersionIdStr |
modelVersionIdStr | string | 模型版本ID,string类型 |
version | string | 版本号 |
sourceType | string | 来源-训练/预置/加速 |
framework | string | 框架 |
algorithm | string | 算法 |
modelNet | string | 网络 |
description | string | 描述 |
请求示例
Bash
1# 替换下列示例中的Authorization、x-bce-date
2curl 'https://qianfan.baidubce.com/wenxinworkshop/modelrepo/eval/model/list' \
3--header 'Authorization: bce-auth-v1/f0ee7axxxx/2023-09-19T13:42:13Z/180000/host;x-bce-date/9a8cfb8ee5xxxxxxxxxxxxxxx' \
4--header 'x-bce-date: 2023-09-19T13:37:10Z' \
5--header 'Content-Type: application/json' \
6--data '{}'
响应示例
JSON
1{
2 "log_id": "2347238209",
3 "result": [
4 {
5 "modelId": 8,
6 "modelIdStr": "am-ay2k0r83q9qr",
7 "modelName": "ERNIE-Bot-turbo",
8 "source": "PlatformPreset",
9 "modelType": 0,
10 "trainType": "ernieBotLite",
11 "modelVersionList": [
12 {
13 "modelVersionId": 600,
14 "modelVersionIdStr": "amv-nsjesf9kasjt",
15 "version": "ERNIE-Bot-turbo-0922",
16 "sourceType": "PlatformPreset",
17 "framework": "paddle",
18 "algorithm": "ERNIE_EB-ERNIEBOT_V202_FUSE",
19 "modelNet": "paddlepaddle-ERNIE_EB-ERNIEBOT_V202_LORA_FUSE",
20 "trainType": "ernieBotLite",
21 "description": "通过数据和策略迭代,提升模型生成效果。"
22 },
23 {
24 "modelVersionId": 492,
25 "modelVersionIdStr": "amv-4u0rw8juur1p",
26 "version": "ERNIE-Bot-turbo-0725",
27 "sourceType": "PlatformPreset",
28 "framework": "paddle",
29 "algorithm": "ERNIE_EB-ERNIEBOT_V201_8K",
30 "modelNet": "paddlepaddle-ERNIE_EB-ERNIEBOT_V201_8K",
31 "trainType": "ernieBotLite",
32 "description": "支持7K输入+1K输出,支持系统设置,新增推理参数"
33 },
34 {
35 "modelVersionId": 244,
36 "modelVersionIdStr": "amv-70ahikpspjqs",
37 "version": "ERNIE-Bot-turbo-0704",
38 "sourceType": "PlatformPreset",
39 "framework": "paddle",
40 "algorithm": "ERNIE_EB-ERNIEBOT_V200",
41 "modelNet": "paddlepaddle-ERNIE_EB-ERNIEBOT_V200",
42 "trainType": "ernieBotLite",
43 "description": "优化推理效果,修复部分问题"
44 }
45 ]
46 },
47 {
48 "modelId": 446,
49 "modelIdStr": "am-44f8ji8eegp0",
50 "modelName": "Yi-34B",
51 "source": "PlatformPreset",
52 "modelType": 0,
53 "trainType": "",
54 "modelVersionList": [
55 {
56 "modelVersionId": 635,
57 "modelVersionIdStr": "amv-mpjrtxej6hye",
58 "version": "Yi-34B-Chat",
59 "sourceType": "PlatformPreset",
60 "framework": "Pytorch",
61 "algorithm": "opensource-yi-34b",
62 "modelNet": "pytorch-yi-34b-chat-1.13.1",
63 "trainType": "",
64 "description": "支持对话的chat版本"
65 },
66 {
67 "modelVersionId": 620,
68 "modelVersionIdStr": "amv-ffff66e1fm3d",
69 "version": "Yi-34B",
70 "sourceType": "PlatformPreset",
71 "framework": "Pytorch",
72 "algorithm": "opensource-yi-34b",
73 "modelNet": "pytorch-yi-34b-1.13.1",
74 "trainType": "",
75 "description": "初始预训练版本"
76 }
77 ]
78 }
79 ]
80}
错误码
若请求错误,服务器将返回的JSON文本包含以下参数:
名称 | 描述 |
---|---|
error_code | 错误码 |
error_msg | 错误描述信息,帮助理解和解决发生的错误 |
例如错误返回:
Plain Text
1{
2 "error_code": 500001,
3 "error_msg": "param invalid"
4}
更多其他错误码,也可以查看错误码说明。