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

Added Docstrings for Deberta and DebertaV2 [PyTorch] #18610

Merged
merged 10 commits into from
Aug 30, 2022
Merged

Added Docstrings for Deberta and DebertaV2 [PyTorch] #18610

merged 10 commits into from
Aug 30, 2022

Conversation

Tegzes
Copy link
Contributor

@Tegzes Tegzes commented Aug 12, 2022

Adds Doctest for DeBerta and DeBertaV2 [Pytorch version]

Issue: #16292

Before submitting

  • This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
  • Did you read the contributor guideline,
    Pull Request section?
  • Was this discussed/approved via a Github issue or the forum? Please add a link
    to it if that's the case.
  • Did you make sure to update the documentation with your changes? Here are the
    documentation guidelines, and
    here are tips on formatting docstrings.
  • Did you write any new necessary tests?

Who can review?

@ydshieh @patrickvonplaten

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Aug 12, 2022

The documentation is not available anymore as the PR was closed or merged.

@Tegzes
Copy link
Contributor Author

Tegzes commented Aug 12, 2022

@ydshieh I made the changes you mentioned in this PR: #17997

Copy link
Collaborator

@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

Excellent job, @Tegzes ! Thank you very much.

@patrickvonplaten Need your approval to merge this PR (the review should be fairly easy)

@Tegzes
Copy link
Contributor Author

Tegzes commented Aug 30, 2022

@patrickvonplaten would like to have your feedback on this

@ydshieh
Copy link
Collaborator

ydshieh commented Aug 30, 2022

request @LysandreJik for a final review in order to merge

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

No problem for me to merge like this, but it's a bit sad that there are no models on the Hub that can be used for sequence classification with DeBERTa, nor any model that can be used for DeBERTa-v2.

Should we train some with the scripts available in the repo? :)
Up to you @ydshieh!

Comment on lines +52 to +55
_TOKEN_CLASS_EXPECTED_OUTPUT = (
"['LABEL_0', 'LABEL_0', 'LABEL_0', 'LABEL_0', 'LABEL_0', 'LABEL_0', 'LABEL_0', 'LABEL_0', 'LABEL_0', 'LABEL_0',"
" 'LABEL_0', 'LABEL_0']"
)
Copy link
Member

Choose a reason for hiding this comment

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

It's a bit unfortunate that we have LABEL_0 here. It would be better to have a label map that is defined.

@ydshieh
Copy link
Collaborator

ydshieh commented Aug 30, 2022

Let's merge as it is. The usage of tiny models for doc is not ideal, but we decided to use them so doctest could run. There are several (downstream) models have done this way. We/I can definitely find some time to train (at least a few) models.

@LysandreJik
Copy link
Member

Sounds good to me!

@LysandreJik LysandreJik merged commit 5727dfc into huggingface:main Aug 30, 2022
oneraghavan pushed a commit to oneraghavan/transformers that referenced this pull request Sep 26, 2022
* Added Doctest for Deberta Pytorch

* Added path in documentation test file

* Added docstrings for DebertaV2

* Revert "Added docstrings for DebertaV2"

This reverts commit 307185e.

* Added DebertaV2 Docstrings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants