Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[fsdp] Bring back flatten parameters. (#4403)
Browse files Browse the repository at this point in the history
* [fsdp] Bring back flatten parameters.

* Sigh
  • Loading branch information
stephenroller authored Mar 15, 2022
1 parent 380d619 commit 782d602
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parlai/utils/fsdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def maybe_fsdp_wrap(opt):
mixed_precision=mixed_precision,
compute_dtype=compute_dtype,
state_dict_device=torch.device('cpu'),
flatten_parameters=False,
flatten_parameters=True,
process_group=get_dist_group(),
)
with fairscale_enable_wrap(wrapper_cls=FSDP, **fsdp_args):
Expand Down

0 comments on commit 782d602

Please sign in to comment.