Skip to content

Commit 732797e

Browse files
committed
stuff
1 parent e1728fb commit 732797e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/modeling_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2944,7 +2944,7 @@ def save_pretrained(
29442944
gathered_state_dict = {}
29452945
for key, value in state_dict.items():
29462946
if hasattr(value, "_local_tensor"):
2947-
gathered_state_dict[key] = value.full_tensor()
2947+
gathered_state_dict[key] = value.to_local()
29482948
gathered_state_dict[key] = value
29492949

29502950
del state_dict

0 commit comments

Comments
 (0)