[Bug] Fix Shape Validation for Fallback while Enabling E8M0 for DeepGEMM (#26322)
Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
@@ -143,7 +143,7 @@ class TritonOrDeepGemmExperts(mk.FusedMoEPermuteExpertsUnpermute):
|
|||||||
apply_router_weight_on_input: bool,
|
apply_router_weight_on_input: bool,
|
||||||
):
|
):
|
||||||
use_deep_gemm = self.allow_deep_gemm and (
|
use_deep_gemm = self.allow_deep_gemm and (
|
||||||
_valid_deep_gemm(hidden_states, w1, w2) or is_deep_gemm_e8m0_used()
|
is_deep_gemm_e8m0_used() or _valid_deep_gemm(hidden_states, w1, w2)
|
||||||
)
|
)
|
||||||
|
|
||||||
experts = self.deep_gemm_expert if use_deep_gemm else self.triton_expert
|
experts = self.deep_gemm_expert if use_deep_gemm else self.triton_expert
|
||||||
|
|||||||
Reference in New Issue
Block a user