ListTrainingJobOutputModels

更新时间:
复制 MD 格式

Retrieves information about the output models of a training job.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

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):

  • If the source is Custom, there are no format requirements.

  • If the source is PAIFlow, use the format: region=cn-shanghai,workspaceId=1345,kind=PipelineRun,id=run-sakdbaskjdf.

  • If the source is TrainingService, use the format: region=cn-shanghai,workspaceId=1345,kind=TrainingJob,id=job-sakdbaskjdf.

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.