fix scheduler for non-cuda devices and disable piecewise cuda graph f… (#19992)
Co-authored-by: Kangyan-Zhou <zky314343421@gmail.com>
This commit is contained in:
@@ -59,6 +59,7 @@ from sglang.srt.utils.common import (
|
||||
is_sm100_supported,
|
||||
is_sm120_supported,
|
||||
is_triton_kernels_available,
|
||||
is_xpu,
|
||||
json_list_type,
|
||||
nullable_str,
|
||||
parse_connector_type,
|
||||
@@ -1067,8 +1068,8 @@ class ServerArgs:
|
||||
# 5. Pipeline parallelism
|
||||
if self.pp_size > 1:
|
||||
self.disable_piecewise_cuda_graph = True
|
||||
# 6. Non-CUDA hardware (AMD, NPU, CPU, MPS, MUSA, etc.)
|
||||
if is_hip() or is_npu() or is_cpu() or is_mps() or is_musa():
|
||||
# 6. Non-CUDA hardware (AMD, NPU, CPU, etc.)
|
||||
if is_hip() or is_npu() or is_cpu() or is_mps() or is_musa() or is_xpu():
|
||||
self.disable_piecewise_cuda_graph = True
|
||||
# 7. MoE A2A backend
|
||||
if self.moe_a2a_backend != "none":
|
||||
|
||||
Reference in New Issue
Block a user