FineTuningJob

@Serializable
data class FineTuningJob(val id: FineTuningId, val createdAt: Int, val model: ModelId, val organizationId: OrganizationId, val status: Status, val hyperparameters: Hyperparameters, val trainingFile: FileId, val resultFiles: List<FileId>, val finishedAt: Int? = null, val fineTunedModel: ModelId? = null, val validationFile: FileId? = null, val trainedTokens: Int? = null, val error: ErrorInfo? = null)

A data class representing a fine-tuning job.

Constructors

Link copied to clipboard
constructor(id: FineTuningId, createdAt: Int, model: ModelId, organizationId: OrganizationId, status: Status, hyperparameters: Hyperparameters, trainingFile: FileId, resultFiles: List<FileId>, finishedAt: Int? = null, fineTunedModel: ModelId? = null, validationFile: FileId? = null, trainedTokens: Int? = null, error: ErrorInfo? = null)

Properties

Link copied to clipboard

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

Link copied to clipboard
val error: ErrorInfo? = null

Contains more information on the cause of failure for failed fine-tuning jobs, or null if not failed.

Link copied to clipboard
val fineTunedModel: ModelId? = null

The name of the fine-tuned model that is being created, or null if the fine-tuning job is still running.

Link copied to clipboard
val finishedAt: Int? = null

The Unix timestamp (in seconds) for when the fine-tuning job was finished, or null if still running.

Link copied to clipboard

The hyperparameters used for the fine-tuning job.

Link copied to clipboard

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

Link copied to clipboard

The base model that is being fine-tuned.

Link copied to clipboard

The organization that owns the fine-tuning job.

Link copied to clipboard

The compiled results file ID(s) for the fine-tuning job, retrievable via the Files API.

Link copied to clipboard

The current status of the fine-tuning job (e.g., Status.ValidatingFiles, Status.Queued, etc.).

Link copied to clipboard
val trainedTokens: Int? = null

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

Link copied to clipboard

The file ID used for training, retrievable via the Files API.

Link copied to clipboard
val validationFile: FileId? = null

The file ID used for validation, retrievable via the Files API, or null if not available.