Skip to content

Commit

Permalink
revert part of #1220 (#1221)
Browse files Browse the repository at this point in the history
#1220 fixed the leak, but lead to another problem. reverting that part so that we could do release and will work on it after the release.

@jeffra
  • Loading branch information
stas00 authored Jul 12, 2021
1 parent 2660cc4 commit bc451c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -2045,7 +2045,7 @@ def get_layer_state_dict(module, prefix=""):
# gather one layer at a time to be memory-efficient
with deepspeed.zero.GatheredParameters(list(
module.parameters(recurse=False)),
modifier_rank=0):
modifier_rank=None):
if torch.distributed.get_rank() == 0:
for name, param in module.named_parameters(recurse=False):
if param is None:
Expand Down

0 comments on commit bc451c0

Please sign in to comment.