Retrieves information about the output models of a training job.
Try it now
Test
RAM authorization
Request syntax
GET /api/v1/trainingjobs/{TrainingJobId}/outputmodels HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TrainingJobId |
string |
Yes |
Training job ID. |
traineyfz0m2hsfv |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| OutputModels |
array<object> |
List of models produced by training. |
|
|
array<object> |
Model produced by training. |
||
| OutputChannelName |
string |
Name of the training output data. |
model |
| Uri |
string |
Link to the training output data. |
oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/path/to/output/channel/ |
| Labels |
array<object> |
List of tags. |
|
|
object |
Tag. |
||
| Key |
string |
Tag name. |
RootModelName |
| Value |
string |
Tag value. |
qwen2-0.5 |
| Metrics |
object |
Training job metrics. |
{ "Results": [ { "Dataset": { "Train": "oss://somebucket.oss-cn-hangzhou.aliyuncs.com/datasets/Chinese-medical-dialogue-data/chinese_medical_train_sampled.json" }, "Metrics": { "loss": 2.1276 } } ] } |
| TrainingSpec |
object |
Model training configuration. |
{} |
| InferenceSpec |
object |
Model inference configuration. |
{} |
| EvaluationSpec |
object |
Model evaluation configuration. |
{} |
| SourceType |
string |
Source (the type of job that produced the model). Default: Custom. |
PAIFlow |
| SourceId |
string |
Source ID (optional):
|
region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf |
| CompressionSpec |
object |
Model compression configuration. |
{} |
Examples
Success response
JSON format
{
"OutputModels": [
{
"OutputChannelName": "model",
"Uri": "oss://test-bucket.oss-cn-hangzhou.aliyuncs.com/path/to/output/channel/",
"Labels": [
{
"Key": "RootModelName",
"Value": "qwen2-0.5"
}
],
"Metrics": {
"Results": [
{
"Dataset": {
"Train": "oss://somebucket.oss-cn-hangzhou.aliyuncs.com/datasets/Chinese-medical-dialogue-data/chinese_medical_train_sampled.json"
},
"Metrics": {
"loss": 2.1276
}
}
]
},
"TrainingSpec": {},
"InferenceSpec": {},
"EvaluationSpec": {},
"SourceType": "PAIFlow",
"SourceId": "region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf",
"CompressionSpec": {}
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.