question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Need suggestion on contributing TFDPR

See original GitHub issue

🌟 New model addition

Model description

Hi, I would love to try contributing TFDPR . This is the first time to me, so I need some suggestions. I have followed @sshleifer 's great PR on TFBart model on 4 files : __init__.py , convert_pytorch_checkpoint_to_tf2.py , utils/dummy_tf_objects.py and (newly created) modeling_tf_dpr.py

Now the TF model works properly and can load Pytorch’s weights successfully the same output as Pytorch’s counterparts except small random noise (1e-5) which I suspect of some dtypes different , but I could not find the cause.

I guess I need to add document on docs/source/model_doc/dpr.rst , and that’s all ? My question is do I need to change / fix any other files ? and/or do I need to do some other thing before making PR ?

To resolve TF vs. Pytorch naming issues, there’s one change regarding TFBertModel vs. TFBertMainLayer as discussed here . Thanks to @sshleifer for his help to solve the issue.

Open source status

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
LysandreJikcommented, Nov 2, 2020

This is great, only the tests are left! No need to close the issue here, we can close this issue once the PR is merged.

1reaction
LysandreJikcommented, Oct 30, 2020

Hello! Thanks for offering to contribute the TF implementation of the DPR model! Something that may help you is to open a PR very early on, even if you have a lot of questions. This way we can help provide pointers, and we can guide you in the right direction.

Another aspect that may be of tremendous help, would be to follow the checklist when adding a new model. It is available here. If you open a PR, we recommend to put this checklist in the description so that everybody can follow better.

Let me know if I can help further.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Issue on translating DPR to TFDPR on loading ...
Hi Huggingface team, I would love to contribute translating DPR to TFDPR model . This is my first time trying to contribute so...
Read more >
5th TF-DPR Meeting - GÉANT federated confluence
Time Session Speaker from 11:00 Arrival, light lunch 12:00 ‑ 12:10 Welcome and Introductions Morten Eeg Ejrnæs Nielsen 14:10 ‑ 14:30 TBC TBC
Read more >
TFDPR on NQ - test Json & Metrics - Colaboratory
ERROR: google-colab 1.0.0 has requirement requests~=2.23.0, but you'll have requests 2.25.0 which is incompatible. ERROR: datascience 0.10.6 has requirement ...
Read more >
• DFTIC: - DTIC
Did this research contribute to a current Air Force project? ... "items only qualify for advance procurement if they have sig-.
Read more >
1970-73 Firebird Right Trunk Floor Drop Off Panel
SKU: TFDPR-7073; Item #: TFDPR-7073; Vehicle Generations: 1970-81 Camaro & Firebird ... May We Suggest ... Have a parts, body or technical question?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found