Skip to content

Commit

Permalink
Update _init_utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lxg2015 authored and pytorchmergebot committed Sep 7, 2023
1 parent da255d7 commit 634f0c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/distributed/fsdp/_init_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@ def _init_param_handle_from_module(
managed_params = list(_get_orig_params(fully_sharded_module, state._ignored_params))
if sync_module_states:
_sync_module_params_and_buffers(
fully_sharded_module, managed_params, default_group
fully_sharded_module, managed_params, state.process_group
)
if hasattr(state, '_inter_node_pg'):
_sync_module_params_and_buffers(
Expand Down

0 comments on commit 634f0c1

Please sign in to comment.