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

Generate: skip tests on unsupported models instead of passing #27265

Merged
merged 2 commits into from
Nov 7, 2023

Conversation

gante
Copy link
Member

@gante gante commented Nov 3, 2023

What does this PR do?

Skip tests on unsupported models instead of passing, as discussed in #25086

NOTE: I've skipped to whole test in the loop over different heads as soon as it encountered a problem because a) the reason for the skips in generate is always due to some core property of the architecture (AFAIK) b) simplicity

Copy link
Collaborator

@amyeroberts amyeroberts left a comment

Choose a reason for hiding this comment

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

Thanks for adding this! ❤️

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Nov 3, 2023

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

if any(model_name in model_class.__name__.lower() for model_name in ["umt5"]):
return
self.skipTest("TODO: needs modeling or test input preparation fixes for compatibility")
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is better, but as we are in for model_class in self.all_generative_model_classes, it probably means we skip many model_class unnecessary if a previous one is skipped here.

Good to merge. I can do a follow up PR to use subTest (as an exercise for me)

Copy link
Collaborator

Choose a reason for hiding this comment

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

After a second look, subTest doesn't make much sense here.

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.

Nice!

@gante gante merged commit 90b4adc into huggingface:main Nov 7, 2023
18 checks passed
@gante gante deleted the return_kv_tests branch November 7, 2023 12:08
EduardoPach pushed a commit to EduardoPach/transformers that referenced this pull request Nov 19, 2023
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