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
cd499559
Commit
cd499559
authored
Jan 28, 2022
by
Jared Casper
Browse files
Revert incorrect fix.
parent
2a34e0ec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/utils.py
megatron/utils.py
+1
-1
No files found.
megatron/utils.py
View file @
cd499559
...
...
@@ -84,7 +84,7 @@ def average_losses_across_data_parallel_group(losses):
[
loss
.
clone
().
detach
().
view
(
1
)
for
loss
in
losses
])
torch
.
distributed
.
all_reduce
(
averaged_losses
,
group
=
mpu
.
get_data_parallel_group
())
averaged_losses
=
averaged_losses
/
averaged_losses
=
averaged_losses
/
\
torch
.
distributed
.
get_world_size
(
group
=
mpu
.
get_data_parallel_group
())
return
averaged_losses
...
...
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