Class FineTuningJobCreateParams.FineTuningJobCreateBody.Builder
-
- All Implemented Interfaces:
public final class FineTuningJobCreateParams.FineTuningJobCreateBody.Builder
-
-
Constructor Summary
Constructors Constructor Description FineTuningJobCreateParams.FineTuningJobCreateBody.Builder()
-
Method Summary
-
-
Method Detail
-
model
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder model(FineTuningJobCreateParams.Model model)
The name of the model to fine-tune. You can select one of the supported models.
-
model
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder model(JsonField<FineTuningJobCreateParams.Model> model)
The name of the model to fine-tune. You can select one of the supported models.
-
model
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder model(String value)
The name of the model to fine-tune. You can select one of the supported models.
-
trainingFile
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder trainingFile(String trainingFile)
The ID of an uploaded file that contains training data.
See upload file for how to upload a file.
Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose
fine-tune
.The contents of the file should differ depending on if the model uses the chat, completions format, or if the fine-tuning method uses the preference format.
See the fine-tuning guide for more details.
-
trainingFile
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder trainingFile(JsonField<String> trainingFile)
The ID of an uploaded file that contains training data.
See upload file for how to upload a file.
Your dataset must be formatted as a JSONL file. Additionally, you must upload your file with the purpose
fine-tune
.The contents of the file should differ depending on if the model uses the chat, completions format, or if the fine-tuning method uses the preference format.
See the fine-tuning guide for more details.
-
hyperparameters
@Deprecated(message = "deprecated") final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder hyperparameters(FineTuningJobCreateParams.Hyperparameters hyperparameters)
The hyperparameters used for the fine-tuning job. This value is now deprecated in favor of
method
, and should be passed in under themethod
parameter.
-
hyperparameters
@Deprecated(message = "deprecated") final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder hyperparameters(JsonField<FineTuningJobCreateParams.Hyperparameters> hyperparameters)
The hyperparameters used for the fine-tuning job. This value is now deprecated in favor of
method
, and should be passed in under themethod
parameter.
-
integrations
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder integrations(List<FineTuningJobCreateParams.Integration> integrations)
A list of integrations to enable for your fine-tuning job.
-
integrations
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder integrations(Optional<List<FineTuningJobCreateParams.Integration>> integrations)
A list of integrations to enable for your fine-tuning job.
-
integrations
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder integrations(JsonField<List<FineTuningJobCreateParams.Integration>> integrations)
A list of integrations to enable for your fine-tuning job.
-
addIntegration
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder addIntegration(FineTuningJobCreateParams.Integration integration)
A list of integrations to enable for your fine-tuning job.
-
method
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder method(FineTuningJobCreateParams.Method method)
The method used for fine-tuning.
-
method
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder method(JsonField<FineTuningJobCreateParams.Method> method)
The method used for fine-tuning.
-
seed
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder seed(Long 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.
-
seed
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder seed(Long 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.
-
seed
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder seed(Optional<Long> 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.
-
seed
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder seed(JsonField<Long> 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.
-
suffix
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder suffix(String suffix)
A string of up to 64 characters that will be added to your fine-tuned model name.
For example, a
suffix
of "custom-model-name" would produce a model name likeft:gpt-4o-mini:openai:custom-model-name:7p4lURel
.
-
suffix
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder suffix(Optional<String> suffix)
A string of up to 64 characters that will be added to your fine-tuned model name.
For example, a
suffix
of "custom-model-name" would produce a model name likeft:gpt-4o-mini:openai:custom-model-name:7p4lURel
.
-
suffix
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder suffix(JsonField<String> suffix)
A string of up to 64 characters that will be added to your fine-tuned model name.
For example, a
suffix
of "custom-model-name" would produce a model name likeft:gpt-4o-mini:openai:custom-model-name:7p4lURel
.
-
validationFile
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder validationFile(String 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.
Your dataset must be formatted as a JSONL file. You must upload your file with the purpose
fine-tune
.See the fine-tuning guide for more details.
-
validationFile
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder validationFile(Optional<String> 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.
Your dataset must be formatted as a JSONL file. You must upload your file with the purpose
fine-tune
.See the fine-tuning guide for more details.
-
validationFile
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder validationFile(JsonField<String> 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.
Your dataset must be formatted as a JSONL file. You must upload your file with the purpose
fine-tune
.See the fine-tuning guide for more details.
-
additionalProperties
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final FineTuningJobCreateParams.FineTuningJobCreateBody.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final FineTuningJobCreateParams.FineTuningJobCreateBody build()
-
-
-
-