Make lightning reproducible
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/661 X-link: https://github.com/fairinternal/detectron2/pull/603 X-link: https://github.com/facebookresearch/detectron2/pull/5273 In this diff we make changes to ensure we can control reproducibility in d2go: - update setup.py to enforce deterministic performance if set via config - set lightning parameters if deterministic is passed: ``` { "sync_batchnorm": True, "deterministic": True, "replace_sampler_ddp": False, } ``` - allow passing prefetch_factor, pin_memory, persistent_memory as args to batch dataloader. - minor fix in training sampler Differential Revision: D55767128 fbshipit-source-id: eeab50c95969a91c58f1773473b6fc666494cc16
Showing
Please register or sign in to comment