Class ModelConfig (1.122.0)

ModelConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The model config to use for the deployment.

Attributes

Name Description
accept_eula bool
Optional. Whether the user accepts the End User License Agreement (EULA) for the model.
hugging_face_access_token str
Optional. The Hugging Face read access token used to access the model artifacts of gated models.
hugging_face_cache_enabled bool
Optional. If true, the model will deploy with a cached version instead of directly downloading the model artifacts from Hugging Face. This is suitable for VPC-SC users with limited internet access.
model_display_name str
Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.
container_spec google.cloud.aiplatform_v1.types.ModelContainerSpec
Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.
model_user_id str
Optional. The ID to use for the uploaded Model, which will become the final component of the model resource name. When not provided, Vertex AI will generate a value for this ID. When Model Registry model is provided, this field will be ignored. This value may be up to 63 characters, and valid characters are [a-z0-9_-]. The first character cannot be a number or hyphen.

Methods

ModelConfig

ModelConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The model config to use for the deployment.