Skip to content

hsml.resources #

Resources #

Resource configuration for a predictor or transformer.

PARAMETER DESCRIPTION
cores

Number of CPUs.

TYPE: int

memory

Memory (MB) resources.

TYPE: int

gpus

Number of GPUs.

TYPE: int

cores property writable #

Number of CPUs to be allocated per instance.

memory property writable #

Memory resources to be allocated per instance.

gpus property writable #

Number of GPUs to be allocated per instance.

describe #

describe()

Print a JSON description of the resource configuration.

ComponentResources #

Bases: ABC

Resource configuration for a predictor or transformer.

PARAMETER DESCRIPTION
num_instances

Deprecated. Use scaling configuration instead.

TYPE: int | None DEFAULT: None

requests

Minimum resources to allocate for a deployment

TYPE: Resources | dict | Default | None DEFAULT: None

limits

Maximum resources to allocate for a deployment

TYPE: Resources | dict | Default | None DEFAULT: None

num_instances property writable #

Number of instances.

requests property writable #

Minimum resources to allocate.

limits property writable #

Maximum resources to allocate.

describe #

describe()

Print a JSON description of the resource configuration.

PredictorResources #

TransformerResources #