Skip to content

Commit

Permalink
add api to load global state to BF16 optimizer for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tohtana committed Mar 19, 2024
1 parent 13effa1 commit 101e90c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deepspeed/runtime/bf16_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,9 @@ def _load_legacy_checkpoint(self, state_dict_list, load_optimizer_states=True, l
def _load_universal_checkpoint(self, checkpoint_folder, load_optimizer_states, load_from_fp32_weights):
load_hp_checkpoint_state_from_checkpoint_dir(self, "bf16_groups", checkpoint_folder)

def _load_global_state(self, sd):
pass

@property
def param_groups(self):
"""Forward the wrapped optimizer's parameters."""
Expand Down

0 comments on commit 101e90c

Please sign in to comment.