transformers
Show a warning for missing attention masks when pad_token_id is not None
#24510
Merged

Show a warning for missing attention masks when pad_token_id is not None #24510

hackyon
hackyon hackyon force pushed 3 years ago
hackyon hackyon force pushed 3 years ago
hackyon
hackyon hackyon force pushed 3 years ago
hackyon hackyon force pushed 3 years ago
gante
sgugger
sgugger commented on 2023-06-27
hackyon
hackyon
hackyon
hackyon commented on 2023-06-28
hackyon hackyon force pushed 3 years ago
sgugger
sgugger commented on 2023-06-28
hackyon
Adding warning messages to BERT for missing attention masks
4a232582
hackyon Adding warning messages to BERT for missing attention masks
24b70f5c
hackyon Ran fix copies to copy over the changes to some of the other models
ef86660d
hackyon Add logger.warning_once.cache_clear() to the test
92e45a71
hackyon Shows warning when there are no attention masks and input_ids start/e…
c919542d
hackyon Using warning_once() instead and fix indexing in input_ids check
da850a16
hackyon hackyon force pushed to da850a16 3 years ago
sgugger
gante
gante approved these changes on 2023-06-30
HuggingFaceDocBuilderDev
sgugger
sgugger approved these changes on 2023-06-30
sgugger sgugger merged 78a2b19f into main 3 years ago
gante
hackyon
hackyon hackyon deleted the warning_attention_mask branch 3 years ago
hackyon

Login to write a write a comment.

Login via GitHub

Reviewers
Assignees
No one assigned
Labels
Milestone