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
evt_fugx1
dcu_megatron
Commits
2d1ebf8f
Commit
2d1ebf8f
authored
Apr 14, 2025
by
dongcl
Browse files
fix flux bug
parent
f25c421e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dcu_megatron/core/tensor_parallel/layers.py
dcu_megatron/core/tensor_parallel/layers.py
+1
-1
No files found.
dcu_megatron/core/tensor_parallel/layers.py
View file @
2d1ebf8f
...
@@ -581,7 +581,7 @@ class LinearRS(torch.autograd.Function):
...
@@ -581,7 +581,7 @@ class LinearRS(torch.autograd.Function):
wgrad_compute
=
False
wgrad_compute
=
False
if
wgrad
:
if
wgrad
:
if
ctx
.
sequence_parallel
if
ctx
.
sequence_parallel
:
dim_size
=
list
(
grad_output
.
size
())
dim_size
=
list
(
grad_output
.
size
())
dim_size
[
0
]
=
dim_size
[
0
]
*
world_size
dim_size
[
0
]
=
dim_size
[
0
]
*
world_size
...
...
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