public final class SupervisedTuningSpec extends GeneratedMessage implements SupervisedTuningSpecOrBuilder
Tuning Spec for Supervised Tuning for first party models.
Protobuf type google.cloud.aiplatform.v1beta1.SupervisedTuningSpec
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
public static final int EVALUATION_CONFIG_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int EXPORT_LAST_CHECKPOINT_ONLY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int HYPER_PARAMETERS_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TRAINING_DATASET_URI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TUNING_MODE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int VALIDATION_DATASET_URI_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
public static SupervisedTuningSpec getDefaultInstance()
public static final Descriptors.Descriptor getDescriptor()
public static SupervisedTuningSpec.Builder newBuilder()
public static SupervisedTuningSpec.Builder newBuilder(SupervisedTuningSpec prototype)
public static SupervisedTuningSpec parseDelimitedFrom(InputStream input)
public static SupervisedTuningSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SupervisedTuningSpec parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
public static SupervisedTuningSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SupervisedTuningSpec parseFrom(ByteString data)
public static SupervisedTuningSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SupervisedTuningSpec parseFrom(CodedInputStream input)
public static SupervisedTuningSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SupervisedTuningSpec parseFrom(InputStream input)
public static SupervisedTuningSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SupervisedTuningSpec parseFrom(ByteBuffer data)
public static SupervisedTuningSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Parser<SupervisedTuningSpec> parser()
Methods
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
public SupervisedTuningSpec getDefaultInstanceForType()
public EvaluationConfig getEvaluationConfig()
Optional. Evaluation Config for Tuning Job.
.google.cloud.aiplatform.v1beta1.EvaluationConfig evaluation_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public EvaluationConfigOrBuilder getEvaluationConfigOrBuilder()
Optional. Evaluation Config for Tuning Job.
.google.cloud.aiplatform.v1beta1.EvaluationConfig evaluation_config = 5 [(.google.api.field_behavior) = OPTIONAL];
public boolean getExportLastCheckpointOnly()
Optional. If set to true, disable intermediate checkpoints for SFT and only
the last checkpoint will be exported. Otherwise, enable intermediate
checkpoints for SFT. Default is false.
bool export_last_checkpoint_only = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
The exportLastCheckpointOnly.
|
public SupervisedHyperParameters getHyperParameters()
Optional. Hyperparameters for SFT.
.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public SupervisedHyperParametersOrBuilder getHyperParametersOrBuilder()
Optional. Hyperparameters for SFT.
.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
public Parser<SupervisedTuningSpec> getParserForType()
Overrides
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public String getTrainingDatasetUri()
Required. Training dataset used for tuning. The dataset can be specified as
either a Cloud Storage path to a JSONL file or as the resource name of a
Vertex Multimodal Dataset.
string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
String |
The trainingDatasetUri.
|
public ByteString getTrainingDatasetUriBytes()
Required. Training dataset used for tuning. The dataset can be specified as
either a Cloud Storage path to a JSONL file or as the resource name of a
Vertex Multimodal Dataset.
string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns |
| Type |
Description |
ByteString |
The bytes for trainingDatasetUri.
|
public SupervisedTuningSpec.TuningMode getTuningMode()
Tuning mode.
.google.cloud.aiplatform.v1beta1.SupervisedTuningSpec.TuningMode tuning_mode = 7;
public int getTuningModeValue()
Tuning mode.
.google.cloud.aiplatform.v1beta1.SupervisedTuningSpec.TuningMode tuning_mode = 7;
| Returns |
| Type |
Description |
int |
The enum numeric value on the wire for tuningMode.
|
public String getValidationDatasetUri()
Optional. Validation dataset used for tuning. The dataset can be specified
as either a Cloud Storage path to a JSONL file or as the resource name of a
Vertex Multimodal Dataset.
string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The validationDatasetUri.
|
public ByteString getValidationDatasetUriBytes()
Optional. Validation dataset used for tuning. The dataset can be specified
as either a Cloud Storage path to a JSONL file or as the resource name of a
Vertex Multimodal Dataset.
string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for validationDatasetUri.
|
public boolean hasEvaluationConfig()
Optional. Evaluation Config for Tuning Job.
.google.cloud.aiplatform.v1beta1.EvaluationConfig evaluation_config = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the evaluationConfig field is set.
|
public boolean hasHyperParameters()
Optional. Hyperparameters for SFT.
.google.cloud.aiplatform.v1beta1.SupervisedHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the hyperParameters field is set.
|
| Returns |
| Type |
Description |
int |
|
Overrides
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
public SupervisedTuningSpec.Builder newBuilderForType()
protected SupervisedTuningSpec.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
public SupervisedTuningSpec.Builder toBuilder()
public void writeTo(CodedOutputStream output)
Overrides