Skip to content

Commit d147f12

Browse files
jikunshangchoprahetarth
authored andcommitted
[XPU] Fix compile_size is None case. (vllm-project#25433)
Signed-off-by: Kunshang Ji <kunshang.ji@intel.com>
1 parent 545c6c7 commit d147f12

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)