Package com.google.genai.types
Class CreateTuningJobConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CreateTuningJobConfig
Supervised fine-tuning job creation request - optional fields.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for CreateTuningJobConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<AdapterSize>
Adapter size for tuning.The batch size hyperparameter for tuning.builder()
Instantiates a builder for CreateTuningJobConfig.The description of the TuningJobNumber of complete passes the model makes over the entire training dataset during training.If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported.static CreateTuningJobConfig
Deserializes a JSON string to a CreateTuningJobConfig object.abstract Optional<HttpOptions>
Used to override HTTP request options.labels()
Optional.The learning rate hyperparameter for tuning.Multiplier for adjusting the default learning rate.The optional checkpoint id of the pre-tuned model to use for tuning, if applicable.abstract CreateTuningJobConfig.Builder
Creates a builder with the same values as this instance.The display name of the tuned Model.abstract Optional<TuningValidationDataset>
Cloud Storage path to file containing training dataset for tuning.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
CreateTuningJobConfig
public CreateTuningJobConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
validationDataset
Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. -
tunedModelDisplayName
The display name of the tuned Model. The name can be up to 128 characters long and can consist of any UTF-8 characters. -
description
The description of the TuningJob -
epochCount
Number of complete passes the model makes over the entire training dataset during training. -
learningRateMultiplier
Multiplier for adjusting the default learning rate. -
exportLastCheckpointOnly
If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for SFT. -
preTunedModelCheckpointId
The optional checkpoint id of the pre-tuned model to use for tuning, if applicable. -
adapterSize
Adapter size for tuning. -
batchSize
The batch size hyperparameter for tuning. If not set, a default of 4 or 16 will be used based on the number of training examples. -
learningRate
The learning rate hyperparameter for tuning. If not set, a default of 0.001 or 0.0002 will be calculated based on the number of training examples. -
labels
Optional. The labels with user-defined metadata to organize TuningJob and generated resources such as Model and Endpoint. Label keys and values can be no longer than 64 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. See https://goo.gl/xmQnxf for more information and examples of labels. -
builder
Instantiates a builder for CreateTuningJobConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CreateTuningJobConfig object.
-