Skip to content

Commit

Permalink
rename reference state dicts
Browse files Browse the repository at this point in the history
  • Loading branch information
eddogola committed Jul 12, 2023
1 parent 11b2c49 commit 0998efa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/local_test_checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def run_worker(args: List[str | int]) -> None:

# Take an optimization step
optimizer.step()
submod_ref = deepcopy(stage.submod.state_dict())
optim_ref = deepcopy(optimizer.state_dict())
ref_state_dict = deepcopy(stage.submod.state_dict())
ref_optim_state_dict = deepcopy(optimizer.state_dict())
save_checkpoint(stage, CKPT_DIR, optimizer)

# save index file in rank 0
Expand Down

0 comments on commit 0998efa

Please sign in to comment.