Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DistillationSpec

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Overview

Tuning Spec for Distillation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1DistillationSpec

Returns a new instance of GoogleCloudAiplatformV1beta1DistillationSpec.



6206
6207
6208
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6206

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#base_teacher_modelString

The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002". Corresponds to the JSON property baseTeacherModel

Returns:

  • (String)


6169
6170
6171
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6169

def base_teacher_model
  @base_teacher_model
end

#hyper_parametersGoogle::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1DistillationHyperParameters

Hyperparameters for Distillation. Corresponds to the JSON property hyperParameters



6174
6175
6176
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6174

def hyper_parameters
  @hyper_parameters
end

#pipeline_root_directoryString

Required. 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. Corresponds to the JSON property pipelineRootDirectory

Returns:

  • (String)


6181
6182
6183
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6181

def pipeline_root_directory
  @pipeline_root_directory
end

#student_modelString

The student model that is being tuned, e.g., "google/gemma-2b-it". Corresponds to the JSON property studentModel

Returns:

  • (String)


6186
6187
6188
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6186

def student_model
  @student_model
end

#training_dataset_uriString

Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file. Corresponds to the JSON property trainingDatasetUri

Returns:

  • (String)


6192
6193
6194
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6192

def training_dataset_uri
  @training_dataset_uri
end

#tuned_teacher_model_sourceString

The resource name of the Tuned teacher model. Format: projects/project/ locations/location/models/model`. Corresponds to the JSON propertytunedTeacherModelSource`

Returns:

  • (String)


6198
6199
6200
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6198

def tuned_teacher_model_source
  @tuned_teacher_model_source
end

#validation_dataset_uriString

Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. Corresponds to the JSON property validationDatasetUri

Returns:

  • (String)


6204
6205
6206
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6204

def validation_dataset_uri
  @validation_dataset_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6211
6212
6213
6214
6215
6216
6217
6218
6219
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 6211

def update!(**args)
  @base_teacher_model = args[:base_teacher_model] if args.key?(:base_teacher_model)
  @hyper_parameters = args[:hyper_parameters] if args.key?(:hyper_parameters)
  @pipeline_root_directory = args[:pipeline_root_directory] if args.key?(:pipeline_root_directory)
  @student_model = args[:student_model] if args.key?(:student_model)
  @training_dataset_uri = args[:training_dataset_uri] if args.key?(:training_dataset_uri)
  @tuned_teacher_model_source = args[:tuned_teacher_model_source] if args.key?(:tuned_teacher_model_source)
  @validation_dataset_uri = args[:validation_dataset_uri] if args.key?(:validation_dataset_uri)
end