fix: call moe_runner.run() and se_runner.run() (not __call__)
This commit is contained in:
@@ -380,7 +380,8 @@ def forward_attention(x_normed, w, li, cfg, rope_cos, rope_sin,
|
||||
# =====================================================================
|
||||
def moe_forward(x, li, moe_runner, se_runner, router, token_id):
|
||||
topk_w, topk_ids = router(x, token_ids=token_id)
|
||||
routed_out = moe_runner(x, topk_w, topk_ids); shared_out = se_runner(x)
|
||||
routed_out = moe_runner.run(x, topk_w, topk_ids)
|
||||
shared_out = se_runner.run(x)
|
||||
return routed_out + shared_out
|
||||
|
||||
# =====================================================================
|
||||
|
||||
Reference in New Issue
Block a user