[XPU][Bugfix] Fix per_token_group_fp8_quant missing dummy args on XPU (#43930)
Signed-off-by: Chaojun,Zhang <chaojun.zhang@intel.com> Co-authored-by: Kunshang Ji <kunshang.ji@intel.com>
This commit is contained in:
co-authored by
Kunshang Ji
parent
480fadab1b
commit
a3a5a5ece5
@@ -575,7 +575,7 @@ def per_token_group_quant_fp8(
|
||||
|
||||
# prefer CUDA/XPU kernel if available
|
||||
# TODO(bnell): this causes some fp8 moe test to fail.
|
||||
if current_platform.is_cuda() and x.is_contiguous():
|
||||
if (current_platform.is_cuda() or current_platform.is_xpu()) and x.is_contiguous():
|
||||
torch.ops._C.per_token_group_fp8_quant(
|
||||
x,
|
||||
x_q,
|
||||
@@ -590,12 +590,6 @@ def per_token_group_quant_fp8(
|
||||
)
|
||||
return x_q, x_s
|
||||
|
||||
if current_platform.is_xpu() and x.is_contiguous():
|
||||
torch.ops._C.per_token_group_fp8_quant(
|
||||
x, x_q, x_s, group_size, eps, fp8_min, fp8_max, use_ue8m0
|
||||
)
|
||||
return x_q, x_s
|
||||
|
||||
# TRITON FALLBACK
|
||||
M = x.numel() // group_size
|
||||
N = group_size
|
||||
|
||||
Reference in New Issue
Block a user