Mengambil detail instans tugas.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeAIDBClusterTaskAttribute |
none |
*全部资源
|
None | None |
Sintaks permintaan
POST HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-beijing |
| DBClusterId |
string |
No |
ID Kluster. |
pm-2ze99*** |
| DescribeType |
string |
No |
Mode kueri. Nilai valid:
|
RelatedAITask |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
45D24263-7E3A-4140-9472-************ |
| DBType |
string |
The engine type. |
polardb_ai |
| DBVersion |
string |
The version. Valid value:
|
3.1 |
| DBClusterId |
string |
The cluster ID. |
pm-2ze99*** |
| DBClusterStatus |
string |
The training status. Valid values:
|
COMPLETED |
| ClusterNetworkType |
string |
The cluster network type. |
VPC |
| ModelPath |
string |
A comma-separated list of output model paths from the model fine-tuning task. |
/models_train/pm-2ze9***/merged_models_checkpoint-10,/models_train/pm-2ze9***/merged_models_checkpoint-5 |
| CreateTime |
string |
The task creation time. |
2025-11-12T03:45:13Z |
| KindCode |
integer |
The instance type. Valid value:
|
18 |
| MaintainStartTime |
string |
The maintenance start time. |
8:00Z |
| MaintainEndTime |
string |
The maintenance end time. |
12:00Z |
| DataSets |
array<object> |
The datasets used for the task. |
|
|
object |
A dataset. |
||
| DatasetName |
string |
The dataset name. |
dataset02 |
| Path |
string |
The dataset path. |
polardb_ai/datasets/train/grpo/dataset02/test-**.jsonl#1000 |
| SplitDatasetRatio |
string |
The proportion of the training set reserved for validation. |
0.1 |
| Type |
string |
The type of the dataset. Valid values:
|
train |
| TaskInfo |
array<object> |
A list of objects containing information about each training task. |
|
|
object |
Information about a training task. |
||
| ModelName |
string |
The base model. |
Qwen-1.7B |
| TrainType |
string |
The training method. Valid values:
|
lora |
| TrainMode |
string |
The task type. Valid values:
|
stf |
| ModelPath |
string |
The path to the custom model. |
Qwen-1.7B |
| ModelSource |
string |
The source of the model. Valid values:
|
public |
| RunningTimes |
string |
The runtime parameters. |
{"split_dataset_ratio": 0.1,"train_mode": "grpo","train_type": "lora","num_epochs": 1,"batch_size": 2,"eval_batch_size": 2, "num_generations": 2, "learning_rate": "1e-6", "data_file_list": "test-00000-of-00001.jsonl#1000", "lora_rank": 8, "lora_alpha": 32, "external_plugins": "/plugin/train/plugin.py", "reward_funcs": "format,external_countdown", "gpu_memory_utilization": 0.4} |
| StartTime |
string |
The task start time. |
2025-09-10T01:56:00Z |
| CompletedTime |
string |
The task completion time. |
2025-09-10T01:56:00Z |
| LockMode |
string |
The lock mode. Valid values:
|
1 |
| DBClusterStatusDesc |
string |
The training status description. Valid values:
|
COMPLETED |
| AccessInfo |
string |
The access information for the model in a test deployment. |
{\"networkInterfaceId\":\"eni-2zea***\",\"port\":\"8000\",\"host\":\"192.**.**.**\"} |
| ExtraInfo |
array<object> |
A list of objects containing additional information about the task. |
|
|
object |
An object containing additional information, such as the output path. |
{"outputPath":"/output/models_train/pm-2ze9***"} |
|
| VPCId |
string |
The VPC ID. |
vpc-********** |
| VSwitchId |
string |
The vSwitch ID. |
vsw-********************* |
| DBClusterDescription |
string |
The cluster description. |
task01 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "45D24263-7E3A-4140-9472-************",
"DBType": "polardb_ai",
"DBVersion": "3.1",
"DBClusterId": "pm-2ze99***\n",
"DBClusterStatus": "COMPLETED",
"ClusterNetworkType": "VPC",
"ModelPath": "/models_train/pm-2ze9***/merged_models_checkpoint-10,/models_train/pm-2ze9***/merged_models_checkpoint-5",
"CreateTime": "2025-11-12T03:45:13Z",
"KindCode": 18,
"MaintainStartTime": "8:00Z",
"MaintainEndTime": "12:00Z",
"DataSets": [
{
"DatasetName": "dataset02",
"Path": "polardb_ai/datasets/train/grpo/dataset02/test-**.jsonl#1000",
"SplitDatasetRatio": "0.1",
"Type": "train"
}
],
"TaskInfo": [
{
"ModelName": "Qwen-1.7B",
"TrainType": "lora",
"TrainMode": "stf",
"ModelPath": "Qwen-1.7B",
"ModelSource": "public",
"RunningTimes": "{\"split_dataset_ratio\": 0.1,\"train_mode\": \"grpo\",\"train_type\": \"lora\",\"num_epochs\": 1,\"batch_size\": 2,\"eval_batch_size\": 2, \"num_generations\": 2, \"learning_rate\": \"1e-6\", \"data_file_list\": \"test-00000-of-00001.jsonl#1000\", \"lora_rank\": 8, \"lora_alpha\": 32, \"external_plugins\": \"/plugin/train/plugin.py\", \"reward_funcs\": \"format,external_countdown\", \"gpu_memory_utilization\": 0.4}\n",
"StartTime": "2025-09-10T01:56:00Z",
"CompletedTime": "2025-09-10T01:56:00Z"
}
],
"LockMode": "1",
"DBClusterStatusDesc": "COMPLETED",
"AccessInfo": "{\\\"networkInterfaceId\\\":\\\"eni-2zea***\\\",\\\"port\\\":\\\"8000\\\",\\\"host\\\":\\\"192.**.**.**\\\"}",
"ExtraInfo": [
{
"outputPath": "/output/models_train/pm-2ze9***"
}
],
"VPCId": "vpc-**********",
"VSwitchId": "vsw-*********************",
"DBClusterDescription": "task01"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.