Class DistillationSpec.Builder
- Enclosing class:
- DistillationSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract DistillationSpec.BuilderbaseTeacherModel(String baseTeacherModel) Setter for baseTeacherModel.abstract DistillationSpecbuild()abstract DistillationSpec.BuilderhyperParameters(DistillationHyperParameters hyperParameters) Setter for hyperParameters.hyperParameters(DistillationHyperParameters.Builder hyperParametersBuilder) Setter for hyperParameters builder.abstract DistillationSpec.BuilderpipelineRootDirectory(String pipelineRootDirectory) Setter for pipelineRootDirectory.abstract DistillationSpec.BuilderstudentModel(String studentModel) Setter for studentModel.abstract DistillationSpec.BuildertrainingDatasetUri(String trainingDatasetUri) Setter for trainingDatasetUri.abstract DistillationSpec.BuildertunedTeacherModelSource(String tunedTeacherModelSource) Setter for tunedTeacherModelSource.abstract DistillationSpec.BuildervalidationDatasetUri(String validationDatasetUri) Setter for validationDatasetUri.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
baseTeacherModel
Setter for baseTeacherModel.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 DistillationSpec.Builder hyperParameters(DistillationHyperParameters hyperParameters) Setter for hyperParameters.hyperParameters: Optional. Hyperparameters for Distillation.
-
hyperParameters
public DistillationSpec.Builder hyperParameters(DistillationHyperParameters.Builder hyperParametersBuilder) Setter for hyperParameters builder.hyperParameters: Optional. Hyperparameters for Distillation.
-
pipelineRootDirectory
Setter for pipelineRootDirectory.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
Setter for studentModel.studentModel: The student model that is being tuned, e.g., "google/gemma-2b-1.1-it". Deprecated. Use base_model instead.
-
trainingDatasetUri
Setter for trainingDatasetUri.trainingDatasetUri: Deprecated. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
-
tunedTeacherModelSource
Setter for tunedTeacherModelSource.tunedTeacherModelSource: The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`.
-
validationDatasetUri
Setter for validationDatasetUri.validationDatasetUri: Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
-
build
-