-
Notifications
You must be signed in to change notification settings - Fork 27.3k
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
Mask t5 relative position bias then head pruned #17968
Conversation
The documentation is not available anymore as the PR was closed or merged. |
Thanks for the PR @hadaev8! Could you add a test for the newly added functionality ? :-) |
@patrickvonplaten |
Hey @hadaev8, The test should be added to this file here: https://github.com/huggingface/transformers/blob/main/tests/models/t5/test_modeling_t5.py In this test it would be great if you could do the following for example: |
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Please note that issues that do not follow the contributing guidelines are likely to be ignored. |
@patrickvonplaten |
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.
Looks good to me!
@hadaev8 let's maybe do this in another PR :-) |
Okay, i only will make test |
Hey @hadaev8, Sorry last thing - could you maybe remove the accidently added |
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.
LGTM! Happy to merge this once the datasets
folder has been removed :)
@patrickvonplaten |
It seems there is an issue with your CircleCI permissions, the tests won't run. |
Seems I can't register account at CircleCI because sanctioned country. |
Arf that's super annoying, sorry about that @hadaev8. I'll look into triggering it for you. |
I pushed the same commits under a different branch: https://github.com/huggingface/transformers/tree/fix_t5_pruning-lysandre |
All tests pass, thank you @hadaev8! Merging the PR. |
@LysandreJik |
* add position bias head masking if heads pruned * fix pruning function in t5 encoder * make style * make fix-copies * Revert added folder Co-authored-by: Patrick von Platen <patrick.v.platen@gmail.com>
What does this PR do?
Fixes #17886
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
@patrickvonplaten