"examples/vscode:/vscode.git/clone" did not exist on "c42f6ee43e0408c5fe8a1d3dc3cdeb9eb3a02fa6"
expose use_orig_params to d2go config
Summary: Pull Request resolved: https://github.com/facebookresearch/d2go/pull/582 Expose use_orig_params for FSDP constructor to d2go config. Read more about it in the docstring of torch.distributed.fsdp.fully_sharded_data_parallel. use_orig_params=False (default) uses FlatParameters to store flattened parameters, which saves memory by avoiding fragmentation. However, use_orig_params=True is essential for models that are partly frozen. This is because FlatParameters can only accept uniform requries_grad across the whole model Reviewed By: wat3rBro Differential Revision: D46917757 fbshipit-source-id: 12ebe83e6de456e37d89eaf8b257f23925a6786d
Showing
Please register or sign in to comment