Package com.google.genai.types
Class SupervisedTuningSpec
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SupervisedTuningSpec
Tuning Spec for Supervised Tuning for first party models.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for SupervisedTuningSpec. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SupervisedTuningSpec.Builder
builder()
Instantiates a builder for SupervisedTuningSpec.Optional.static SupervisedTuningSpec
Deserializes a JSON string to a SupervisedTuningSpec object.abstract Optional<SupervisedHyperParameters>
Optional.abstract SupervisedTuningSpec.Builder
Creates a builder with the same values as this instance.Required.abstract Optional<TuningMode>
Tuning mode.Optional.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
SupervisedTuningSpec
public SupervisedTuningSpec()
-
-
Method Details
-
exportLastCheckpointOnly
Optional. If set to true, disable intermediate checkpoints for SFT and only the last checkpoint will be exported. Otherwise, enable intermediate checkpoints for SFT. Default is false. -
hyperParameters
Optional. Hyperparameters for SFT. -
trainingDatasetUri
Required. Training dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. -
tuningMode
Tuning mode. -
validationDatasetUri
Optional. Validation dataset used for tuning. The dataset can be specified as either a Cloud Storage path to a JSONL file or as the resource name of a Vertex Multimodal Dataset. -
builder
Instantiates a builder for SupervisedTuningSpec. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SupervisedTuningSpec object.
-