From 3c853aa82c6abc26015ce0290fb560fb2f52f696 Mon Sep 17 00:00:00 2001 From: DefTruth Date: Sun, 13 Apr 2025 18:59:37 +0800 Subject: [PATCH 1/2] [Misc] remove warning if triton>=3.2.0 Signed-off-by: DefTruth --- vllm/attention/ops/triton_decode_attention.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/vllm/attention/ops/triton_decode_attention.py b/vllm/attention/ops/triton_decode_attention.py index 40daec3ec124..ec84cc9fd415 100644 --- a/vllm/attention/ops/triton_decode_attention.py +++ b/vllm/attention/ops/triton_decode_attention.py @@ -39,11 +39,12 @@ logger = logging.getLogger(__name__) -# TODO: Remove this when triton>=3.2.0. This issue will not affect performance +# Remove this warning when triton>=3.2.0. This issue will not affect performance # and accuracy. -logger.warning( - "The following error message 'operation scheduled before its operands' " - "can be ignored.") +if triton.__version__ < '3.2.0': + logger.warning( + "The following error message 'operation scheduled before its operands' " + "can be ignored.") @triton.jit From c595a3108c4d0bcc9c7faf5b67265be4c1fb37a1 Mon Sep 17 00:00:00 2001 From: DefTruth Date: Mon, 14 Apr 2025 14:22:57 +0800 Subject: [PATCH 2/2] [Misc] disable warning if triton>=3.2.0 Signed-off-by: DefTruth --- vllm/attention/ops/triton_decode_attention.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vllm/attention/ops/triton_decode_attention.py b/vllm/attention/ops/triton_decode_attention.py index ec84cc9fd415..35ee0835f42a 100644 --- a/vllm/attention/ops/triton_decode_attention.py +++ b/vllm/attention/ops/triton_decode_attention.py @@ -39,8 +39,8 @@ logger = logging.getLogger(__name__) -# Remove this warning when triton>=3.2.0. This issue will not affect performance -# and accuracy. +# Only print the following warnings when triton version < 3.2.0. +# The issue won't affect performance or accuracy. if triton.__version__ < '3.2.0': logger.warning( "The following error message 'operation scheduled before its operands' "