-
Notifications
You must be signed in to change notification settings - Fork 27.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove token_type_ids from model_input_names (like #24788) #28325
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
Looks fine to me, but let's get a second approval from @ArthurZucker who might know more about reasons for it being added back in previously
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey! Thanks for the PR! Could you make sure all the slow test pass for this tokenizer as well? I have no idea why I added this again but I think a test must have been failing!
…d a model reference so that it points to an available model)
Thanks for the quick reply!
It did fail a test, namely an equality test where the reference output has token_type_ids. It also (catastrophically) failed a test that referenced a closed model. I've removed the offending token_type_ids in the equality check and updated the model reference to an openly available model. It now passes all tests. |
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the fix 🤗
…huggingface#28325) * remove token_type_ids from model_input_names (like huggingface#24788) * removed test that assumed token_type_ids should be present and updated a model reference so that it points to an available model)
…huggingface#28325) * remove token_type_ids from model_input_names (like huggingface#24788) * removed test that assumed token_type_ids should be present and updated a model reference so that it points to an available model)
…huggingface#28325) * remove token_type_ids from model_input_names (like huggingface#24788) * removed test that assumed token_type_ids should be present and updated a model reference so that it points to an available model)
What does this PR do?
Fixes an issue where the GPTSw3Tokenizer returns token_type_ids. These were not used in training and including them significantly degrades performance. This change is the same fix applied in #24788, which was later (erroneously?) reverted by #23909.
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@ArthurZucker @amyeroberts
Members/contributors who may be interested in your PR:
@DarioSucic @ekgren @bjornrun