Class ModelConfig (1.88.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_v1beta1.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.

Methods

ModelConfig

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

The model config to use for the deployment.