[Feature] Enable return routed experts (#12162)
Co-authored-by: yizhang2077 <1109276519@qq.com> Co-authored-by: Liangsheng Yin <lsyincs@gmail.com>
This commit is contained in:
co-authored by
yizhang2077
Liangsheng Yin
parent
8fe3e37468
commit
bed301a5ac
@@ -245,6 +245,7 @@ class LongcatFlashMoE(nn.Module):
|
||||
renormalize=False,
|
||||
use_grouped_topk=False,
|
||||
correction_bias=self.router.e_score_correction_bias.data,
|
||||
layer_id=layer_id,
|
||||
)
|
||||
self.topk.forward = self.topk.forward_native
|
||||
|
||||
|
||||
Reference in New Issue
Block a user