[XPU] upgrade to torch 2.13 (#48677)
Signed-off-by: Yan Ma <yan.ma@intel.com> Signed-off-by: Kunshang Ji <kunshang.ji@intel.com> Co-authored-by: Kunshang Ji <kunshang.ji@intel.com> Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
co-authored by
Kunshang Ji
Cyrus Leung
parent
df2735ea2e
commit
5b29c958c7
@@ -2391,17 +2391,6 @@ def topk_softmax(
|
||||
e_score_correction_bias: torch.Tensor | None = None,
|
||||
is_padding: torch.Tensor | None = None,
|
||||
) -> None:
|
||||
if current_platform.is_xpu():
|
||||
# TODO: Remove after vllm-xpu-kernels supports is_padding.
|
||||
torch.ops._moe_C.topk_softmax(
|
||||
topk_weights,
|
||||
topk_ids,
|
||||
token_expert_indices,
|
||||
gating_output,
|
||||
renormalize,
|
||||
e_score_correction_bias,
|
||||
)
|
||||
return
|
||||
torch.ops._moe_C.topk_softmax(
|
||||
topk_weights,
|
||||
topk_ids,
|
||||
@@ -2447,21 +2436,6 @@ def topk_hash_softplus_sqrt(
|
||||
hash_indices_table: torch.Tensor | None = None,
|
||||
is_padding: torch.Tensor | None = None,
|
||||
) -> None:
|
||||
if current_platform.is_xpu():
|
||||
# TODO: Remove after vllm-xpu-kernels supports is_padding.
|
||||
torch.ops._moe_C.topk_softplus_sqrt(
|
||||
topk_weights,
|
||||
topk_indices,
|
||||
token_expert_indices,
|
||||
gating_output,
|
||||
renormalize,
|
||||
routed_scaling_factor,
|
||||
e_score_correction_bias,
|
||||
input_tokens,
|
||||
hash_indices_table,
|
||||
)
|
||||
return
|
||||
|
||||
torch.ops._moe_C.topk_softplus_sqrt(
|
||||
topk_weights,
|
||||
topk_indices,
|
||||
|
||||
Reference in New Issue
Block a user