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

查看可评估模型列表

功能介绍

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

使用说明

本文API支持通过Python SDK、Go SDK、Java SDK 和 Node.js SDK调用,调用流程请参考SDK安装及使用流程

SDK调用

调用示例

import os
from qianfan  import resources

# 通过环境变量初始化认证信息
# 使用安全认证AK/SK调用,替换下列示例中参数,安全认证Access Key替换your_iam_ak,Secret Key替换your_iam_sk,如何获取请查看https://cloud.baidu.com/doc/Reference/s/9jwvz2egb
os.environ["QIANFAN_ACCESS_KEY"] = "your_iam_ak"
os.environ["QIANFAN_SECRET_KEY"] = "your_iam_sk"



resp = resources.console.utils.call_action(
    # 调用本文API,该参数值为固定值,无需修改;对应HTTP调用文档-请求说明-请求地址的后缀
    "/wenxinworkshop/modelrepo/eval/model/list", "", 
    # 对应HTTP调用文档-请求说明-请求参数-Body参数,具体使用请查看Body参数说明,根据实际使用选择参数
    {
        
    }
    
)

print(resp.body)
package main
import (
    "context"
    "fmt"
    "os"
    "github.com/baidubce/bce-qianfan-sdk/go/qianfan"
)
func main() {
     // 使用安全认证AK/SK鉴权,通过环境变量初始化;替换下列示例中参数,安全认证Access Key替换your_iam_ak,Secret Key替换your_iam_sk
    os.Setenv("QIANFAN_ACCESS_KEY", "your_iam_ak")
    os.Setenv("QIANFAN_SECRET_KEY", "your_iam_sk")
    
    ca := qianfan.NewConsoleAction()
    
    res, err := ca.Call(context.TODO(),
    // 调用本文API,该参数值为固定值,无需修改;对应HTTP调用文档-请求说明-请求地址的后缀
    "/wenxinworkshop/modelrepo/eval/model/list", "",
    // 对应HTTP调用文档-请求说明-请求参数-Body参数,具体使用请查看Body参数说明,根据实际使用选择参数
    map[string]interface{}{
            
    })
    if err != nil {
        panic(err)
    }
    fmt.Println(string(res.Body))
    
}
import com.baidubce.qianfan.Qianfan;
import com.baidubce.qianfan.model.console.ConsoleResponse;
import com.baidubce.qianfan.util.CollUtils;
import com.baidubce.qianfan.util.Json;
import java.util.Map;

public class Dome {
    public static void main(String args[]){
        // 使用安全认证AK/SK鉴权,替换下列示例中参数,安全认证Access Key替换your_iam_ak,Secret Key替换your_iam_sk
        Qianfan qianfan = new Qianfan("your_iam_ak", "your_iam_sk");
        
        ConsoleResponse<List<Map<String, Object>>> response = qianfan.console()
                // 调用本文API,该参数值为固定值,无需修改;对应HTTP调用文档-请求说明-请求地址的后缀
                .route("/wenxinworkshop/modelrepo/eval/model/list")
                // 需要传入参数的场景,可以自行封装请求类,或者使用Map.of()来构建请求Body
                // Java 8可以使用SDK提供的CollUtils.mapOf()来替代Map.of()
                // 对应HTTP调用文档-请求说明-请求参数-Body参数,具体使用请查看Body参数说明,根据实际使用选择参数
                .body(CollUtils.mapOf(

                ))
                .execute(new TypeRef<List<Map<String, Object>>>() {});

        System.out.println(Json.serialize(response));
    }
}
import {consoleAction, setEnvVariable} from "@baiducloud/qianfan";

// 使用安全认证AK/SK鉴权,通过环境变量初始化;替换下列示例中参数,安全认证Access Key替换your_iam_ak,Secret Key替换your_iam_sk
setEnvVariable('QIANFAN_ACCESS_KEY','your_iam_ak');
setEnvVariable('QIANFAN_SECRET_KEY','your_iam_sk');

async function main() {
  //base_api_route:调用本文API,该参数值为固定值,无需修改;对应HTTP调用文档-请求说明-请求地址的后缀
  //data:对应HTTP调用文档-请求说明-请求参数-Body参数,具体使用请查看Body参数说明,根据实际使用选择参数
  const res = await consoleAction({base_api_route: '/wenxinworkshop/modelrepo/eval/model/list', data: { }
  });    
    
  console.log(res);
}

main();

返回示例

{
  "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": "初始预训练版本"
                }
            ]
        }
  ]
}
{
  "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": "初始预训练版本"
                }
            ]
        }
  ]
}
{
  "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": "初始预训练版本"
                }
            ]
        }
  ]
}
{
  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: '初始预训练版本'
                }
            ]
        }
  ]
}

请求参数

返回参数

名称 类型 描述
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 描述
上一篇
查看模型评估结果列表
下一篇
批量删除模型评估