Skip to content

Commit 27a5452

Browse files
committed
format
Signed-off-by: HuiyingLi <[email protected]>
1 parent f1bd72f commit 27a5452

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

nemo_automodel/components/checkpoint/checkpointing.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -860,9 +860,7 @@ def _maybe_adapt_state_dict_to_hf(
860860
"""
861861
adapter = getattr(model_part, "state_dict_adapter", None)
862862
if adapter:
863-
return adapter.to_hf(
864-
state_dict, exclude_key_regex=r".*_extra_state.*", quantization=quantization, **kwargs
865-
)
863+
return adapter.to_hf(state_dict, exclude_key_regex=r".*_extra_state.*", quantization=quantization, **kwargs)
866864
return state_dict
867865

868866

0 commit comments

Comments
 (0)