Package com.google.genai.types
Class SupervisedHyperParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SupervisedHyperParameters
Hyperparameters for SFT.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for SupervisedHyperParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<AdapterSize>
Optional.Optional.builder()
Instantiates a builder for SupervisedHyperParameters.Optional.static SupervisedHyperParameters
Deserializes a JSON string to a SupervisedHyperParameters object.Optional.Optional.abstract SupervisedHyperParameters.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
SupervisedHyperParameters
public SupervisedHyperParameters()
-
-
Method Details
-
adapterSize
Optional. Adapter size for tuning. -
batchSize
Optional. Batch size for tuning. This feature is only available for open source models. -
epochCount
Optional. Number of complete passes the model makes over the entire training dataset during training. -
learningRate
Optional. Learning rate for tuning. Mutually exclusive with `learning_rate_multiplier`. This feature is only available for open source models. -
learningRateMultiplier
Optional. Multiplier for adjusting the default learning rate. Mutually exclusive with `learning_rate`. This feature is only available for 1P models. -
builder
Instantiates a builder for SupervisedHyperParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SupervisedHyperParameters object.
-