Skip to main content

UpdateDeploymentConfig

Below is the class definition for the Update Deployment Config. It inherits from the BaseModel defined in Pydantic.

class UpdateDeploymentConfig(BaseModel):
cooldown_time: PositiveInt | None = Field(default=None, )
custom_args: list[str] | None = Field(default=None)
hf_token: str | None = Field(default=None)
min_replicas: NonNegativeInt | None = Field(default=None)
max_replicas: PositiveInt | None = Field(default=None)
scale_up_threshold: PositiveInt | None = Field(default=None)
lorax_image_tag: str | None = Field(default=None)

The meaning of these fields is identical to those in DeploymentConfig.

The default value of all of these fields is None. However the intended use of this class is not to construct your own instance but rather to modify an existing deployment configuration returned by an SDK function, e.g pb.deployments.get. See Update Deployment for more information.