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
1b8fef31
Commit
1b8fef31
authored
Apr 02, 2022
by
Rick Ho
Browse files
some comments on code and test
parent
4cc893aa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
fmoe/fastermoe/schedule.py
fmoe/fastermoe/schedule.py
+2
-0
tests/README.md
tests/README.md
+7
-0
No files found.
fmoe/fastermoe/schedule.py
View file @
1b8fef31
...
...
@@ -61,6 +61,8 @@ class MoEForward(Function):
out
=
_local_gather
(
local_output_buf
,
pos_g
,
out_batch_size
,
maybe_overlap
=
False
)
# gib and local_input_buf are necessary, because ctx.gibs are created
# based on their memory
variables
=
(
pos_s
,
pos_g
,
local_expert_count
,
global_expert_count
,
stored_models
,
gib
,
local_input_buf
)
...
...
tests/README.md
0 → 100644
View file @
1b8fef31
FastMoE test
===
To run unit test, directly run
`pytest`
in this directory.
`test.sh`
is a wrapper script to execute single tests without pytest for
debugging purpose.
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