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

Mark test_eager_matches_sdpa_generate flaky for some models #29479

Merged
merged 5 commits into from
Mar 29, 2024
Merged

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Mar 6, 2024

What does this PR do?

cc @fxmarty

@ydshieh ydshieh requested a review from ArthurZucker March 6, 2024 09:58
@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.

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These should not be flaky, I think it means there is an issue in the implemented sdpa vs eager! Or do they pass with 3 attempts?

@fxmarty
Copy link
Contributor

fxmarty commented Mar 18, 2024

Apart from qwen2 (that is bugged and I did not work on), other tests are simply flacky. In my experience (for inference) this had no impact on e.g. generation.

see pytorch/pytorch#103462 for numerical differences (although for gradients there)

Copy link
Collaborator

@ArthurZucker ArthurZucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright thanks then!

@ydshieh
Copy link
Collaborator Author

ydshieh commented Mar 27, 2024

I will remove the one for qwen2.

@fxmarty
Copy link
Contributor

fxmarty commented Mar 27, 2024

For qwen2 I think we should find which one of eager/sdpa is correct and maybe disable the one that is not until fixed :/

@ydshieh
Copy link
Collaborator Author

ydshieh commented Mar 28, 2024

For qwen2 I think we should find which one of eager/sdpa is correct and maybe disable the one that is not until fixed :/

I can skip it for now.

@ydshieh ydshieh merged commit 43d17c1 into main Mar 29, 2024
18 checks passed
@ydshieh ydshieh deleted the mark_flaky branch March 29, 2024 10:51
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