Class DistillationHyperParameters

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.DistillationHyperParameters

@InternalApi public abstract class DistillationHyperParameters extends JsonSerializable
Hyperparameters for Distillation. This data type is not supported in Gemini API.
  • Constructor Details

    • DistillationHyperParameters

      public DistillationHyperParameters()
  • Method Details

    • adapterSize

      public abstract Optional<AdapterSize> adapterSize()
      Optional. Adapter size for distillation.
    • epochCount

      public abstract Optional<Long> epochCount()
      Optional. Number of complete passes the model makes over the entire training dataset during training.
    • learningRateMultiplier

      public abstract Optional<Double> learningRateMultiplier()
      Optional. Multiplier for adjusting the default learning rate.
    • builder

      public static DistillationHyperParameters.Builder builder()
      Instantiates a builder for DistillationHyperParameters.
    • toBuilder

      public abstract DistillationHyperParameters.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static DistillationHyperParameters fromJson(String jsonString)
      Deserializes a JSON string to a DistillationHyperParameters object.