Commit ea142a0a authored by Jennifer's avatar Jennifer
Browse files

fixes deepspeed function definition.

parent 1ae833bf
...@@ -306,7 +306,7 @@ def main(args): ...@@ -306,7 +306,7 @@ def main(args):
if args.resume_model_weights_only: if args.resume_model_weights_only:
# Load the checkpoint # Load the checkpoint
if os.path.isdir(args.resume_from_ckpt): if os.path.isdir(args.resume_from_ckpt):
sd = get_fp32_state_dict_from_zero_checkpoint( sd = zero_to_fp32.get_fp32_state_dict_from_zero_checkpoint(
args.resume_from_ckpt) args.resume_from_ckpt)
else: else:
sd = torch.load(args.resume_from_ckpt) sd = torch.load(args.resume_from_ckpt)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment