wallaroo.deployment_config
Inherited Members
- builtins.dict
- get
- setdefault
- pop
- popitem
- keys
- items
- values
- update
- fromkeys
- clear
- copy
Configures the minimum and maximum for autoscaling
Sets the average CPU metric to scale on in a percentage
Sets the number of GPUs to be used for the model's sidekick container. Only affects image-based models (e.g. MLFlow models) in a deployment.
Parameters
- ModelVersion model_version: The sidekick model to configure.
- int core_count: Number of GPUs to use in this sidekick.
Returns
This DeploymentConfigBuilder instance for chaining.
Sets the number of CPUs to be used for the model's sidekick container. Only affects image-based models (e.g. MLFlow models) in a deployment.
Parameters
- ModelVersion model_version: The sidekick model to configure.
- int core_count: Number of CPU cores to use in this sidekick.
Returns
This DeploymentConfigBuilder instance for chaining.
Sets the memory to be used for the model's sidekick container. Only affects image-based models (e.g. MLFlow models) in a deployment.
Parameters
- ModelVersion model_version: The sidekick model to configure.
- str memory_spec: Specification of amount of memory (e.g., "2Gi", "500Mi") to use in this sidekick.
Returns
This DeploymentConfigBuilder instance for chaining.
Sets the environment variables to be set for the model's sidekick container. Only affects image-based models (e.g. MLFlow models) in a deployment.
Parameters
- ModelVersion model_version: The sidekick model to configure.
- Dict[str, str] environment: Dictionary of environment variables names and their corresponding values to be set in the sidekick container.
Returns
This DeploymentConfigBuilder instance for chaining.
Sets the machine architecture for the model's sidekick container. Only affects image-based models (e.g. MLFlow models) in a deployment.
Parameters
- model_version: ModelVersion: The sidekick model to configure.
- arch: Optional[Architecture]: Machine architecture for this sidekick.
Returns
This DeploymentConfigBuilder instance for chaining.
Sets the acceleration option for the model's sidekick container. Only affects image-based models (e.g. MLFlow models) in a deployment.
Parameters
- model_version: ModelVersion: The sidekick model to configure.
- accel: Optional[Acceleration]: Acceleration option for this sidekick.
Returns
This DeploymentConfigBuilder instance for chaining.