espnet3.parallel.parallel.set_parallel
Less than 1 minute
espnet3.parallel.parallel.set_parallel
espnet3.parallel.parallel.set_parallel(config: DictConfig) β None
Set the global Dask cluster using the provided configuration.
- Parameters:config (DictConfig) β Configuration object with βenvβ and cluster options.
Example
>>> from omegaconf import OmegaConf
>>> config = OmegaConf.create({'env': 'local', 'n_workers': 2})
>>> set_parallel(config)