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

Use self.config_tester.run_common_tests() #31431

Conversation

amyeroberts
Copy link
Collaborator

@amyeroberts amyeroberts commented Jun 14, 2024

What does this PR do?

Remove overrides of test_config to use self.config_test.run_common_tests(). This makes sure all of the config tests in test_configuration_common.py are being run

In some cases, common_properties is set when creating the config tester. This is a bit hacky, but as common_properties isn't that well defined in the original test I think this is OK until we split into different testing modalities.

c.f. #31359 (review)

@amyeroberts amyeroberts changed the title First testing updating config tests Test config properties for vision models Jun 14, 2024
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@amyeroberts amyeroberts changed the title Test config properties for vision models Use self.config_tester.run_common_tests() Jun 18, 2024
@amyeroberts amyeroberts force-pushed the test-vision-config-properties-properly branch from 7059510 to c16a8b0 Compare June 18, 2024 18:32
@amyeroberts amyeroberts marked this pull request as ready for review June 18, 2024 18:44
@amyeroberts amyeroberts requested a review from ydshieh June 18, 2024 18:46
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.

Thank you for taking care of this. LGTM.

@amyeroberts amyeroberts merged commit 609e662 into huggingface:main Jun 19, 2024
23 checks passed
@amyeroberts amyeroberts deleted the test-vision-config-properties-properly branch June 19, 2024 09:18
@amyeroberts amyeroberts mentioned this pull request Jun 19, 2024
7 tasks
itazap pushed a commit that referenced this pull request Jun 20, 2024
* First testing updating config tests

* Use run_common_tests
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.

3 participants