Skip to content

Commit

Permalink
remove shortform (#1509)
Browse files Browse the repository at this point in the history
  • Loading branch information
Atticus1806 authored Mar 22, 2024
1 parent 870826b commit 85ce153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/torch_avg_checkpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def merge_checkpoints(in_ckpts: Sequence[str], out_ckpt: str, extra_state: Optio

# Average
for k in out_model_state:
out_model_state[k] /= out_model_state_num[k]
out_model_state[k] = out_model_state[k] / out_model_state_num[k]

if extra_state:
out_state.update(extra_state)
Expand Down

0 comments on commit 85ce153

Please sign in to comment.