Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 14, 2024
1 parent 2e907bd commit f44d667
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lightning/fabric/strategies/model_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def _load_raw_module_state(state_dict: Dict[str, Any], module: Module, world_siz

state_dict_options = StateDictOptions(broadcast_from_rank0=True, full_state_dict=True)
set_model_state_dict(module, state_dict, options=state_dict_options)

elif isinstance(module, FSDP):
with _get_full_state_dict_context(module, world_size=world_size, rank0_only=False):
module.load_state_dict(state_dict, strict=strict)
Expand Down

0 comments on commit f44d667

Please sign in to comment.