Skip to content
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

[DPR] Correct init #13796

Merged

Conversation

patrickvonplaten
Copy link
Contributor

@patrickvonplaten patrickvonplaten commented Sep 29, 2021

What does this PR do?

This PR corrects the fast initialization scheme for DPR. DPR overwrote the init_weights function instead of implementing a _init_weights. This PR corrects this to align DPR more with the other models.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I had noticed that too a couple of weeks ago but didn't get the time to fix it. Thanks for taking care of it!

@patrickvonplaten patrickvonplaten merged commit 41436d3 into huggingface:master Sep 30, 2021
@patrickvonplaten patrickvonplaten deleted the correct_dpr_init branch September 30, 2021 16:59
stas00 pushed a commit to stas00/transformers that referenced this pull request Oct 12, 2021
* update

* add to docs and init

* make fix-copies
lapisfluvialis pushed a commit to lapisfluvialis/transformers that referenced this pull request Oct 27, 2021
* update

* add to docs and init

* make fix-copies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants