You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Integration with Vertex AI Multimodal Datasets: Update train_dataset and validation_dataset in sft.train() docstring to include the Vertex Multimodal Dataset as a dataset source option.
Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1/types/tuning_job.py
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -529,13 +529,9 @@ class SupervisedTuningSpec(proto.Message):
529
529
530
530
Attributes:
531
531
training_dataset_uri (str):
532
-
Required. Cloud Storage path to file
533
-
containing training dataset for tuning. The
534
-
dataset must be formatted as a JSONL file.
532
+
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.
535
533
validation_dataset_uri (str):
536
-
Optional. Cloud Storage path to file
537
-
containing validation dataset for tuning. The
538
-
dataset must be formatted as a JSONL file.
534
+
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.
Copy file name to clipboardExpand all lines: google/cloud/aiplatform_v1beta1/types/tuning_job.py
+2-7Lines changed: 2 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -764,14 +764,9 @@ class SupervisedTuningSpec(proto.Message):
764
764
765
765
Attributes:
766
766
training_dataset_uri (str):
767
-
Required. Cloud Storage path to file
768
-
containing training dataset for tuning. The
769
-
dataset must be formatted as a JSONL file.
767
+
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.
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.a1.types.SupervisedHyperParameters):
Copy file name to clipboardExpand all lines: vertexai/tuning/_supervised_tuning.py
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -38,10 +38,8 @@ def train(
38
38
39
39
Args:
40
40
source_model (str): Model name for tuning, e.g., "gemini-1.0-pro-002".
41
-
train_dataset: Cloud Storage path to file containing training dataset for
42
-
tuning. The dataset should be in JSONL format.
43
-
validation_dataset: Cloud Storage path to file containing validation
44
-
dataset for tuning. The dataset should be in JSONL format.
41
+
train_dataset: 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.
42
+
validation_dataset: 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.
45
43
tuned_model_display_name: The display name of the
46
44
[TunedModel][google.cloud.aiplatform.v1.Model]. The name can be up to
47
45
128 characters long and can consist of any UTF-8 characters.
0 commit comments