Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hanwen-sun committed Sep 22, 2024
1 parent effe7c1 commit 3b948c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions torchacc/utils/optim_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def get_layer_full_info(shard_metadata, model_state_dict):
if name != 'model':
break
else:
n = n + 1
name_splits = name_splits[n:]
model_num = model_num + 1
name_splits = name_splits[model_num:]
name = ".".join(name_splits)

for idx, sep in enumerate(name_splits):
Expand Down

0 comments on commit 3b948c5

Please sign in to comment.