Class DistillationSamplingSpec.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • baseTeacherModel

      public abstract DistillationSamplingSpec.Builder baseTeacherModel(String baseTeacherModel)
      Setter for baseTeacherModel.

      baseTeacherModel: Optional. The base teacher model that is being distilled. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/tuning#supported_models).

    • clearBaseTeacherModel

      @CanIgnoreReturnValue public DistillationSamplingSpec.Builder clearBaseTeacherModel()
      Clears the value of baseTeacherModel field.
    • tunedTeacherModelSource

      public abstract DistillationSamplingSpec.Builder tunedTeacherModelSource(String tunedTeacherModelSource)
      Setter for tunedTeacherModelSource.

      tunedTeacherModelSource: Optional. The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`.

    • clearTunedTeacherModelSource

      @CanIgnoreReturnValue public DistillationSamplingSpec.Builder clearTunedTeacherModelSource()
      Clears the value of tunedTeacherModelSource field.
    • validationDatasetUri

      public abstract DistillationSamplingSpec.Builder validationDatasetUri(String validationDatasetUri)
      Setter for validationDatasetUri.

      validationDatasetUri: Optional. Cloud Storage path to file containing validation dataset for distillation. The dataset must be formatted as a JSONL file.

    • clearValidationDatasetUri

      @CanIgnoreReturnValue public DistillationSamplingSpec.Builder clearValidationDatasetUri()
      Clears the value of validationDatasetUri field.
    • build

      public abstract DistillationSamplingSpec build()