8000 [tests] remove `test_sdpa_equivalence` (redundant) by gante · Pull Request #37911 · huggingface/transformers · GitHub
[go: up one dir, main page]

Skip to content

[tests] remove test_sdpa_equivalence (redundant) #37911

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

Merged
merged 3 commits into from
May 16, 2025

Conversation

gante
Copy link
Member
@gante gante commented May 1, 2025

What does this PR do?

Was checking our daily failed tests assigned to me from a few days ago, and found this one: tests/models/helium/test_modeling_helium.py::HeliumModelTest::test_sdpa_equivalence. It failed because the tolerance margin is not adequate for fp16.

Upon inspection, this test is a model-level test (not a mixin test) that exists on a few models. It is also a shorter version of an existing mixin test, test_eager_matches_sdpa_inference. The mixin test checks multiple dtypes, flags, etc. As such, test_sdpa_equivalence is a redundant test, and it is removed in this PR.

@gante gante requested a review from ydshieh May 1, 2025 09:55
@github-actions github-actions bot marked this pull request as draft May 1, 2025 09:55
Copy link
Contributor
github-actions bot commented May 1, 2025

Hi 👋, thank you for opening this pull request! The pull request is converted to draft by default. The CI will be paused while the PR is in draft mode. When it is ready for review, please click the Ready for review button (at the bottom of the PR page). This will assign reviewers and trigger CI.

@gante gante marked this pull request as ready for review May 1, 2025 09:55
@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
@ydshieh ydshieh left a comment

Choose a reason for hiding this comment

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

Sorry for being late here.

Nice, and Oh my god who wrote these tests 😡 !

Thank you

@gante gante merged commit 40a493c into huggingface:main May 16, 2025
14 checks passed
@gante gante deleted the rm_test_sdpa_equivalence branch May 16, 2025 17:37
xvyv99 pushed a commit to xvyv99/transformers that referenced this pull request May 19, 2025
* rm test_sdpa_equivalence

* make fixup

---------

Co-authored-by: Yih-Dar <2521628+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.

3 participants
0