Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
a6484c89
"docs/source/vscode:/vscode.git/clone" did not exist on "9fea71b465008201404c77b5c6733116f2eea278"
Unverified
Commit
a6484c89
authored
Jul 21, 2023
by
Sylvain Gugger
Committed by
GitHub
Jul 21, 2023
Browse files
Fix type annotation for deepspeed training arg (#24988)
parent
5b7ffd54
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/transformers/training_args.py
src/transformers/training_args.py
+3
-1
No files found.
src/transformers/training_args.py
View file @
a6484c89
...
@@ -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"
:
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment