[XPU] Fix topk_sigmoid arg mismatch on XPU (#47858)
Signed-off-by: zhenwei-intel <zhenwei.liu@intel.com>
This commit is contained in:
@@ -2246,6 +2246,18 @@ def topk_sigmoid(
|
|||||||
e_score_correction_bias: torch.Tensor | None = None,
|
e_score_correction_bias: torch.Tensor | None = None,
|
||||||
routed_scaling_factor: float = 1.0,
|
routed_scaling_factor: float = 1.0,
|
||||||
) -> None:
|
) -> 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(
|
torch.ops._moe_C.topk_sigmoid(
|
||||||
topk_weights,
|
topk_weights,
|
||||||
topk_ids,
|
topk_ids,
|
||||||
|
|||||||
Reference in New Issue
Block a user