Skip to content

Commit

Permalink
Fix type annotation for deepspeed training arg (huggingface#24988)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgugger authored and blbadger committed Nov 8, 2023
1 parent 0766e66 commit b93c8bb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/transformers/training_args.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,6 +1001,7 @@ class TrainingArguments:
)
},
)
# Do not touch this type annotation or it will stop working in CLI
fsdp_config: Optional[str] = field(
default=None,
metadata={
Expand All @@ -1019,7 +1020,8 @@ class TrainingArguments:
)
},
)
deepspeed: Optional[Union[str, Dict]] = field(
# Do not touch this type annotation or it will stop working in CLI
deepspeed: Optional[str] = field(
default=None,
metadata={
"help": (
Expand Down

0 comments on commit b93c8bb

Please sign in to comment.