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

Make the big table creation/check platform independent #8856

Merged
merged 1 commit into from
Dec 1, 2020

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Nov 30, 2020

What does this PR do?

As @jplu mentioned in #8813, the check that the big table of models/tokenziers is up-to-date (done in make quality) requires all three backends installed (plus tokenizers and sentencepiece). This PR amends the script to use the objects in the init (that are always there, thanks to the dummies) instead of the dicts in the auto modules (which are set to None if a specific backend is not installed).

In passing, it adds aliases MT5Tokenizer and MT5TokenizerFast (to T5Tokenizer and T5TokenizerFast respectively) because otherwise the script does not detect the tokenizers associated to this model, cc @patrickvonplaten

Copy link
Contributor

@patrickvonplaten patrickvonplaten left a comment

Choose a reason for hiding this comment

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

Thanks a lot!

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.

Very clean changes, thanks a lot!

@LysandreJik LysandreJik merged commit c0df963 into master Dec 1, 2020
@LysandreJik LysandreJik deleted the big_table_Framework_agnostic branch December 1, 2020 16:45
stas00 pushed a commit to stas00/transformers that referenced this pull request Dec 5, 2020
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

3 participants