Query the details of a specific model fine-tuning task.
List fine-tuning jobs
For Windows CMD, replace${DASHSCOPE_API_KEY}with%DASHSCOPE_API_KEY%. For PowerShell, replace it with$env:DASHSCOPE_API_KEY
Request parameters
Parameter Name | Type | Parameter passing | Required | Description |
|---|---|---|---|---|
page_no | Integer | Query | No | Default value: 1. |
page_size | Integer | Query | No | Default value: 10. Maximum: 1000. Minimum: 1. |
model | String | Query | No | The model ID. If you specify this parameter, only fine-tuning jobs based on this model are listed. |
Sample response
Response parameters
| Parameter Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| request_id | String | The ID of the request. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| output | Object | The details returned for the query. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| output.page_no | Integer | The page number. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| output.page_size | Integer | The number of entries per page. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| output.total | Integer | The total number of fine-tuning jobs. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| output.jobs | Array | The details of multiple fine-tuning jobs.
Click here to view the fine-tuning job details object
|
Query fine-tuning task details
For Windows CMD, replace${DASHSCOPE_API_KEY}with%DASHSCOPE_API_KEY%. For PowerShell, replace it with$env:DASHSCOPE_API_KEY
Request parameters
Field | Type | Parameter passing | Required | Description |
|---|---|---|---|---|
job_id | String | URL path | Yes | The ID of the fine-tuning job to query. This is the job_id returned in the response parameters for creating a fine-tuning job. |
Sample response
- Text generation model
- Video generation model
- Image generation model
Response parameters
Parameter Name | Type | Description |
|---|---|---|
request_id | String | The ID of the request. |
output | Object | The details of the model fine-tuning job. |
output.job_id | String | The ID of the model fine-tuning job. You can use this ID to query the job status. Generation rule: |
output.jobs_name | String | Same as |
output.status | String | The job status of the model fine-tuning job. |
output.finetuned_output | String | This parameter is returned only when the job status is SUCCEEDED. The value is the ID of the fine-tuned model. |
output.model | String | The ID of the model used for the model fine-tuning job. |
output.base_model | String | The ID of the foundation model that corresponds to the model used for the model fine-tuning job. For example, the foundation model for the model fine-tuning job |
output.training_file_ids | Array | This field is retained for compatibility. For new jobs, this parameter always returns an empty array. Use training_datasets instead. |
output.validation_file_ids | Array | This field is retained for compatibility. For new jobs, this parameter always returns an empty array. Use validation_datasets instead. |
output.training_datasets | Array of Dataset | A list of training datasets. |
output.validation_datasets | Array of Dataset | A list of test datasets. |
output.hyper_parameters | Object | The explicitly declared hyperparameters. |
output.training_type | String | The model fine-tuning method. |
output.create_time | String | The time when the model fine-tuning job was created. |
output.workspace_id | String | The ID of the workspace to which the model fine-tuning job belongs. |
output.user_identity | String | The UID of the Alibaba Cloud account to which the model fine-tuning job belongs. |
output.modifier | String | The UID of the account that last modified the model fine-tuning job. For example, if a RAM user cancels the job, the UID of the RAM user is returned in this field. |
output.creator | String | The UID of the user who created the model fine-tuning job. |
output.end_time | String | The time when the model fine-tuning job ended. This parameter is returned when the job status is SUCCEEDED, FAILED, or CANCELED. |
output.group | String | The type of the model fine-tuning job. |
output.usage | Integer | The number of tokens consumed by the model fine-tuning job. For the billing formula, see Billing items. This parameter is returned when the job status is SUCCEEDED or CANCELED. |
output.output_cnt | Integer | The number of checkpoints that the job has generated. This parameter is returned only for models that support multiple checkpoint outputs, such as |
output.max_output_cnt | Integer | The maximum number of checkpoints that a single job can generate. If the value of |
Get fine-tuning task logs
For Windows CMD, replace${DASHSCOPE_API_KEY}with%DASHSCOPE_API_KEY%. For PowerShell, replace it with$env:DASHSCOPE_API_KEY
Request parameters
Field | Type | Parameter Passing | Required | Description |
|---|---|---|---|---|
job_id | String | Path | Yes | The ID of the fine-tuning job whose logs you want to retrieve. You can obtain this ID by calling the Create training job or List training jobs operation. |
offset | Number | Query | No | Skips the first |
line | Number | Query | No | Reads the number of output lines specified by |
Sample response
Response parameters
Parameter Name | Type | Description |
|---|---|---|
request_id | String | The ID of the request. |
output | Object | The query results. |
output.total | Integer | The total number of log lines. |
output.logs | Array | The returned log entries. |
Cancel fine-tuning job
For Windows CMD, replace${DASHSCOPE_API_KEY}with%DASHSCOPE_API_KEY%. For PowerShell, replace it with$env:DASHSCOPE_API_KEY
Request parameters
Field | Type | Parameter passing | Required | Description |
|---|---|---|---|---|
job_id | String | URL path | Yes | The ID of the fine-tuning job to cancel. You can obtain this ID by calling the Create training job or List training jobs operation. |
Sample response
Response parameters
Parameter Name | Type | Description |
|---|---|---|
request_id | String | The ID of the request. |
output | Object | The details returned for the cancel operation. |
Delete fine-tuning job
For Windows CMD, replace${DASHSCOPE_API_KEY}with%DASHSCOPE_API_KEY%. For PowerShell, replace it with$env:DASHSCOPE_API_KEY
Request parameters
Field | Type | Parameter passing | Required | Description |
|---|---|---|---|---|
job_id | String | URL path | Yes | The ID of the fine-tuning job to delete. You can obtain this ID by calling the Create training job or List training jobs operation. |
Sample response
Response parameters
Parameter Name | Type | Description |
|---|---|---|
request_id | String | The ID of the request. |
output | Object | The details returned for the delete operation. |
Request error codes
The following error codes are returned when a request is abnormal.
Field | Type | Description | Example |
|---|---|---|---|
code | String | The error code. | NotFound |
request_id | String | The unique system code for the request. | 6332fb02-3111-43f0-bf79-f9e8c5ffa7f9 |
message | String | The error message. | job {job_id} not found. |
HTTP status code | Error code | Sample error message | Meaning | Solution |
|---|---|---|---|---|
400 | InvalidParameter | Missing training files | A parameter is invalid. For example, a parameter is missing or has an incorrect format. | Correct the parameter based on the error message. |
400 | UnsupportedOperation | The fine-tune job can not be deleted because it is succeeded, failed, or canceled | The operation cannot be performed on the resource because the resource is in a specific state. | Wait for the resource to enter an operable state before performing the operation. |
400 | UnsupportedOperation | The fine-tune job can not be canceled because it is succeeded or failed | The operation cannot be performed on the resource because the resource is in a specific state. | Wait for the resource to enter an operable state before performing the operation. |
404 | NotFound | job {job_id} not found. | The specified resource does not exist. | Verify that the resource ID is correct. |
409 | Conflict | Model instance 'xxxxx' already exists. Please specify a suffix. | A deployed model instance named xxxxx already exists. Specify a suffix to distinguish it. | Specify a unique suffix for the deployment. |
429 | Throttling |
| The resource creation triggered a platform limit. |
|
500 | InternalError | Internal server error! | An internal error occurred. | Record the request_id and submit a ticket to Alibaba Cloud for troubleshooting. |