Package com.google.genai.types
Class DistillationHyperParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.DistillationHyperParameters
Distillation hyperparameters for tuning.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for DistillationHyperParameters. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<AdapterSize>The size of the adapter.Batch size for tuning.builder()Instantiates a builder for DistillationHyperParameters.Number of complete passes the model makes over the entire training dataset during training.static DistillationHyperParametersDeserializes a JSON string to a DistillationHyperParameters object.abstract Optional<GenerationConfig>Generation config for Distillation teacher model sampling.The learning rate for distillation tuning.Multiplier for adjusting the default learning rate.abstract DistillationHyperParameters.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
DistillationHyperParameters
public DistillationHyperParameters()
-
-
Method Details
-
adapterSize
The size of the adapter. Can be 'small', 'medium', or 'large'. -
epochCount
Number of complete passes the model makes over the entire training dataset during training. -
learningRateMultiplier
Multiplier for adjusting the default learning rate. -
generationConfig
Generation config for Distillation teacher model sampling. Only the following fields are supported for distillation teacher samplings: - temperature - top_p - top_k - candidate_count - thinking_config -
learningRate
The learning rate for distillation tuning. -
batchSize
Batch size for tuning. This feature is only available for open source models. -
builder
Instantiates a builder for DistillationHyperParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a DistillationHyperParameters object.
-