Get training list
    • PDF

    Get training list

    • PDF

    Article summary

    Available in Classic and VPC

    Get the training list you created.

    Request

    The following describes the request format for the endpoint. The request format is as follows:

    MethodURI
    GET/tuning/v2/tasks

    Request headers

    The following describes the request headers.

    FieldRequiredDescription
    X-NCP-APIGW-TIMESTAMPRequiredThis is the number of milliseconds that have elapsed since January 1, 1970 00:00:00 UTC
    • Request is considered invalid if the timestamp differs from the current time by more than 5 minutes
    X-NCP-IAM-ACCESS-KEYRequiredAccess key issued on the NAVER Cloud Platform portal or Sub Account service
    X-NCP-APIGW-SIGNATURE-V2RequiredBase64-encoded signature that encrypts the request path and headers with a secret key that maps to the access key, using the HMAC encryption algorithm (HmacSHA256)
    X-NCP-CLOVASTUDIO-REQUEST-IDOptionalRequest ID for the request
    Content-TypeRequiredRequest data format
    • application/json

    Request query parameters

    The following describes the request query parameters.

    FieldTypeRequiredDescription
    sizeIntegerOptionalPage output count
    • 1 - 100 (default: 20)
    pageIntegerOptionalPage number
    • 0 - N (default: 0)

    Request example

    The following is a sample request.

    curl --location --request GET 'https://clovastudio.apigw.ntruss.com/tuning/v2/tasks?page=0&size=20' \
    --header 'X-NCP-APIGW-TIMESTAMP: {Timestamp}' \
    --header 'X-NCP-IAM-ACCESS-KEY: {Access Key}' \
    --header 'X-NCP-APIGW-SIGNATURE-V2: {API Gateway Signature}' \
    --header 'Content-Type: application/json' \
    --header 'X-NCP-CLOVASTUDIO-REQUEST-ID: {Request ID}' 
    

    Response

    The following describes the response format.

    Response headers

    The following describes the response headers.

    HeadersRequiredDescription
    Content-Type-Response data format
    • application/json

    Response body

    The following describes the response body.

    FieldTypeRequiredDescription
    statusObject-Response status
    resultObject-Response result
    result.totalPagesInteger-Total number of pages
    result.totalElementsInteger-Total number of data
    result.sizeInteger-Number of data per page
    result.numberInteger-Page number
    result.contentObject-Training information
    result.content.idString-Training ID
    result.content.nameString-Training name
    result.content.modelString-Tuning model name
    result.content.methodEnum-Tuning method
    • LoRA
    result.content.taskTypeString-Training type
    • GENERATION | CLASSIFICATION
      • GENERATION: generation
      • CLASSIFICATION: classification
    result.content.trainEpochsInteger-Number of epochs trained on the model
    result.content.learningRateDouble-Training rate (level or degree to which model parameters are retrained when tuning)
    result.content.statusEnum-Training progress
    • WAIT | RUNNING | FAILED | SUCCEEDED
      • WAIT: training pending
      • RUNNING: training in progress
      • FAILED: training stopped
      • SUCCEEDED: training completed
    result.content.statusInfoArray-Training progress details
    result.content.createdClientTypeString-Type of client requesting training
    • API | WEB
      • API: API client
      • WEB: web client
    result.content.createdDateString-Training creation date (ISO 8601 format)
    result.content.updatedDateString-Training modification date (ISO 8601 format)

    statusInfo

    The following describes statusInfo.

    FieldTypeRequiredDescription
    labelArray-
    • When the training type is CLASSIFICATION: User data labels are displayed
    • When the training type is GENERATION: null
    dataRowsInteger-Number of data
    numOfTokensInteger-Number of data tokens
    currStepInteger-Number of current training steps
    totalTrainStepsInteger-Number of total training steps
    currEpochInteger-Current epoch
    totalTrainEpochsInteger-All training epochs
    estimatedTimeInteger-Estimated run time
    • Derived by multiplying the average time of 1 epoch by the total number of training epochs
    trainLossDouble-Training loss
    sendWeightSuccessBoolean-Whether to save training results
    • false | true
      • false: Don't save
      • true: Save
    failureReasonString-Reason for training failure (FAILED)
    messageString-Detailed message for training failure (FAILED) reason
    endDatetimeString-Training end date (in ISO 8601 format)

    failureReason, message

    The following describes training failure reasons (failureReason) and the detailed message (message) for each training failure reason.

    Training failure reasonMessage detailsDescription
    file.extensionUnavailable file extension. Please check the file extension again.The data file extension does not match the requested tuningType
    file.sizeExceeded the disk usage limit. Please check if the file size is {limit} or less.The expected file size for the training request is exceeded
    file.encodingUnsupported charsetNon-UTF8-sig encoding
    file.formatInvalid json format. {reason}Unable to decode the dataset file (.json/.jsonl)
    file.formatInvalid dataset: required field empty. {column}The dataset file does not have the required columns
    file.formatInvalid dataset: unexpected column. {column}The dataset file has unexpected columns
    file.formatInvalid dataset: duplicate columns. {column}The dataset file is not case sensitive and contains duplicate columns
    file.formatInvalid dataset: column orderThe column order in the dataset file deviates from System_Prompt, C_ID, T_ID, Text, and Completion
    file.formatInvalid dataset: {column}The C_ID (or T_ID) in the dataset file does not satisfy the pattern of starting at 0 and incrementing by 1, or the value is empty
    file.error-File read error
    resource.timeout-Response timeout due to GPU acquisition failure; retry required
    clops.error-CLOps error while training
    train.unknown-Non-file related error while training

    Response example

    The following is a sample example.

    Succeeded

    The following is a sample response upon a successful call.

    {
        "status": {
            "code": "20000",
            "message": "OK"
        },
        "result": {
            "totalPages": "7,",
            "totalElements": "122,",
            "size": "20,",
            "number": "0,",
            "content": [
            {
                "id": "oi55o2ej",
                "name": "230709-202307",
                "model": "HCX-003",
                "method": "LoRA",
                "taskType": "GENERATION",
                "trainEpochs": 4,
                "learningRate": 1.0E-4,
                "status": "FAILED",
                "statusInfo": {
                "label": null,
                "dataRows": null,
                "numOfTokens": null,
                "currStep": null,
                "totalTrainSteps": null,
                "currEpoch": null,
                "totalTrainEpochs": null,
                "estimatedTime": null,
                "trainLoss": null,
                "sendWeightSuccess": null,
                "failureReason": "resource.timeout"
                },
                "createdClientType": "WEB",
                "createdDate": "2023-08-20T20:23:08+0900",
                "updatedDate": "2023-08-21T10:31:40+0900"
                },
                {
                    "id": "oi55o2ej",
                    "name": "230709-202307",
                    "model": "HCX-002",
                    "method": "LoRA",
                    "taskType": "GENERATION",
                    "trainEpochs": 4,
                    "learningRate": 1.0E-4,
                    "status": "FAILED",
                    "statusInfo": {
                    22
                    "label": null,
                    "dataRows": null,
                    "numOfTokens": null,
                    "currStep": null,
                    "totalTrainSteps": null,
                    "currEpoch": null,
                    "totalTrainEpochs": null,
                    "estimatedTime": null,
                    "trainLoss": null,
                    "sendWeightSuccess": null,
                    "failureReason": "resource.timeout",
                    "message": null
                    },
                    "createdClientType": "WEB",
                    "createdDate": "2023-08-21T20:23:08+0900",
                    "updatedDate": "2023-08-22T10:31:40+0900"
                }
            ]
        }
    }
    

    Failure

    The following is a sample response upon a failed call.


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.