Skip to content

Commit a6484c8

Browse files
authored
Fix type annotation for deepspeed training arg (#24988)
1 parent 5b7ffd5 commit a6484c8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/transformers/training_args.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,6 +1001,7 @@ class TrainingArguments:
10011001
)
10021002
},
10031003
)
1004+
# Do not touch this type annotation or it will stop working in CLI
10041005
fsdp_config: Optional[str] = field(
10051006
default=None,
10061007
metadata={
@@ -1019,7 +1020,8 @@ class TrainingArguments:
10191020
)
10201021
},
10211022
)
1022-
deepspeed: Optional[Union[str, Dict]] = field(
1023+
# Do not touch this type annotation or it will stop working in CLI
1024+
deepspeed: Optional[str] = field(
10231025
default=None,
10241026
metadata={
10251027
"help": (

0 commit comments

Comments
 (0)