Class DistillationSpec
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.aiplatform.v1beta1.DistillationSpec
- All Implemented Interfaces:
DistillationSpecOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class DistillationSpec
extends com.google.protobuf.GeneratedMessage
implements DistillationSpecOrBuilder
Tuning Spec for Distillation.Protobuf type
google.cloud.aiplatform.v1beta1.DistillationSpec- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classTuning Spec for Distillation.static enumNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe base teacher model that is being distilled.com.google.protobuf.ByteStringThe base teacher model that is being distilled.static DistillationSpecstatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.com.google.protobuf.Parser<DistillationSpec>Required.com.google.protobuf.ByteStringRequired.intThe student model that is being tuned, e.g., "google/gemma-2b-1.1-it".com.google.protobuf.ByteStringThe student model that is being tuned, e.g., "google/gemma-2b-1.1-it".Required.com.google.protobuf.ByteStringRequired.The resource name of the Tuned teacher model.com.google.protobuf.ByteStringThe resource name of the Tuned teacher model.Optional.com.google.protobuf.ByteStringOptional.booleanThe base teacher model that is being distilled.inthashCode()booleanOptional.booleanThe resource name of the Tuned teacher model.booleanOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic DistillationSpec.Builderstatic DistillationSpec.BuildernewBuilder(DistillationSpec prototype) protected DistillationSpec.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static DistillationSpecparseDelimitedFrom(InputStream input) static DistillationSpecparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistillationSpecparseFrom(byte[] data) static DistillationSpecparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistillationSpecparseFrom(com.google.protobuf.ByteString data) static DistillationSpecparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistillationSpecparseFrom(com.google.protobuf.CodedInputStream input) static DistillationSpecparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistillationSpecparseFrom(InputStream input) static DistillationSpecparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static DistillationSpecparseFrom(ByteBuffer data) static DistillationSpecparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<DistillationSpec>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
BASE_TEACHER_MODEL_FIELD_NUMBER
public static final int BASE_TEACHER_MODEL_FIELD_NUMBER- See Also:
-
TUNED_TEACHER_MODEL_SOURCE_FIELD_NUMBER
public static final int TUNED_TEACHER_MODEL_SOURCE_FIELD_NUMBER- See Also:
-
TRAINING_DATASET_URI_FIELD_NUMBER
public static final int TRAINING_DATASET_URI_FIELD_NUMBER- See Also:
-
VALIDATION_DATASET_URI_FIELD_NUMBER
public static final int VALIDATION_DATASET_URI_FIELD_NUMBER- See Also:
-
HYPER_PARAMETERS_FIELD_NUMBER
public static final int HYPER_PARAMETERS_FIELD_NUMBER- See Also:
-
STUDENT_MODEL_FIELD_NUMBER
public static final int STUDENT_MODEL_FIELD_NUMBER- See Also:
-
PIPELINE_ROOT_DIRECTORY_FIELD_NUMBER
public static final int PIPELINE_ROOT_DIRECTORY_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getTeacherModelCase
- Specified by:
getTeacherModelCasein interfaceDistillationSpecOrBuilder
-
hasBaseTeacherModel
public boolean hasBaseTeacherModel()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).
string base_teacher_model = 5;- Specified by:
hasBaseTeacherModelin interfaceDistillationSpecOrBuilder- Returns:
- Whether the baseTeacherModel field is set.
-
getBaseTeacherModel
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).
string base_teacher_model = 5;- Specified by:
getBaseTeacherModelin interfaceDistillationSpecOrBuilder- Returns:
- The baseTeacherModel.
-
getBaseTeacherModelBytes
public com.google.protobuf.ByteString getBaseTeacherModelBytes()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).
string base_teacher_model = 5;- Specified by:
getBaseTeacherModelBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for baseTeacherModel.
-
hasTunedTeacherModelSource
public boolean hasTunedTeacherModelSource()The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`.string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... }- Specified by:
hasTunedTeacherModelSourcein interfaceDistillationSpecOrBuilder- Returns:
- Whether the tunedTeacherModelSource field is set.
-
getTunedTeacherModelSource
The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`.string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... }- Specified by:
getTunedTeacherModelSourcein interfaceDistillationSpecOrBuilder- Returns:
- The tunedTeacherModelSource.
-
getTunedTeacherModelSourceBytes
public com.google.protobuf.ByteString getTunedTeacherModelSourceBytes()The resource name of the Tuned teacher model. Format: `projects/{project}/locations/{location}/models/{model}`.string tuned_teacher_model_source = 6 [(.google.api.resource_reference) = { ... }- Specified by:
getTunedTeacherModelSourceBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for tunedTeacherModelSource.
-
getTrainingDatasetUri
Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTrainingDatasetUriin interfaceDistillationSpecOrBuilder- Returns:
- The trainingDatasetUri.
-
getTrainingDatasetUriBytes
public com.google.protobuf.ByteString getTrainingDatasetUriBytes()Required. Cloud Storage path to file containing training dataset for tuning. The dataset must be formatted as a JSONL file.
string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTrainingDatasetUriBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for trainingDatasetUri.
-
hasValidationDatasetUri
public boolean hasValidationDatasetUri()Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasValidationDatasetUriin interfaceDistillationSpecOrBuilder- Returns:
- Whether the validationDatasetUri field is set.
-
getValidationDatasetUri
Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getValidationDatasetUriin interfaceDistillationSpecOrBuilder- Returns:
- The validationDatasetUri.
-
getValidationDatasetUriBytes
public com.google.protobuf.ByteString getValidationDatasetUriBytes()Optional. Cloud Storage path to file containing validation dataset for tuning. The dataset must be formatted as a JSONL file.
optional string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getValidationDatasetUriBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for validationDatasetUri.
-
hasHyperParameters
public boolean hasHyperParameters()Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasHyperParametersin interfaceDistillationSpecOrBuilder- Returns:
- Whether the hyperParameters field is set.
-
getHyperParameters
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHyperParametersin interfaceDistillationSpecOrBuilder- Returns:
- The hyperParameters.
-
getHyperParametersOrBuilder
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getHyperParametersOrBuilderin interfaceDistillationSpecOrBuilder
-
getStudentModel
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;- Specified by:
getStudentModelin interfaceDistillationSpecOrBuilder- Returns:
- The studentModel.
-
getStudentModelBytes
public com.google.protobuf.ByteString getStudentModelBytes()The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;- Specified by:
getStudentModelBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for studentModel.
-
getPipelineRootDirectory
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.
string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPipelineRootDirectoryin interfaceDistillationSpecOrBuilder- Returns:
- The pipelineRootDirectory.
-
getPipelineRootDirectoryBytes
public com.google.protobuf.ByteString getPipelineRootDirectoryBytes()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.
string pipeline_root_directory = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPipelineRootDirectoryBytesin interfaceDistillationSpecOrBuilder- Returns:
- The bytes for pipelineRootDirectory.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static DistillationSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistillationSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistillationSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistillationSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistillationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static DistillationSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static DistillationSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static DistillationSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static DistillationSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static DistillationSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected DistillationSpec.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-