-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Fix some TFWhisperModelIntegrationTests
#24428
Conversation
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, thanks for fixing!
The documentation is not available anymore as the PR was closed or merged. |
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- thanks for fixing!
Regarding the PyTorch tests failing with the same inputs - how do they fail?
It gives different outputs |
I am very sorry, I was doing something stupid and made wrong claims. The (Some of) The previous failing tests pass as the 2 problematic arguments to I will look in more depth. |
7b28857
to
f968f55
Compare
Well, I finally decided to overwrite |
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! Needs testing for prompt_ids
otherwise lgtm! Also we don't need part of the legacy things for timestamps since it was never supported in TF (just in case)
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 for adding the generate logic and fixing this!
+1 on @ArthurZucker's comment about adding the tests
Co-authored-by: amyeroberts <[email protected]>
Co-authored-by: amyeroberts <[email protected]>
What does this PR do?
(Probably since the introduction of
GenerationConfig
), some TF Whisper Integration tests fail with errorFrom my understanding, we should pass some arguments via
generation_kwargs
.Note that
WhisperForConditionalGeneartion
has its customgenerate
butTFWhisperForConditionalGeneartion
doesn't.We are somehow in a trouble of the inconsistency between PT/TF.
(Not sure if we should overwrite
generate
inTFWhisperForConditionalGeneartion
.)