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

avoid many failures for ImageGPT #34071

Merged
merged 7 commits into from
Oct 11, 2024
Merged

avoid many failures for ImageGPT #34071

merged 7 commits into from
Oct 11, 2024

Conversation

ydshieh
Copy link
Collaborator

@ydshieh ydshieh commented Oct 10, 2024

What does this PR do?

See comment in the change

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.

Thanks, cc @gante and @zucchini-nlp

Comment on lines +240 to +242
@unittest.skip(
reason="After #33533, this still passes, but many subsequential tests fail with `device-side assert triggered`"
)
Copy link
Member

@zucchini-nlp zucchini-nlp Oct 11, 2024

Choose a reason for hiding this comment

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

just a thought, but can it is be because we need to self.asserts(ValueError) and not RuntimeError? Similar test for video/image_inputs are not causing massive failures

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

But this test itself is still passing, so what the code gives (expected) RuntimeError. Not sure if we can adjust the test to use ValueError.

I can give it a try without any asserts to see if other tests are affected.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think the desired error (here RuntimeError) from such input (remove some images from inputs) causing the cdua in a bad state (I tried without assert it). Not sure what would be best approach if we want such test case. But before we have an idea, just skip it 😅

Copy link
Member

Choose a reason for hiding this comment

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

oke, thanks! Will have it noted for such tests in the future

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@zucchini-nlp Running that test in a subprocess could avoid the issue

main...try_sub

But the necessary change is not super trivial

@ydshieh ydshieh merged commit 7b06473 into main Oct 11, 2024
17 of 20 checks passed
@ydshieh ydshieh deleted the avoid_failure branch October 11, 2024 13:24
NielsRogge pushed a commit to NielsRogge/transformers that referenced this pull request Oct 21, 2024
* skip

* [run-slow] imagegpt

* skip

* [run-slow] imagegpt

* [run-slow] imagegpt,video_llava

* skip

* [run-slow] imagegpt,video_llava

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
BernardZach pushed a commit to BernardZach/transformers that referenced this pull request Dec 5, 2024
* skip

* [run-slow] imagegpt

* skip

* [run-slow] imagegpt

* [run-slow] imagegpt,video_llava

* skip

* [run-slow] imagegpt,video_llava

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
BernardZach pushed a commit to innovationcore/transformers that referenced this pull request Dec 6, 2024
* skip

* [run-slow] imagegpt

* skip

* [run-slow] imagegpt

* [run-slow] imagegpt,video_llava

* skip

* [run-slow] imagegpt,video_llava

---------

Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
  NODES
COMMUNITY 2
Idea 1
idea 1
innovation 1
Note 1
Project 5
USERS 4