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
OpenDAS
OpenFold
Commits
cd5a1e13
Commit
cd5a1e13
authored
Nov 02, 2021
by
Marta
Browse files
dont try to use ddp for single-gpu single-node training
parent
35449bf1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
train_openfold.py
train_openfold.py
+3
-1
No files found.
train_openfold.py
View file @
cd5a1e13
...
@@ -159,8 +159,10 @@ def main(args):
...
@@ -159,8 +159,10 @@ def main(args):
if
(
args
.
deepspeed_config_path
is
not
None
):
if
(
args
.
deepspeed_config_path
is
not
None
):
strategy
=
DeepSpeedPlugin
(
config
=
args
.
deepspeed_config_path
)
strategy
=
DeepSpeedPlugin
(
config
=
args
.
deepspeed_config_path
)
el
se
:
el
if
args
.
gpus
>
1
or
args
.
num_nodes
>
1
:
strategy
=
"ddp"
strategy
=
"ddp"
else
:
strategy
=
None
trainer
=
pl
.
Trainer
.
from_argparse_args
(
trainer
=
pl
.
Trainer
.
from_argparse_args
(
args
,
args
,
...
...
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