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

Generate: remove flakyness in test_generate_from_inputs_embeds_decoder_only #33602

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gante
Copy link
Member

@gante gante commented Sep 19, 2024

What does this PR do?

test_generate_from_inputs_embeds_decoder_only had low probability of failure... but not zero (see #33593 and its CI runs)

Instead of assuming that calling generate with random inputs_embeds will result in a different text, let's check the scores instead. Even if the output text is the same (unlikely), the token scores are almost guaranteed to be different.

@HuggingFaceDocBuilderDev

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.

@gante
Copy link
Member Author

gante commented Sep 19, 2024

hah, a PR to fight flakiness got stuck in another flaky test 🙃

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.

2 participants