theislab / scarches

Reference mapping for single-cell genomics
https://docs.scarches.org/en/latest/
BSD 3-Clause "New" or "Revised" License
323 stars 50 forks source link

Specify the number of cores #237

Open tvegawaichman opened 1 month ago

tvegawaichman commented 1 month ago

Hello! I'm running scPoli and scANVI, and I'm getting this warning:

The 'train_dataloader' does not have many workers which may be a bottleneck. Consider increasing the value of the `num_workers` argument` to `num_workers=9` in the `DataLoader` to improve performance.

Is there an easy way to specify the num_workers?

Thanks!