From 9b67338b78f33dca5726191cead98ed913a96f4a Mon Sep 17 00:00:00 2001 From: TJian Date: Wed, 21 Jan 2026 05:38:20 +0800 Subject: [PATCH] [Bugfix] Suppress log on non-ROCm platform (#32703) Signed-off-by: tjtanaa --- .../layers/quantization/quark/schemes/quark_ocp_mx.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vllm/model_executor/layers/quantization/quark/schemes/quark_ocp_mx.py b/vllm/model_executor/layers/quantization/quark/schemes/quark_ocp_mx.py index edf1ad5a9..9c0ce9723 100644 --- a/vllm/model_executor/layers/quantization/quark/schemes/quark_ocp_mx.py +++ b/vllm/model_executor/layers/quantization/quark/schemes/quark_ocp_mx.py @@ -154,10 +154,11 @@ try: dispatch_key=current_platform.dispatch_key, ) except (ImportError, AttributeError, RuntimeError): - logger.warning( - "AITER is not found or QuarkOCP_MX is not supported on the current " - "platform. QuarkOCP_MX quantization will not be available." - ) + if current_platform.is_rocm(): + logger.warning( + "AITER is not found or QuarkOCP_MX is not supported on the current " + "platform. QuarkOCP_MX quantization will not be available." + ) dynamic_mxfp4_quant = gemm_afp4wfp4 = None