mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-21 14:25:35 +08:00
[Bugfix][CPU] Skip unsupported custom op register on CPU (#25534)
Signed-off-by: jiang1.li <jiang1.li@intel.com> Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
parent
fc90ce79f0
commit
c8ef8a50d2
@ -130,6 +130,8 @@ def _w8a8_triton_block_scaled_mm_fake(
|
||||
device=qx.device)
|
||||
|
||||
|
||||
# Note: the check can be removed when CPU torch > 2.7
|
||||
if not current_platform.is_cpu():
|
||||
direct_register_custom_op(
|
||||
"w8a8_triton_block_scaled_mm_func",
|
||||
_w8a8_triton_block_scaled_mm_func,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user