Commit fe5a9cda authored by Rick Ho's avatar Rick Ho
Browse files

fmoe python class update to support comm group in gate

parent 8052b3c0
......@@ -128,6 +128,9 @@ class FMoE(nn.Module):
self.mask_dict = mask_dict
self.moe_group = moe_group
if hasattr(self.gate, 'requires_moe_group'):
setattr(self.gate, 'moe_gruop', self.moe_group)
def expert_fn(self, inp, fwd_expert_count):
r"""
The default expert function which either calls the experts as a whole
......
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