Class DistillationHyperParameters

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

@InternalApi public abstract class DistillationHyperParameters extends JsonSerializable
Distillation hyperparameters for tuning.
  • Constructor Details

    • DistillationHyperParameters

      public DistillationHyperParameters()
  • Method Details

    • adapterSize

      public abstract Optional<AdapterSize> adapterSize()
      The size of the adapter. Can be 'small', 'medium', or 'large'.
    • epochCount

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

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

      public abstract Optional<GenerationConfig> 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

      public abstract Optional<Float> learningRate()
      The learning rate for distillation tuning.
    • batchSize

      public abstract Optional<Integer> batchSize()
      Batch size for tuning. This feature is only available for open source models.
    • 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.