Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/sglang/srt/arg_groups/overrides.py
Original file line number Diff line number Diff line change
Expand Up @@ -1446,11 +1446,11 @@ def _moe_runner_backend_quant_constraints(view: Any) -> dict:
if (
moe_runner_backend == "auto"
and view.quantization == "modelopt_fp4"
and get_platform().is_sm120
and (get_platform().is_sm120 or get_platform().is_sm110)
Comment thread
nvpohanh marked this conversation as resolved.
):
moe_runner_backend = "flashinfer_cutlass"
logger.info(
"Use flashinfer_cutlass as MoE runner backend on SM120 for "
"Use flashinfer_cutlass as MoE runner backend on SM110/SM120 for "
"modelopt_fp4 (trtllm-gen MoE kernels are SM100-only)"
)
if moe_runner_backend != view.moe_runner_backend:
Expand Down
3 changes: 3 additions & 0 deletions python/sglang/srt/layers/quantization/fp8_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,6 +1009,9 @@ def initialize_fp8_gemm_config() -> None:
backend = get_exec().kernel.fp8_gemm_runner_backend
if backend == "auto" and get_platform().is_sm120:
backend = "cutlass"
elif backend == "auto" and get_platform().is_sm110:
Comment thread
nvpohanh marked this conversation as resolved.
# DeepGEMM's block-FP8 kernel does not support SM110.
backend = "triton"

backend = Fp8GemmRunnerBackend(backend)

Expand Down
1 change: 1 addition & 0 deletions python/sglang/srt/runtime_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -1776,6 +1776,7 @@ def pre_capture_activation_reserve_mb(gpu_mem: float | None) -> float:
"is_sm90": "is_sm90_supported",
"is_sm100": "is_sm100_supported",
"is_sm100_or_sm110": "is_sm100_or_sm110_supported",
"is_sm110": "is_sm110_supported",
"is_sm120": "is_sm120_supported",
"is_blackwell": "is_blackwell_supported",
"is_hopper_with_cuda_12_3": "is_hopper_with_cuda_12_3",
Expand Down
5 changes: 5 additions & 0 deletions python/sglang/srt/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,11 @@ def _check_cuda_device_version(
cuda_version=(12, 8),
)
)
is_sm110_supported = lru_cache(maxsize=1)(
partial(
_check_cuda_device_version, device_capability_majors=[11], cuda_version=(12, 8)
)
)
is_sm80_supported = lru_cache(maxsize=1)(
partial(
_check_cuda_device_version, device_capability_majors=[8], cuda_version=(11, 0)
Expand Down
Loading