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
816fb890
Commit
816fb890
authored
Feb 17, 2021
by
Mostofa Patwary
Browse files
fixed a minor bug
parent
b2f57fc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/training.py
megatron/training.py
+1
-1
No files found.
megatron/training.py
View file @
816fb890
...
@@ -311,7 +311,7 @@ def setup_model_and_optimizer(model_provider_func):
...
@@ -311,7 +311,7 @@ def setup_model_and_optimizer(model_provider_func):
# We only support local DDP with multiple micro-batches.
# We only support local DDP with multiple micro-batches.
if
get_num_microbatches
()
>
1
:
if
get_num_microbatches
()
>
1
:
assert
args
.
DDP_impl
==
'local'
assert
args
.
DDP_impl
==
'local'
if
len
(
model
)
==
1
:
if
len
(
model
)
>
1
:
assert
args
.
DDP_impl
==
'local'
assert
args
.
DDP_impl
==
'local'
if
mpu
.
get_pipeline_model_parallel_world_size
()
>
1
:
if
mpu
.
get_pipeline_model_parallel_world_size
()
>
1
:
assert
args
.
DDP_impl
==
'local'
assert
args
.
DDP_impl
==
'local'
...
...
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