File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change 88from pathlib import Path
99from shutil import which
1010
11- import torch
1211from packaging .version import Version
1312from setuptools import Extension , setup
1413from setuptools .command .build_ext import build_ext
@@ -255,16 +254,8 @@ def run(self):
255254 self .copy_file (file , dst_file )
256255
257256
258- def _is_xpu () -> bool :
259- has_xpu = torch .version .xpu is not None
260- return (VLLM_TARGET_DEVICE == "xpu" and has_xpu )
261-
262-
263257ext_modules = []
264258
265- if _is_xpu ():
266- ext_modules .append (CMakeExtension (name = "vllm_xpu_kernels._moe_C" ))
267-
268259if _build_custom_ops ():
269260 ext_modules .append (CMakeExtension (name = "vllm_xpu_kernels._C" ))
270261 ext_modules .append (CMakeExtension (name = "vllm_xpu_kernels._moe_C" ))
You can’t perform that action at this time.
0 commit comments