-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Whisper: remove redundant assisted generation tests #34814
Whisper: remove redundant assisted generation tests #34814
Conversation
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. |
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.
Thanks a lot for the detailed explanation!
We need to keep the max length changes 🤗
(failures look related to other failures on |
@ArthurZucker @ydshieh ready for review :) (this PR now just removes deprecated features and tests -- see PR header) |
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.
LGTM (with things being explained the PR description), but better to have other maintainers to have a look.
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.
LGTM
* remove redundant test * delete another test * revert default max_length * (wrong place, moving)
What does this PR do?
Part of making CI green in preparation for #34807 (test fetcher fetches generation tests)
Reverts recent defaultmax_length
-related changes. The default max length is20
and, due to recent changes, a different length was being returned in some cases. Whisper was one of the affected models, it was defaulting to a length of21
.test_assisted_decoding_encoder_decoder_shared_encoder
(integration test) -- the point of this test was to test assisted generation with DistilWhisper-like structure, which used to have a custom input (assistant_encoder_outputs
). a) That input is no longer present in Whisper b) the DistilWhisper structure didn't take off, so it's overkill to have an abstract test with dummy classes c) we have other DistilWhisper tests.test_model_kwarg_assisted_decoding_encoder_decoder
(integration test) -- added when DistiWhisper was added. Meanwhile, assisted generation was modified to work with any encoder-decoder model, and we have mixin tests.