Skip to content

Commit

Permalink
more prints
Browse files Browse the repository at this point in the history
  • Loading branch information
ez2rok committed Sep 5, 2024
1 parent 46dda73 commit db1431d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer/utils/checkpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ def _save_checkpoint(
ignore_keys(state_dict)
# Ensure state exists
state_dict['state'] = state_dict.get('state', {})
ic('see')

if state.fsdp_sharded_state_dict_enabled and not weights_only:
# Only rank 0 saves RNG
if dist.get_global_rank() > 0:
Expand Down
2 changes: 1 addition & 1 deletion composer/utils/dist.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ def all_gather_object(obj: TObj, group=None) -> list[TObj]:
all_gather_object_list_hpu(obj_gather_list, obj, group=group)
else:
ic('before all_gather_object')
ic(obj_gather_list, obj, group)
ic(obj_gather_list, obj.keys(), group)
dist.all_gather_object(obj_gather_list, obj, group=group)
ic('after all_gather_object')
# torch.distributed will replace the None's in obj_gather_list with the gathered objects on rank 0
Expand Down

0 comments on commit db1431d

Please sign in to comment.