We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 732797e commit df531d2Copy full SHA for df531d2
src/transformers/modeling_utils.py
@@ -2945,7 +2945,8 @@ def save_pretrained(
2945
for key, value in state_dict.items():
2946
if hasattr(value, "_local_tensor"):
2947
gathered_state_dict[key] = value.to_local()
2948
- gathered_state_dict[key] = value
+ else:
2949
+ gathered_state_dict[key] = value
2950
2951
del state_dict
2952
state_dict = gathered_state_dict
0 commit comments