public final class DistillationSpec extends com.google.protobuf.GeneratedMessageV3 implements DistillationSpecOrBuilder
Tuning Spec for Distillation.Protobuf type
google.cloud.aiplatform.v1beta1.DistillationSpec| Modifier and Type | Class and Description |
|---|---|
static class |
DistillationSpec.Builder
Tuning Spec for Distillation.
|
static class |
DistillationSpec.TeacherModelCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
BASE_TEACHER_MODEL_FIELD_NUMBER |
static int |
HYPER_PARAMETERS_FIELD_NUMBER |
static int |
PIPELINE_ROOT_DIRECTORY_FIELD_NUMBER |
static int |
STUDENT_MODEL_FIELD_NUMBER |
static int |
TRAINING_DATASET_URI_FIELD_NUMBER |
static int |
TUNED_TEACHER_MODEL_SOURCE_FIELD_NUMBER |
static int |
VALIDATION_DATASET_URI_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getBaseTeacherModel()
The base teacher model that is being distilled, e.g.,
"gemini-1.0-pro-002".
|
com.google.protobuf.ByteString |
getBaseTeacherModelBytes()
The base teacher model that is being distilled, e.g.,
"gemini-1.0-pro-002".
|
static DistillationSpec |
getDefaultInstance() |
DistillationSpec |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DistillationHyperParameters |
getHyperParameters()
Optional.
|
DistillationHyperParametersOrBuilder |
getHyperParametersOrBuilder()
Optional.
|
com.google.protobuf.Parser<DistillationSpec> |
getParserForType() |
String |
getPipelineRootDirectory()
Required.
|
com.google.protobuf.ByteString |
getPipelineRootDirectoryBytes()
Required.
|
int |
getSerializedSize() |
String |
getStudentModel()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
|
com.google.protobuf.ByteString |
getStudentModelBytes()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
|
DistillationSpec.TeacherModelCase |
getTeacherModelCase() |
String |
getTrainingDatasetUri()
Required.
|
com.google.protobuf.ByteString |
getTrainingDatasetUriBytes()
Required.
|
String |
getTunedTeacherModelSource()
The resource name of the Tuned teacher model.
|
com.google.protobuf.ByteString |
getTunedTeacherModelSourceBytes()
The resource name of the Tuned teacher model.
|
String |
getValidationDatasetUri()
Optional.
|
com.google.protobuf.ByteString |
getValidationDatasetUriBytes()
Optional.
|
boolean |
hasBaseTeacherModel()
The base teacher model that is being distilled, e.g.,
"gemini-1.0-pro-002".
|
int |
hashCode() |
boolean |
hasHyperParameters()
Optional.
|
boolean |
hasTunedTeacherModelSource()
The resource name of the Tuned teacher model.
|
boolean |
hasValidationDatasetUri()
Optional.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static DistillationSpec.Builder |
newBuilder() |
static DistillationSpec.Builder |
newBuilder(DistillationSpec prototype) |
DistillationSpec.Builder |
newBuilderForType() |
protected DistillationSpec.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static DistillationSpec |
parseDelimitedFrom(InputStream input) |
static DistillationSpec |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistillationSpec |
parseFrom(byte[] data) |
static DistillationSpec |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistillationSpec |
parseFrom(ByteBuffer data) |
static DistillationSpec |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistillationSpec |
parseFrom(com.google.protobuf.ByteString data) |
static DistillationSpec |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistillationSpec |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DistillationSpec |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DistillationSpec |
parseFrom(InputStream input) |
static DistillationSpec |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DistillationSpec> |
parser() |
DistillationSpec.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int BASE_TEACHER_MODEL_FIELD_NUMBER
public static final int TUNED_TEACHER_MODEL_SOURCE_FIELD_NUMBER
public static final int TRAINING_DATASET_URI_FIELD_NUMBER
public static final int VALIDATION_DATASET_URI_FIELD_NUMBER
public static final int HYPER_PARAMETERS_FIELD_NUMBER
public static final int STUDENT_MODEL_FIELD_NUMBER
public static final int PIPELINE_ROOT_DIRECTORY_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public DistillationSpec.TeacherModelCase getTeacherModelCase()
getTeacherModelCase in interface DistillationSpecOrBuilderpublic boolean hasBaseTeacherModel()
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002".
string base_teacher_model = 5;hasBaseTeacherModel in interface DistillationSpecOrBuilderpublic String getBaseTeacherModel()
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002".
string base_teacher_model = 5;getBaseTeacherModel in interface DistillationSpecOrBuilderpublic com.google.protobuf.ByteString getBaseTeacherModelBytes()
The base teacher model that is being distilled, e.g., "gemini-1.0-pro-002".
string base_teacher_model = 5;getBaseTeacherModelBytes in interface DistillationSpecOrBuilderpublic 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) = { ... }hasTunedTeacherModelSource in interface DistillationSpecOrBuilderpublic String 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) = { ... }getTunedTeacherModelSource in interface DistillationSpecOrBuilderpublic 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) = { ... }getTunedTeacherModelSourceBytes in interface DistillationSpecOrBuilderpublic String 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];getTrainingDatasetUri in interface DistillationSpecOrBuilderpublic 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];getTrainingDatasetUriBytes in interface DistillationSpecOrBuilderpublic 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];
hasValidationDatasetUri in interface DistillationSpecOrBuilderpublic String 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];
getValidationDatasetUri in interface DistillationSpecOrBuilderpublic 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];
getValidationDatasetUriBytes in interface DistillationSpecOrBuilderpublic boolean hasHyperParameters()
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
hasHyperParameters in interface DistillationSpecOrBuilderpublic DistillationHyperParameters getHyperParameters()
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
getHyperParameters in interface DistillationSpecOrBuilderpublic DistillationHyperParametersOrBuilder getHyperParametersOrBuilder()
Optional. Hyperparameters for Distillation.
.google.cloud.aiplatform.v1beta1.DistillationHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
getHyperParametersOrBuilder in interface DistillationSpecOrBuilderpublic String getStudentModel()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;getStudentModel in interface DistillationSpecOrBuilderpublic com.google.protobuf.ByteString getStudentModelBytes()
The student model that is being tuned, e.g., "google/gemma-2b-1.1-it".
string student_model = 4;getStudentModelBytes in interface DistillationSpecOrBuilderpublic String 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];getPipelineRootDirectory in interface DistillationSpecOrBuilderpublic 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];getPipelineRootDirectoryBytes in interface DistillationSpecOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static DistillationSpec parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistillationSpec parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistillationSpec parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistillationSpec parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistillationSpec parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistillationSpec parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DistillationSpec parseFrom(InputStream input) throws IOException
IOExceptionpublic static DistillationSpec parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DistillationSpec parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DistillationSpec parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DistillationSpec parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DistillationSpec parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DistillationSpec.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DistillationSpec.Builder newBuilder()
public static DistillationSpec.Builder newBuilder(DistillationSpec prototype)
public DistillationSpec.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DistillationSpec.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DistillationSpec getDefaultInstance()
public static com.google.protobuf.Parser<DistillationSpec> parser()
public com.google.protobuf.Parser<DistillationSpec> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DistillationSpec getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2024 Google LLC. All rights reserved.