[XPU]remove is_xxx from moe class and bump up kernels (#48079)
Signed-off-by: mayuyuace <qiming1.zhang@intel.com> Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
co-authored by
Kunshang Ji
parent
4a6440acef
commit
0b6636cbcb
@@ -2277,18 +2277,6 @@ def topk_sigmoid(
|
||||
e_score_correction_bias: torch.Tensor | None = None,
|
||||
routed_scaling_factor: float = 1.0,
|
||||
) -> None:
|
||||
if current_platform.is_xpu():
|
||||
# xpu doesn't support routed_scaling_factor currently, will revert
|
||||
# in next vllm-xpu-kernels bumpup
|
||||
torch.ops._moe_C.topk_sigmoid(
|
||||
topk_weights,
|
||||
topk_ids,
|
||||
token_expert_indices,
|
||||
gating_output,
|
||||
renormalize,
|
||||
e_score_correction_bias,
|
||||
)
|
||||
return
|
||||
torch.ops._moe_C.topk_sigmoid(
|
||||
topk_weights,
|
||||
topk_ids,
|
||||
|
||||
Reference in New Issue
Block a user