列舉當前帳號下所有的模型微調訓練任務。
列舉調優任務
Windows CMD 請將${DASHSCOPE_API_KEY}替換為%DASHSCOPE_API_KEY%,PowerShell 請替換為$env:DASHSCOPE_API_KEY
curl --location --request GET "https://dashscope-intl.aliyuncs.com/api/v1/fine-tunes?model=qwen3-14b&page_no=2" \
--header "Authorization: Bearer ${DASHSCOPE_API_KEY}" \
--header 'Content-Type: application/json'
輸入參數
|
參數名稱 |
類型 |
傳參方式 |
是否必填 |
參數說明 |
|
page_no |
Integer |
Query |
否 |
預設1 |
|
page_size |
Integer |
Query |
否 |
預設10,最大值100,最小值1 |
|
model |
String |
Query |
否 |
模型ID,指定該參數表示只列舉基於該模型的調優任務 |
返回範例
{
"request_id": "2182ef64-6398-457b-b3f6-5fde5fd6b388",
"output": {
"page_no": 2,
"page_size": 10,
"total": 12,
"jobs": [
{
"job_id": "ft-202410291653-1c7f",
"job_name": "ft-202410291653-1c7f",
"status": "SUCCEEDED",
"finetuned_output": "qwen3-14b-suffix-ft-202410291653-1c7f",
"model": "qwen3-14b",
"base_model": "qwen3-14b",
"training_file_ids": [
"976bd01a-f30b-4414-86fd-50c54486e3ef"
],
"validation_file_ids": [
],
"hyper_parameters": {
"n_epochs": 3,
"batch_size": 32,
"max_length": 8192,
"learning_rate": "1.6e-5",
"lr_scheduler_type": "linear",
"split": 0.9
},
"training_type": "sft",
"create_time": "2024-10-29 16:53:53",
"workspace_id":"llm-v71tlv***",
"user_identity": "1396993924585947",
"modifier": "1396993924585947",
"creator": "1396993924585947",
"end_time": "2024-10-29 17:11:26",
"group": "llm",
"usage": 279808
},
{
"job_id": "ft-202410291512-1851",
"job_name": "ft-202410291512-1851",
"status": "CANCELED",
"model": "qwen3-14b",
"base_model": "qwen3-14b",
"training_file_ids": [
"86a9fe7f-dd77-43b0-9834-2170e12339ec",
"03ead352-6190-4328-8016-61821c23d4fc"
],
"validation_file_ids": [
],
"hyper_parameters": {
"n_epochs": 3,
"batch_size": 32,
"max_length": 8192,
"learning_rate": "1.6e-5",
"lr_scheduler_type": "linear",
"split": 0.9
},
"code": "1",
"training_type": "sft",
"create_time": "2024-10-29 15:12:00",
"workspace_id":"llm-v71tlv***",
"user_identity": "1396993924585947",
"modifier": "1396993924585947",
"creator": "1396993924585947",
"end_time": "2024-10-29 15:16:00",
"group": "llm",
"usage": 0
}
]
}
}
返回參數
|
參數名稱 |
類型 |
參數說明 |
|
request_id |
String |
本次請求的ID。 |
|
output |
Object |
查詢返回的詳細資料。 |
|
output.page_no |
Integer |
頁碼。 |
|
output.page_size |
Integer |
每頁顯示的資料量。 |
|
output.total |
Integer |
調優任務總計數量。 |
|
output.jobs |
Array |
多個調優任務詳情,詳細參數請參考調優任務詳情返回參數。 |
請求錯誤碼說明
請求異常時返回
|
欄位 |
類型 |
描述 |
樣本值 |
|
code |
String |
錯誤碼。 |
NotFound |
|
request_id |
String |
本次請求的系統唯一碼。 |
6332fb02-3111-43f0-bf79-f9e8c5ffa7f9 |
|
message |
String |
錯誤資訊。 |
Not Found! |
請求異常樣本
{
"code": "NotFound",
"request_id": "BE213CDD-8A5C-59EE-9A67-055EAB0CB59B",
"message": "Not Found!"
}
錯誤碼列表
|
HTTP狀態代碼 |
錯誤碼 |
錯誤資訊舉例 |
含義 |
處理方式 |
|
400 |
InvalidParameter |
Missing training files |
參數錯誤,缺少參數或者參數格式問題等。 |
根據錯誤資訊,修正您的參數。 |
|
400 |
UnsupportedOperation |
The fine-tune job can not be deleted because it is succeeded,failed or canceled |
當資源處於特定狀態時,無法對其進行操作。 |
待要操作的資源到達可操作狀態時再進行操作。 |
|
404 |
NotFound |
Not found! |
要查詢/操作的資源不存在。 |
檢查要查詢/操作的資源ID是否錯誤。 |
|
409 |
Conflict |
Model instance xxxxx already exists, please specify a suffix |
已存在deployed_model名為xxxxx的部署執行個體,需要指定尾碼進行區分。 |
為部署指定唯一的尾碼。 |
|
429 |
Throttling |
|
資源的建立觸發平台限制。 |
|
|
500 |
InternalError |
Internal server error! |
內部錯誤。 |
記錄 request_id,通過工單聯絡阿里雲工程師進行排查。 |