transformers
Replace assertions with value errors on distilbert model
#20463
Merged

Replace assertions with value errors on distilbert model #20463

sgugger merged 22 commits into huggingface:main from replace-assertions-with-ValueErrors-on-distilbert-model
JuheonChu
Changed assert into 7-8 exceptions
e4131248
updated syntax error
210c0aff
updated error
e197dcbd
updated file (Co-autho: Batese2001)
6d862a20
JuheonChu Successful test on test_modeling_distilbert.py
8d23a507
JuheonChu Delete test_modeling_distilbert.ipynb
1a6bcb73
JuheonChu Update modeling_distilbert.py
eef54283
Successful raising of exceptions with the conditions that are contrar…
8216cbcc
Successful raising of exceptions with the conditions that are contrar…
e7135dad
committing the reformatted distilbert model
8ce829fc
reformatted distilbert model
0ad5940a
reformatted distilbert model
155b6968
reformatted distilbert model
e95bd4b3
reformatted distilbert model with black
e7c695f9
Changed comments that explain better about raising exceptions for not…
05e73a7a
Changed comments that explain better about raising exceptions for not…
f0d93664
changed based on the feedback
3903799c
Changed line 833 based on the suggestion made from @younesbelkada
79dc3377
Changed line 833 based on the suggestion made from @younesbelkada draft2
42540608
reformatted file
14b8b033
HuggingFaceDocBuilderDev
younesbelkada
younesbelkada commented on 2022-11-26
younesbelkada Update src/transformers/models/distilbert/modeling_distilbert.py
ceeac58d
younesbelkada
younesbelkada commented on 2022-11-26
younesbelkada Update src/transformers/models/distilbert/modeling_distilbert.py
2971804e
JuheonChu
younesbelkada
younesbelkada approved these changes on 2022-11-26
JuheonChu
JuheonChu
JuheonChu commented on 2022-11-27
sgugger
sgugger approved these changes on 2022-11-28
sgugger sgugger merged 98122794 into main 3 years ago
JuheonChu JuheonChu deleted the replace-assertions-with-ValueErrors-on-distilbert-model branch 3 years ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone