Skip to content

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

@gante gante requested review from amyeroberts and ydshieh November 3, 2023 10:59
Copy link
Contributor

@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.

self.skipTest("Won't fix: old model with unique inputs/caches/other")
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
@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