Skip to content

Commit

Permalink
Fine tune job holder adjusted
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbanda committed Sep 27, 2023
1 parent 7cb0756 commit cf3edef
Showing 1 changed file with 27 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,39 @@ package io.cequence.openaiscala.domain.response

import java.{util => ju}

// TODO: adapt
case class FineTuneJob(
// the object identifier, which can be referenced in the API endpoints.
id: String,
// the base model that is being fine-tuned
model: String,
// the Unix timestamp (in seconds) for when the fine-tuning job was created.
created_at: ju.Date,
events: Option[Seq[FineTuneEvent]],
// 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.
finished_at: Option[ju.Date],
// the name of the fine-tuned model that is being created. The value will be null if the fine-tuning job is still running.
fine_tuned_model: Option[String],
hyperparams: FineTuneHyperparams,
// the organization that owns the fine-tuning job.
organization_id: String,
status: String, // e.g. pending or cancelled
validation_files: Seq[FileInfo],
training_files: Seq[FileInfo],
result_files: Seq[FileInfo],
updated_at: ju.Date
)
// the current status of the fine-tuning job, which can be either validating_files, queued, running, succeeded, failed, or cancelled.
status: String,
// the file ID used for training. You can retrieve the training data with the Files API.
training_file: String,
// the file ID used for validation. You can retrieve the validation results with the Files API.
validation_file: Option[String],
// the compiled results file ID(s) for the fine-tuning job. You can retrieve the results with the Files API.
result_files: Seq[String],
// 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.
trained_tokens: Option[Int],
// For fine-tuning jobs that have failed, this will contain more information on the cause of the failure.
error: Option[String],
// the hyperparameters used for the fine-tuning job. See the fine-tuning guide for more details.
hyperparameters: FineTuneHyperparams,
) {
@Deprecated
def updated_at = finished_at
@Deprecated
def events: Option[Seq[FineTuneEvent]] = None
}

case class FineTuneEvent(
created_at: ju.Date,
Expand Down

0 comments on commit cf3edef

Please sign in to comment.