Skip to content

Commit

Permalink
remove redundant logging from longformer (#30365)
Browse files Browse the repository at this point in the history
  • Loading branch information
riklopfer authored and Ita Zaporozhets committed May 14, 2024
1 parent 8c6a7c6 commit 4df1fed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/models/longformer/modeling_longformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 4df1fed

Please sign in to comment.