Class DistillationHyperParameters.Builder

java.lang.Object
com.google.genai.types.DistillationHyperParameters.Builder
Enclosing class:
DistillationHyperParameters

public abstract static class DistillationHyperParameters.Builder extends Object
Builder for DistillationHyperParameters.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • adapterSize

      public abstract DistillationHyperParameters.Builder adapterSize(AdapterSize adapterSize)
      Setter for adapterSize.

      adapterSize: The size of the adapter. Can be 'small', 'medium', or 'large'.

    • clearAdapterSize

      @CanIgnoreReturnValue public DistillationHyperParameters.Builder clearAdapterSize()
      Clears the value of adapterSize field.
    • adapterSize

      @CanIgnoreReturnValue public DistillationHyperParameters.Builder adapterSize(AdapterSize.Known knownType)
      Setter for adapterSize given a known enum.

      adapterSize: The size of the adapter. Can be 'small', 'medium', or 'large'.

    • adapterSize

      @CanIgnoreReturnValue public DistillationHyperParameters.Builder adapterSize(String adapterSize)
      Setter for adapterSize given a string.

      adapterSize: The size of the adapter. Can be 'small', 'medium', or 'large'.

    • epochCount

      public abstract DistillationHyperParameters.Builder epochCount(Long epochCount)
      Setter for epochCount.

      epochCount: Number of complete passes the model makes over the entire training dataset during training.

    • clearEpochCount

      @CanIgnoreReturnValue public DistillationHyperParameters.Builder clearEpochCount()
      Clears the value of epochCount field.
    • learningRateMultiplier

      public abstract DistillationHyperParameters.Builder learningRateMultiplier(Float learningRateMultiplier)
      Setter for learningRateMultiplier.

      learningRateMultiplier: Multiplier for adjusting the default learning rate.

    • clearLearningRateMultiplier

      @CanIgnoreReturnValue public DistillationHyperParameters.Builder clearLearningRateMultiplier()
      Clears the value of learningRateMultiplier field.
    • generationConfig

      public abstract DistillationHyperParameters.Builder generationConfig(GenerationConfig generationConfig)
      Setter for 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

    • generationConfig

      @CanIgnoreReturnValue public DistillationHyperParameters.Builder generationConfig(GenerationConfig.Builder generationConfigBuilder)
      Setter for generationConfig builder.

      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

    • clearGenerationConfig

      @CanIgnoreReturnValue public DistillationHyperParameters.Builder clearGenerationConfig()
      Clears the value of generationConfig field.
    • learningRate

      public abstract DistillationHyperParameters.Builder learningRate(Float learningRate)
      Setter for learningRate.

      learningRate: The learning rate for distillation tuning.

    • clearLearningRate

      @CanIgnoreReturnValue public DistillationHyperParameters.Builder clearLearningRate()
      Clears the value of learningRate field.
    • batchSize

      public abstract DistillationHyperParameters.Builder batchSize(Integer batchSize)
      Setter for batchSize.

      batchSize: Batch size for tuning. This feature is only available for open source models.

    • clearBatchSize

      @CanIgnoreReturnValue public DistillationHyperParameters.Builder clearBatchSize()
      Clears the value of batchSize field.
    • build

      public abstract DistillationHyperParameters build()