Class CreateFineTuningJobRequest.Builder
java.lang.Object
io.github.stefanbratanov.jvm.openai.CreateFineTuningJobRequest.Builder
- Enclosing class:
- CreateFineTuningJobRequest
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
hyperparameters
(CreateFineTuningJobRequest.Hyperparameters hyperparameters) integrations
(List<FineTuningJobIntegration> integrations) model
(OpenAIModel model) seed
(int seed) trainingFile
(String trainingFile) validationFile
(String validationFile)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
model
- Parameters:
model
- The name of the model to fine-tune
-
model
- Parameters:
model
-OpenAIModel
to fine-tune
-
trainingFile
- Parameters:
trainingFile
- The ID of an uploaded file that contains training data. Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose fine-tune.
-
hyperparameters
public CreateFineTuningJobRequest.Builder hyperparameters(CreateFineTuningJobRequest.Hyperparameters hyperparameters) - Parameters:
hyperparameters
- The hyperparameters used for the fine-tuning job
-
suffix
- Parameters:
suffix
- A string of up to 18 characters that will be added to your fine-tuned model name
-
validationFile
- Parameters:
validationFile
- The ID of an uploaded file that contains validation data.If you provide this file, the data is used to generate validation metrics periodically during fine-tuning. These metrics can be viewed in the fine-tuning results file. The same data should not be present in both train and validation files.
-
integrations
- Parameters:
integrations
- A list of integrations to enable for your fine-tuning job.
-
seed
- Parameters:
seed
- The seed controls the reproducibility of the job. Passing in the same seed and job parameters should produce the same results, but may differ in rare cases. If a seed is not specified, one will be generated for you.
-
build
-