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

Fix check_decoder_model_past_large_inputs for class TFBartModelTest #18980

Merged
merged 1 commit into from
Sep 12, 2022

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Sep 12, 2022

What does this PR do?

The usage of decoder_position_ids in check_decoder_model_past_large_inputs will produce different results when the initial attention mask (i.e. the called past) contains 0, and makes the test flaky.

This PR remove check_decoder_model_past_large_inputs from this test. This also makes the test identical to its PT equivalent test, as well as the test implemented in other TF models.

@ydshieh ydshieh requested review from gante and sgugger September 12, 2022 08:56
@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented Sep 12, 2022

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

Copy link
Member

@gante gante 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 fixing 🙏

@ydshieh ydshieh merged commit 0b36970 into main Sep 12, 2022
@ydshieh ydshieh deleted the fix_tf_bart_test branch September 12, 2022 13:19
oneraghavan pushed a commit to oneraghavan/transformers that referenced this pull request Sep 26, 2022
…puts` (huggingface#18980)

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
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