Skip to content

Commit

Permalink
Add default value to "checkpoint_folder" in "load_state_dict" of bf16…
Browse files Browse the repository at this point in the history
…_optimizer (#6446)

Add default value `checkpoint_folder=None` for compatibility.

Co-authored-by: Olatunji Ruwase <[email protected]>
  • Loading branch information
ljcc0930 and tjruwase authored Sep 4, 2024
1 parent 5d1a30c commit ddd3571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deepspeed/runtime/bf16_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def refresh_fp32_params(self):

def load_state_dict(self,
state_dict_list,
checkpoint_folder,
checkpoint_folder=None,
load_optimizer_states=True,
load_from_fp32_weights=False,
load_serial=None,
Expand Down

0 comments on commit ddd3571

Please sign in to comment.