Skip to content

Commit

Permalink
Merge pull request microsoft#2 from EleutherAI/Stella
Browse files Browse the repository at this point in the history
Stella
  • Loading branch information
StellaAthena committed Jan 24, 2021
2 parents ef8d702 + c33b239 commit f42184b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions deepspeed/runtime/pipe/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,5 @@ def _is_checkpointable(self, funcs):
if self.__class__.__name__ == 'GPT2ModelPipe':
return all('ParallelTransformerLayerPipe' in f.__class__.__name__
for f in funcs)

params = [f.parameters() for f in funcs if isinstance(f, torch.nn.Module)]
return any(len(list(p)) > 0 for p in params)
return all('TransformerBlock' in f.__class__.__name__
for f in funcs)

0 comments on commit f42184b

Please sign in to comment.