From 85c94c170638a41841ca7f856234de4df5e8cd8d Mon Sep 17 00:00:00 2001 From: Chaojun Zhang Date: Thu, 15 Oct 2026 15:23:45 +0800 Subject: [PATCH] [Tests][XPU] Skip modelopt_fp4 online MoE re-quantization test on XPU (#61723) Signed-off-by: Chaojun Zhang Co-authored-by: Kevin H. Luu Co-authored-by: Cyrus Leung --- tests/quantization/test_online.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tests/quantization/test_online.py b/tests/quantization/test_online.py index f18814dcd8..d05d015fe0 100644 --- a/tests/quantization/test_online.py +++ b/tests/quantization/test_online.py @@ -1728,11 +1728,14 @@ def test_online_quantization( monkeypatch.setenv("VLLM_ROCM_USE_AITER", "1" if use_rocm_aiter else "0") rocm_aiter_ops.refresh_env_variables() - if current_platform.is_xpu() and quant_scheme in ( - "fp8_per_block", - "fp8_per_channel", - ): - pytest.skip(f"Skip test for online {quant_scheme} on XPU platform.") + if current_platform.is_xpu(): + if quant_scheme in ("fp8_per_block", "fp8_per_channel"): + pytest.skip(f"Skip test for online {quant_scheme} on XPU platform.") + if model_name == MODELOPT_NVFP4_MOE_MODEL_NAME: + pytest.skip( + "modelopt_fp4 quantization (base format of " + f"{MODELOPT_NVFP4_MOE_MODEL_NAME}) is not supported on XPU platform." + ) runner_kwargs = dict(extra_runner_kwargs) kv_cache_dtype = runner_kwargs.get("kv_cache_dtype", "auto")