Skip to content

Commit

Permalink
Update composer/trainer/mosaic_fsdp.py
Browse files Browse the repository at this point in the history
Co-authored-by: Brian <[email protected]>
  • Loading branch information
bigning and b-chu authored Apr 3, 2024
1 parent 98d0f96 commit b8320b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion composer/trainer/mosaic_fsdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def patch_pytorch():
_state_dict_utils._set_use_dtensor = _set_use_dtensor

# Monkeypatch _flat_param.py to fix 2D with SHARD_GRAD_OP
# issue: https://github.com/pytorch/pytorch/issues/123272
# Issue: https://github.com/pytorch/pytorch/issues/123272
from torch.distributed.fsdp import _flat_param

from composer.trainer.mosaic_fsdp_utils import _same_storage
Expand Down

0 comments on commit b8320b9

Please sign in to comment.