Package com.google.genai.types
Class DistillationHyperParameters
-
- All Implemented Interfaces:
@InternalApi() public abstract class DistillationHyperParameters extends JsonSerializable
Hyperparameters for distillation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classDistillationHyperParameters.BuilderBuilder for DistillationHyperParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description DistillationHyperParameters()
-
Method Summary
Modifier and Type Method Description abstract Optional<AdapterSize>adapterSize()Optional. abstract Optional<Long>epochCount()Optional. abstract Optional<Double>learningRateMultiplier()Optional. abstract Optional<Integer>batchSize()The batch size hyperparameter for tuning. abstract Optional<Float>learningRate()The learning rate for tuning. static DistillationHyperParameters.Builderbuilder()Instantiates a builder for DistillationHyperParameters. abstract DistillationHyperParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static DistillationHyperParametersfromJson(String jsonString)Deserializes a JSON string to a DistillationHyperParameters object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
adapterSize
abstract Optional<AdapterSize> adapterSize()
Optional. Adapter size for distillation.
-
epochCount
abstract Optional<Long> epochCount()
Optional. Number of complete passes the model makes over the entire training dataset during training.
-
learningRateMultiplier
abstract Optional<Double> learningRateMultiplier()
Optional. Multiplier for adjusting the default learning rate.
-
batchSize
abstract Optional<Integer> batchSize()
The batch size hyperparameter for tuning. This is only supported for OSS models in Gemini Enterprise Agent Platform.
-
learningRate
abstract Optional<Float> learningRate()
The learning rate for tuning. OSS models only.
-
builder
static DistillationHyperParameters.Builder builder()
Instantiates a builder for DistillationHyperParameters.
-
toBuilder
abstract DistillationHyperParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static DistillationHyperParameters fromJson(String jsonString)
Deserializes a JSON string to a DistillationHyperParameters object.
-
-
-
-