transformers
Show a warning for missing attention masks when pad_token_id is not None
#24510
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
6
Changes
View On
GitHub
Show a warning for missing attention masks when pad_token_id is not None
#24510
sgugger
merged 6 commits into
huggingface:main
from
hackyon:warning_attention_mask
hackyon
force pushed
3 years ago
hackyon
force pushed
3 years ago
hackyon
force pushed
3 years ago
hackyon
force pushed
3 years ago
sgugger
commented on 2023-06-27
hackyon
commented on 2023-06-28
hackyon
force pushed
3 years ago
sgugger
commented on 2023-06-28
Adding warning messages to BERT for missing attention masks
4a232582
Adding warning messages to BERT for missing attention masks
24b70f5c
Ran fix copies to copy over the changes to some of the other models
ef86660d
Add logger.warning_once.cache_clear() to the test
92e45a71
Shows warning when there are no attention masks and input_ids start/e…
c919542d
Using warning_once() instead and fix indexing in input_ids check
da850a16
hackyon
force pushed
to
da850a16
3 years ago
gante
approved these changes on 2023-06-30
sgugger
approved these changes on 2023-06-30
sgugger
merged
78a2b19f
into main
3 years ago
hackyon
deleted the warning_attention_mask branch
3 years ago
Login to write a write a comment.
Login via GitHub
Reviewers
sgugger
gante
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Login to write a write a comment.
Login via GitHub