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: skip left-padding tests on old models #23437

Merged
merged 2 commits into from
May 18, 2023

Conversation

gante
Copy link
Member

@gante gante commented May 17, 2023

What does this PR do?

We have a few left-padding tests polluting our daily CI -- these are from old models, where it is not worth committing >1hr per model to add support for left padding.

This PR skips the test in those models, so we can focus our energy where it matters :)

@gante gante requested review from ydshieh and amyeroberts May 17, 2023 18:30
@@ -1516,3 +1516,7 @@ def test_retain_grad_hidden_states_attentions(self):

def test_save_load_fast_init_from_base(self):
pass

@unittest.skip("The model doesn't support left padding") # and it's not used enough to be worth fixing :)
Copy link
Member Author

@gante gante May 17, 2023

Choose a reason for hiding this comment

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

Note that this is not Bart, but the BartDecoder used as a stand-alone model. 11 out of the 16 skips below follow this pattern, a decoder used as a stand-alone model (which is not very used in practice, afaik).

The exceptions are CTRL, ImageGPT, Reformer, and TransfoXL

@HuggingFaceDocBuilderDev
Copy link

HuggingFaceDocBuilderDev commented May 17, 2023

The documentation is not available anymore as the PR was closed or merged.

@gante
Copy link
Member Author

gante commented May 17, 2023

It seems like GPTBigCode need to be fixed! Adding back the @slow to defer back fixing

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.

Thank you! I am more than happy to see a cleaner daily CI report + You are the king of generation --> 200% approval for this PR from my side.

@ydshieh
Copy link
Collaborator

ydshieh commented May 18, 2023

@gante it all passes now 😄

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 adding!

@gante gante merged commit aea7b23 into huggingface:main May 18, 2023
@gante gante deleted the left_padding_tests branch May 18, 2023 10:04
sheonhan pushed a commit to sheonhan/transformers that referenced this pull request Jun 1, 2023
gojiteji pushed a commit to gojiteji/transformers that referenced this pull request Jun 5, 2023
novice03 pushed a commit to novice03/transformers that referenced this pull request Jun 23, 2023
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