Package com.google.genai.types
Class DistillationSamplingSpec
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.DistillationSamplingSpec
Distillation sampling spec for tuning.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for DistillationSamplingSpec. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe base teacher model that is being distilled.builder()Instantiates a builder for DistillationSamplingSpec.static DistillationSamplingSpecDeserializes a JSON string to a DistillationSamplingSpec object.abstract Optional<DistillationHyperParameters>Hyperparameters for distillation tuning.Cloud Storage path to file containing prompt dataset for distillation.abstract DistillationSamplingSpec.BuilderCreates a builder with the same values as this instance.The resource name of the Tuned teacher model.Cloud Storage path to file containing validation dataset for distillation.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
DistillationSamplingSpec
public DistillationSamplingSpec()
-
-
Method Details
-
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). -
tunedTeacherModelSource
The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`. -
validationDatasetUri
Cloud Storage path to file containing validation dataset for distillation. The dataset must be formatted as a JSONL file. -
promptDatasetUri
Cloud Storage path to file containing prompt dataset for distillation. The dataset must be formatted as a JSONL file. -
hyperparameters
Hyperparameters for distillation tuning. -
builder
Instantiates a builder for DistillationSamplingSpec. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a DistillationSamplingSpec object.
-