-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
Less flaky test_assisted_decoding_matches_greedy_search
#23451
Conversation
config, input_ids, attention_mask, max_length = self._get_input_ids_and_config(batch_size=1) | ||
# This for loop is a naive and temporary effort to make the test less flaky. | ||
failures = [] | ||
for i in range(10): |
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.
with this for loop, each test's runtime increases by ~1 second
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.
👍
I'm also okay with moving to a slow test -- from what I've seen, we either have a hard (non-numerical) exception or the method is fine for the model (the differences are expected due to masking, as we have discussed before).
…e#23451) * fix * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
…e#23451) * fix * fix --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
What does this PR do?
Less flaky
test_assisted_decoding_matches_greedy_search
: fail only if more than 1 failure among 10.