Class DistillationSpec

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

public abstract class DistillationSpec extends JsonSerializable
Distillation tuning spec for tuning.
  • Constructor Details

    • DistillationSpec

      public DistillationSpec()
  • Method Details

    • promptDatasetUri

      public abstract Optional<String> promptDatasetUri()
      The GCS URI of the prompt dataset to use during distillation.
    • baseTeacherModel

      public abstract Optional<String> baseTeacherModel()
      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).
    • hyperParameters

      public abstract Optional<DistillationHyperParameters> hyperParameters()
      Optional. Hyperparameters for Distillation.
    • pipelineRootDirectory

      public abstract Optional<String> pipelineRootDirectory()
      Deprecated. A path in a Cloud Storage bucket, which will be treated as the root output directory of the distillation pipeline. It is used by the system to generate the paths of output artifacts.
    • studentModel

      public abstract Optional<String> studentModel()
      The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". Deprecated. Use base_model instead.
    • trainingDatasetUri

      public abstract Optional<String> trainingDatasetUri()
      Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
    • tunedTeacherModelSource

      public abstract Optional<String> tunedTeacherModelSource()
      The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`.
    • validationDatasetUri

      public abstract Optional<String> validationDatasetUri()
      Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
    • builder

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

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

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