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

Tests: remove cuda versions when the result is the same 🧹🧹 #31955

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

gante
Copy link
Member

@gante gante commented Jul 14, 2024

What does this PR do?

Removes the dictionary of possible test outcomes for each cuda version, when ALL outcomes are exactly the same.

Why?

  1. No duplication of redundant information
  2. Future-proofing: the dictionary form requires one entry per each type of device (new cuda compute capability, AMD devices, ...), it's bound to increase over time

Comment on lines -854 to -855
# Note on `EXPECTED_TEXT_COMPLETION`'s diff: the current value matches the original test if the original test
# was changed to have a cache of 53 tokens (as opposed to 4096), on Ampere GPUs.
Copy link
Member Author

Choose a reason for hiding this comment

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

This comment was originally written by me in the equivalent llama test. It was probably copied around -- it does not apply here :)

@gante gante requested a review from amyeroberts July 14, 2024 15:16
@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

@amyeroberts amyeroberts 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 this tidy up 🧹 🧹 🧹 🧹

@gante gante merged commit 999981d into huggingface:main Jul 16, 2024
21 checks passed
@gante gante deleted the cleanup_same_test_results branch July 16, 2024 15:49
amyeroberts pushed a commit to amyeroberts/transformers that referenced this pull request Jul 19, 2024
MHRDYN7 pushed a commit to MHRDYN7/transformers that referenced this pull request Jul 23, 2024
zucchini-nlp pushed a commit to zucchini-nlp/transformers that referenced this pull request Jul 24, 2024
itazap pushed a commit that referenced this pull request Jul 25, 2024
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