Skip to content

Commit 9a04389

Browse files
committed
handle fsdp_version properly
1 parent 0105924 commit 9a04389

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/training_args.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2742,7 +2742,7 @@ def _process_fsdp_args(self):
27422742
fsdp_plugin_args["transformer_cls_names_to_wrap"] = ",".join(
27432743
self.fsdp_config["transformer_layer_cls_to_wrap"]
27442744
)
2745-
fsdp_plugin_args["fsdp_version"] = self.fsdp_config.get("fsdp_version", 1)
2745+
fsdp_plugin_args["version"] = self.fsdp_config.get("version", 1)
27462746
prefetch_policy = self.fsdp_config.get("backward_prefetch", "NO_PREFETCH")
27472747
fsdp_plugin_args["backward_prefetch"] = prefetch_policy.upper()
27482748
fsdp_plugin_args["forward_prefetch"] = str_to_bool(str(self.fsdp_config.get("forward_prefetch", "false")).lower())

0 commit comments

Comments
 (0)