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
Megatron-LM
Commits
9d4fd3d3
Commit
9d4fd3d3
authored
Sep 20, 2021
by
rprenger
Browse files
Fixing memory bug caused by DDP during task
parent
87023abd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tasks/zeroshot_gpt/evaluate.py
tasks/zeroshot_gpt/evaluate.py
+1
-1
No files found.
tasks/zeroshot_gpt/evaluate.py
View file @
9d4fd3d3
...
@@ -205,7 +205,7 @@ def main():
...
@@ -205,7 +205,7 @@ def main():
args
.
task
))
args
.
task
))
# Set up model and load checkpoint.
# Set up model and load checkpoint.
model
=
get_model
(
get_model_provider
(
eval_metric
))
model
=
get_model
(
get_model_provider
(
eval_metric
)
,
wrap_with_ddp
=
False
)
if
args
.
load
is
not
None
:
if
args
.
load
is
not
None
:
_
=
load_checkpoint
(
model
,
None
,
None
)
_
=
load_checkpoint
(
model
,
None
,
None
)
...
...
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