class

OpenAI::FineTuningJob

Inherits JSON::Serializable < Reference < Object

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

Constructors

new(id : String = "", created_at : Int64 = 0, error : FineTuningJobError = nil, fine_tuned_model : FineTuningJobFineTunedModel = nil, finished_at : FineTuningJobFinishedAt = nil, hyperparameters : FineTuningJobHyperparameters = FineTuningJobHyperparameters.new, model : String = "", object : FineTuningJobObject = FineTuningJobObject::FineTuningJob, organization_id : String = "", result_files : Array(String) = [] of String, status : FineTuningJobStatus = FineTuningJobStatus::ValidatingFiles, trained_tokens : FineTuningJobTrainedTokens = nil, training_file : String = "", validation_file : FineTuningJobValidationFile = nil, integrations : FineTuningJobIntegrations | Nil = nil, seed : Int64 = 0, estimated_finish : FineTuningJobEstimatedFinish | Nil = nil, method : FineTuneMethod | Nil = nil, metadata : Metadata | Nil = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

created_at

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

Source
created_at=(created_at : Int64)

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

Source
error
Source
error=(error : FineTuningJobError)
Source
estimated_finish
Source
estimated_finish=(estimated_finish : FineTuningJobEstimatedFinish | Nil)
Source
fine_tuned_model
Source
fine_tuned_model=(fine_tuned_model : FineTuningJobFineTunedModel)
Source
finished_at
Source
finished_at=(finished_at : FineTuningJobFinishedAt)
Source
hyperparameters

The hyperparameters used for the fine-tuning job. This value will only be returned when running supervised jobs.

Source
hyperparameters=(hyperparameters : FineTuningJobHyperparameters)

The hyperparameters used for the fine-tuning job. This value will only be returned when running supervised jobs.

Source
id

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

Source
id=(id : String)

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

Source
integrations
Source
integrations=(integrations : FineTuningJobIntegrations | Nil)
Source
metadata
Source
metadata=(metadata : Metadata | Nil)
Source
method
Source
method=(method : FineTuneMethod | Nil)
Source
model

The base model that is being fine-tuned.

Source
model=(model : String)

The base model that is being fine-tuned.

Source
object

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

Source
object=(object : FineTuningJobObject)

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

Source
organization_id

The organization that owns the fine-tuning job.

Source
organization_id=(organization_id : String)

The organization that owns the fine-tuning job.

Source
result_files

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

Source
result_files=(result_files : Array(String))

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

Source
seed

The seed used for the fine-tuning job.

Source
seed=(seed : Int64)

The seed used for the fine-tuning job.

Source
status

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

Source
status=(status : FineTuningJobStatus)

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

Source
trained_tokens
Source
trained_tokens=(trained_tokens : FineTuningJobTrainedTokens)
Source
training_file

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

Source
training_file=(training_file : String)

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

Source
validation_file
Source
validation_file=(validation_file : FineTuningJobValidationFile)
Source