The fine_tuning.job object represents a fine-tuning job that has been created through the API.

interface FineTuningJob {
    created_at: number;
    error: null | OpenAIClient.FineTuning.Jobs.FineTuningJob.Error;
    estimated_finish?: null | number;
    fine_tuned_model: null | string;
    finished_at: null | number;
    hyperparameters: OpenAIClient.FineTuning.Jobs.FineTuningJob.Hyperparameters;
    id: string;
    integrations?: null | FineTuningJobWandbIntegrationObject[];
    model: string;
    object: "fine_tuning.job";
    organization_id: string;
    result_files: string[];
    seed: number;
    status:
        | "validating_files"
        | "queued"
        | "running"
        | "succeeded"
        | "failed"
        | "cancelled";
    trained_tokens: null | number;
    training_file: string;
    validation_file: null | string;
}

Properties

created_at: number

The Unix timestamp (in seconds) for when the fine-tuning job was created.

For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.

estimated_finish?: null | number

The Unix timestamp (in seconds) for when the fine-tuning job is estimated to finish. The value will be null if the fine-tuning job is not running.

fine_tuned_model: null | string

The name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.

finished_at: null | number

The Unix timestamp (in seconds) for when the fine-tuning job was finished. The value will be null if the fine-tuning job is still running.

The hyperparameters used for the fine-tuning job. See the fine-tuning guide for more details.

id: string

The object identifier, which can be referenced in the API endpoints.

integrations?: null | FineTuningJobWandbIntegrationObject[]

A list of integrations to enable for this fine-tuning job.

model: string

The base model that is being fine-tuned.

object: "fine_tuning.job"

The object type, which is always "fine_tuning.job".

organization_id: string

The organization that owns the fine-tuning job.

result_files: string[]

The compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the Files API.

seed: number

The seed used for the fine-tuning job.

status:
    | "validating_files"
    | "queued"
    | "running"
    | "succeeded"
    | "failed"
    | "cancelled"

The current status of the fine-tuning job, which can be either validating_files, queued, running, succeeded, failed, or cancelled.

trained_tokens: null | number

The total number of billable tokens processed by this fine-tuning job. The value will be null if the fine-tuning job is still running.

training_file: string

The file ID used for training. You can retrieve the training data with the Files API.

validation_file: null | string

The file ID used for validation. You can retrieve the validation results with the Files API.