turn off interleaving if only saving on rank0
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/482 We should avoid using interleaving during save if we are calling save on one process: ``` if comm.is_main_process(): save() ``` this is because interleave calls comm.synchronize() so will just wait indefinitely. This diff updates the FSDP checkpointer to use save(interleave=False) when running on one process. Reviewed By: wat3rBro, YanjunChen329 Differential Revision: D43526328 fbshipit-source-id: 672993a87af627aca090384b0c218798bd42fcde
Showing
Please register or sign in to comment