Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix loading universal checkpoint for BF16_Optimizer
PR#5104 (Remove optimizer step on initialization) breaks loading universal checkpoint for BF16_Optimizer. This is since universal checkpoint attempts to load the optimizer states into lp._hp_mapping.optim_state dictionary before they are initialized (by step). As a workaround for loading universal checkpoint, perform step and init hp params optimizer's states before loading from universal checkpoint files. Signed-off-by: Moshe Island <[email protected]>
- Loading branch information