Google Cloud Ai Platform V1 Client - Class ModelConfig (1.32.1)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ModelConfig.

The model config to use for the deployment.

Generated from protobuf message google.cloud.aiplatform.v1.DeployRequest.ModelConfig

Namespace

Google \ Cloud \ AIPlatform \ V1 \ DeployRequest

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ accept_eula
bool

Optional. Whether the user accepts the End User License Agreement (EULA) for the model.

↳ hugging_face_access_token
string

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
string

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\ModelContainerSpec

Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.

getAcceptEula

Optional. Whether the user accepts the End User License Agreement (EULA) for the model.

Returns
Type
Description
bool

setAcceptEula

Optional. Whether the user accepts the End User License Agreement (EULA) for the model.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getHuggingFaceAccessToken

Optional. The Hugging Face read access token used to access the model artifacts of gated models.

Returns
Type
Description
string

setHuggingFaceAccessToken

Optional. The Hugging Face read access token used to access the model artifacts of gated models.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getHuggingFaceCacheEnabled

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.

Returns
Type
Description
bool

setHuggingFaceCacheEnabled

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.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getModelDisplayName

Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.

Returns
Type
Description
string

setModelDisplayName

Optional. The user-specified display name of the uploaded model. If not set, a default name will be used.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getContainerSpec

Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.

Returns
Type
Description

hasContainerSpec

clearContainerSpec

setContainerSpec

Optional. The specification of the container that is to be used when deploying. If not set, the default container spec will be used.

Parameter
Name
Description
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: