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
FastMoE
Commits
14c0eab4
Commit
14c0eab4
authored
Jan 29, 2021
by
Rick Ho
Browse files
fix another bug to make global moe run
parent
0fea2991
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
fmoe/fmoe_functions.py
fmoe/fmoe_functions.py
+1
-1
No files found.
fmoe/fmoe_functions.py
View file @
14c0eab4
...
@@ -47,7 +47,7 @@ class MOEScatter(Function):
...
@@ -47,7 +47,7 @@ class MOEScatter(Function):
(
fwd_batch_size
,
local_batch_size
,
world_size
)
=
ctx
.
moe_args
(
fwd_batch_size
,
local_batch_size
,
world_size
)
=
ctx
.
moe_args
if
world_size
>
1
:
if
world_size
>
1
:
local_grad_in
,
=
fmoe_cuda
.
global_gather
(
global_grad_
out
,
local_grad_in
,
=
fmoe_cuda
.
global_gather
(
global_grad_
in
,
local_expert_count
,
global_expert_count
,
local_expert_count
,
global_expert_count
,
local_batch_size
,
world_size
)
local_batch_size
,
world_size
)
else
:
else
:
...
...
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