Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Remove parent/child tests in auto model tests #16653

Merged
merged 1 commit into from
Apr 7, 2022
Merged

Conversation

sgugger
Copy link
Collaborator

@sgugger sgugger commented Apr 7, 2022

What does this PR do?

This PR removes the tests that checks whether models/configs/tokenizers are sorted in the auto mappings such that children classes are before parent classes. While it may have been necessary in the pasts for the AutoXxx APIs to work, this is not longer the case and this actually makes it harder on contributors to add new models.

Also, in the future we could have a script like isort that enforces all those auto-mappings are alphabetically sorted.

Copy link
Contributor

@NielsRogge NielsRogge left a comment

Choose a reason for hiding this comment

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

Thanks, this will hopefully make all TAPEX tests pass.

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!

@sgugger sgugger merged commit 389f661 into main Apr 7, 2022
@sgugger sgugger deleted the remove_child_tests branch April 7, 2022 15:05
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants