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
Copy file name to clipboardExpand all lines: google/genai/types.py
+30-14Lines changed: 30 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -11217,11 +11217,17 @@ class PreferenceOptimizationSpecDict(TypedDict, total=False):
11217
11217
11218
11218
11219
11219
class DistillationHyperParameters(_common.BaseModel):
11220
-
"""Hyperparameters for Distillation.
11221
-
11222
-
This data type is not supported in Gemini API.
11223
-
"""
11220
+
"""Hyperparameters for distillation."""
11224
11221
11222
+
batch_size: Optional[int] = Field(
11223
+
default=None,
11224
+
description="""The batch size hyperparameter for tuning.
11225
+
This is only supported for OSS models in Vertex.""",
11226
+
)
11227
+
learning_rate: Optional[float] = Field(
11228
+
default=None,
11229
+
description="""The learning rate for tuning. OSS models only.""",
11230
+
)
11225
11231
adapter_size: Optional[AdapterSize] = Field(
11226
11232
default=None, description="""Optional. Adapter size for distillation."""
11227
11233
)
@@ -11236,10 +11242,14 @@ class DistillationHyperParameters(_common.BaseModel):
11236
11242
11237
11243
11238
11244
class DistillationHyperParametersDict(TypedDict, total=False):
11239
-
"""Hyperparameters for Distillation.
11245
+
"""Hyperparameters for distillation."""
11240
11246
11241
-
This data type is not supported in Gemini API.
11242
-
"""
11247
+
batch_size: Optional[int]
11248
+
"""The batch size hyperparameter for tuning.
11249
+
This is only supported for OSS models in Vertex."""
11250
+
11251
+
learning_rate: Optional[float]
11252
+
"""The learning rate for tuning. OSS models only."""
11243
11253
11244
11254
adapter_size: Optional[AdapterSize]
11245
11255
"""Optional. Adapter size for distillation."""
@@ -11263,14 +11273,17 @@ class DistillationSpec(_common.BaseModel):
11263
11273
default=None,
11264
11274
description="""The GCS URI of the prompt dataset to use during distillation.""",
11265
11275
)
11266
-
base_teacher_model: Optional[str] = Field(
11267
-
default=None,
11268
-
description="""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).""",
11276
+
tuning_mode: Optional[TuningMode] = Field(
11277
+
default=None, description="""Tuning mode for tuning."""
description="""Optional. Hyperparameters for Distillation.""",
11273
11282
)
11283
+
base_teacher_model: Optional[str] = Field(
11284
+
default=None,
11285
+
description="""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).""",
11286
+
)
11274
11287
pipeline_root_directory: Optional[str] = Field(
11275
11288
default=None,
11276
11289
description="""Deprecated. 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.""",
@@ -11299,12 +11312,15 @@ class DistillationSpecDict(TypedDict, total=False):
11299
11312
prompt_dataset_uri: Optional[str]
11300
11313
"""The GCS URI of the prompt dataset to use during distillation."""
11301
11314
11302
-
base_teacher_model: Optional[str]
11303
-
"""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)."""
"""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)."""
11323
+
11308
11324
pipeline_root_directory: Optional[str]
11309
11325
"""Deprecated. 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."""
11310
11326
@@ -13421,7 +13437,7 @@ class CreateTuningJobConfig(_common.BaseModel):
13421
13437
default=None, description="""Adapter size for tuning."""
13422
13438
)
13423
13439
tuning_mode: Optional[TuningMode] = Field(
13424
-
default=None, description="""Tuning mode for SFT tuning."""
13440
+
default=None, description="""Tuning mode for tuning."""
13425
13441
)
13426
13442
custom_base_model: Optional[str] = Field(
13427
13443
default=None,
@@ -13502,7 +13518,7 @@ class CreateTuningJobConfigDict(TypedDict, total=False):
13502
13518
"""Adapter size for tuning."""
13503
13519
13504
13520
tuning_mode: Optional[TuningMode]
13505
-
"""Tuning mode for SFT tuning."""
13521
+
"""Tuning mode for tuning."""
13506
13522
13507
13523
custom_base_model: Optional[str]
13508
13524
"""Custom base model for tuning. This is only supported for OSS models in Vertex."""
0 commit comments