Skip to content

Commit e3a3c73

Browse files
jikunshangyewentao256
authored andcommitted
[XPU] Fix compile_size is None case. (#25433)
Signed-off-by: Kunshang Ji <kunshang.ji@intel.com> Signed-off-by: yewentao256 <zhyanwentao@126.com>
1 parent e41946e commit e3a3c73

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vllm/platforms/xpu.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ def check_and_update_config(cls, vllm_config: VllmConfig) -> None:
113113
# lazy import to avoid circular import
114114
from vllm.config import CompilationLevel, CUDAGraphMode
115115
compilation_config = vllm_config.compilation_config
116+
if compilation_config.compile_sizes is None:
117+
compilation_config.compile_sizes = []
116118

117119
assert compilation_config.cudagraph_mode == CUDAGraphMode.NONE, \
118120
"CUDA graph mode should be NONE on XPU"

0 commit comments

Comments
 (0)