Skip to content

Commit

Permalink
style III
Browse files Browse the repository at this point in the history
  • Loading branch information
milocress authored Dec 17, 2024
1 parent 42c715a commit 4301ceb
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 @@ -619,8 +619,7 @@ def tensor_hook(

hooks = []
for _, module in state_dict_model.named_modules():
hooks.append(
module._register_state_dict_hook(tensor_hook),)
hooks.append(module._register_state_dict_hook(tensor_hook),)

state_dict = get_model_state_dict(
state_dict_model,
Expand Down

0 comments on commit 4301ceb

Please sign in to comment.