Class DistillationSpec (1.66.0)

DistillationSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Tuning Spec for Distillation.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
base_teacher_model str
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002". This field is a member of oneof_ teacher_model.
tuned_teacher_model_source str
The resource name of the Tuned teacher model. Format: projects/{project}/locations/{location}/models/{model}. This field is a member of oneof_ teacher_model.
training_dataset_uri str
Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
validation_dataset_uri str
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file. This field is a member of oneof_ _validation_dataset_uri.
hyper_parameters google.cloud.aiplatform_v1beta1.types.DistillationHyperParameters
Optional. Hyperparameters for Distillation.
student_model str
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
pipeline_root_directory str
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.

Methods

DistillationSpec

DistillationSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Tuning Spec for Distillation.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields