Skip to content

Config

ParallelConfig dataclass

Configuration for parallel computation backend.

PARAMETER DESCRIPTION
backend

Type of backend to use. Defaults to 'joblib'

TYPE: Literal['joblib', 'ray'] DEFAULT: 'joblib'

address

Address of existing remote or local cluster to use.

TYPE: Optional[Union[str, Tuple[str, int]]] DEFAULT: None

n_cpus_local

Number of CPUs to use when creating a local ray cluster. This has no effect when using an existing ray cluster.

TYPE: Optional[int] DEFAULT: None

logging_level

Logging level for the parallel backend's worker.

TYPE: Optional[int] DEFAULT: None

wait_timeout

Timeout in seconds for waiting on futures.

TYPE: float DEFAULT: 1.0