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
ec6058cd
Commit
ec6058cd
authored
Mar 29, 2024
by
Jennifer
Browse files
DNS: Local profiler changes
parent
2a4818a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
train_openfold.py
train_openfold.py
+4
-2
No files found.
train_openfold.py
View file @
ec6058cd
...
@@ -6,6 +6,7 @@ import json
...
@@ -6,6 +6,7 @@ import json
import
pytorch_lightning
as
pl
import
pytorch_lightning
as
pl
from
pytorch_lightning.callbacks.lr_monitor
import
LearningRateMonitor
from
pytorch_lightning.callbacks.lr_monitor
import
LearningRateMonitor
from
pytorch_lightning.callbacks
import
DeviceStatsMonitor
from
pytorch_lightning.callbacks.model_checkpoint
import
ModelCheckpoint
from
pytorch_lightning.callbacks.model_checkpoint
import
ModelCheckpoint
from
pytorch_lightning.loggers
import
WandbLogger
from
pytorch_lightning.loggers
import
WandbLogger
from
pytorch_lightning.plugins.training_type
import
DeepSpeedPlugin
,
DDPPlugin
from
pytorch_lightning.plugins.training_type
import
DeepSpeedPlugin
,
DDPPlugin
...
@@ -411,9 +412,10 @@ def main(args):
...
@@ -411,9 +412,10 @@ def main(args):
strategy
=
strategy
,
strategy
=
strategy
,
callbacks
=
callbacks
,
callbacks
=
callbacks
,
logger
=
loggers
,
logger
=
loggers
,
profiler
=
'simple'
,
)
)
if
(
args
.
resume_model_weights_only
):
if
(
args
.
resume_model_weights_only
):
ckpt_path
=
None
ckpt_path
=
None
else
:
else
:
ckpt_path
=
args
.
resume_from_ckpt
ckpt_path
=
args
.
resume_from_ckpt
...
...
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