From 4df1fed4792d3128423032ae2257feaae48af9a2 Mon Sep 17 00:00:00 2001 From: Russell Klopfer Date: Tue, 23 Apr 2024 04:57:03 -0400 Subject: [PATCH] remove redundant logging from longformer (#30365) --- src/transformers/models/longformer/modeling_longformer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/transformers/models/longformer/modeling_longformer.py b/src/transformers/models/longformer/modeling_longformer.py index f8c7c44ef9918c..f2da2a22b70d6a 100755 --- a/src/transformers/models/longformer/modeling_longformer.py +++ b/src/transformers/models/longformer/modeling_longformer.py @@ -1593,7 +1593,7 @@ def _pad_to_window_size( # this path should be recorded in the ONNX export, it is fine with padding_len == 0 as well if padding_len > 0: logger.warning_once( - f"Input ids are automatically padded from {seq_len} to {seq_len + padding_len} to be a multiple of " + f"Input ids are automatically padded to be a multiple of " f"`config.attention_window`: {attention_window}" ) if input_ids is not None: