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

Put all models in the constants #9170

Merged
merged 2 commits into from Dec 17, 2020
Merged

Put all models in the constants #9170

merged 2 commits into from Dec 17, 2020

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Dec 17, 2020

What does this PR do?

It was impossible to use all pretrained checkpoints in the tapas tokenzier file because they were not in the constants of the file. This PR fixes that.

@sgugger
Copy link
Collaborator Author

sgugger commented Dec 17, 2020

An alternative is to remove all content, but the previous state where one variable as some keys but the others not leads to failures.

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.

LGTM, thanks @sgugger!

@julien-c
Copy link
Member

Yes, we really need to remove all of this @LysandreJik @thomwolf

@LysandreJik
Copy link
Member

We do, but right now we still use them in the tests

@NielsRogge
Copy link
Contributor

It was a bit confusing to me which to add in the constants and which not.. 😅

@NielsRogge
Copy link
Contributor

NielsRogge commented Dec 17, 2020

@sgugger one more small fix you can add is in tapas.rst under "Usage: inference", there should be one more space:

docs

(Sorry, if I see more things I make a new PR myself :p)

@sgugger sgugger merged commit 6d2e864 into master Dec 17, 2020
@sgugger sgugger deleted the fix_tapas_tokenizer branch December 17, 2020 16:23
@LysandreJik
Copy link
Member

Pushing your fix on master directly Niels

guyrosin pushed a commit to guyrosin/transformers that referenced this pull request Jan 15, 2021
* Put all models in the constants

* Add Google AI mention in the main README
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.

None yet

4 participants