| 名称 | 描述 |
|---|---|
| error_code | 错误码 |
| error_msg | 错误描述信息,帮助理解和解决发生的错误 |
{
"error_code": 500001,
"error_msg": "param invalid"
}| 错误码 | 错误信息 | 描述 |
|---|---|---|
| 500000 | internal server error | 服务器内部错误 |
| 500001 | param invalid | 参数错误 |
| 500002 | auth failed, no access | 无权访问 |
| 510101 | dataset entity count not enough, at least 32 | 数据集数量不足,至少需要32条数据 |
| 510102 | dataset config error | 数据集异常 |
| 510201 | task name exist | 任务名称已存在 |
| 510202 | task not exist | 任务不存在 |
| 510203 | task count over limit | 任务数量已经达到上限 |
| 510301 | job not exist | 任务运行不存在 |
| 510302 | job status invalid | 任务运行状态异常 |
| 510401 | train config error | 训练配置异常 |
| 510402 | job training count over limit | 训练中的运行数量已经达到上限 |
| 510403 | charge quote not enough | 训练额度不足 |
| 510404 | job not support incre train | 该运行暂不支持增量训练 |
curl --location --request POST 'https://qianfan.baidubce.com/wenxinworkshop/finetune/createJob?access_token =' \
--header 'Content-Type;' \
--header 'x-bce-date;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"taskId": 362,
"description": "",
"jobRunType": 0,
"baseTraintype": "ERNIE-Bot-turbo",
"trainType": "ERNIE-Bot-turbo-0725",
"trainMode": "SFT",
"pefttype": "ALL",
"trainConfig": {
"epoch": 1,
"learningRate": 0.00003,
"maxSeqLen": 4096
},
"trainset": [
{
"type": 1,
"id": 188
}
],
"trainsetRate": 20
}'{
"log_id": 0,
"result": {
"id": 0
}
}