"docs/source/vscode:/vscode.git/clone" did not exist on "9fea71b465008201404c77b5c6733116f2eea278"
Unverified Commit a6484c89 authored by Sylvain Gugger's avatar Sylvain Gugger Committed by GitHub
Browse files

Fix type annotation for deepspeed training arg (#24988)

parent 5b7ffd54
...@@ -1001,6 +1001,7 @@ class TrainingArguments: ...@@ -1001,6 +1001,7 @@ class TrainingArguments:
) )
}, },
) )
# Do not touch this type annotation or it will stop working in CLI
fsdp_config: Optional[str] = field( fsdp_config: Optional[str] = field(
default=None, default=None,
metadata={ metadata={
...@@ -1019,7 +1020,8 @@ class TrainingArguments: ...@@ -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, default=None,
metadata={ metadata={
"help": ( "help": (
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment