-
Notifications
You must be signed in to change notification settings - Fork 31.7k
[tests] remove tf/flax tests in /generation
#36235
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
Conversation
|
|
||
| @pytest.mark.generate | ||
| @require_torch | ||
| class GenerationIntegrationTests(unittest.TestCase, GenerationIntegrationTestsMixin): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GenerationIntegrationTestsMixin contained integration tests shared across frameworks. They were moved here. A few redundant tests were removed in the process (e.g. max_new_tokens checks, which are part of the tests in GenerationTesterMixin)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were moved here
You mean those tests are moved to this class in this PR, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved from GenerationIntegrationTestsMixin [deleted] to GenerationIntegrationTests , yes :)
/generation/generation
|
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. |
ydshieh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, especially you have talked to the core maintainers!
Thanks
|
|
||
| @pytest.mark.generate | ||
| @require_torch | ||
| class GenerationIntegrationTests(unittest.TestCase, GenerationIntegrationTestsMixin): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They were moved here
You mean those tests are moved to this class in this PR, right?
What does this PR do?
generatehas a few things that are shared across frameworks. Sometimes, when making core changes, we need to update all three frameworks. Otherwise, we get a red CI (example).Since we're deprecating TF/JAX, this PR removes their tests regarding
generateso that the other frameworks no longer hinder PT-relatedgeneratedevelopment.cc @LysandreJik @ArthurZucker as we chatted on Slack 🤗