Commit 1b8fef31 authored by Rick Ho's avatar Rick Ho
Browse files

some comments on code and test

parent 4cc893aa
......@@ -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)
......
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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment