Skip to content

Commit

Permalink
style II
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress authored Dec 17, 2024
1 parent 44e609e commit 42c715a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llmfoundry/callbacks/hf_checkpointer.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,8 +620,7 @@ def tensor_hook(
hooks = []
for _, module in state_dict_model.named_modules():
hooks.append(
module._register_state_dict_hook(tensor_hook),
)
module._register_state_dict_hook(tensor_hook),)

state_dict = get_model_state_dict(
state_dict_model,
Expand Down

0 comments on commit 42c715a

Please sign in to comment.