From bb0e0b12a81f32ace1ba7ee71dbe0c488dafd06b Mon Sep 17 00:00:00 2001 From: Russell Klopfer Date: Sat, 20 Apr 2024 13:41:14 -0400 Subject: [PATCH] remove redundant logging from longformer --- 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: