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] make tests device-agnostic (part 4) #10508

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

Conversation

faaany
Copy link
Contributor

@faaany faaany commented Jan 9, 2025

What does this PR do?

Follow up of PR #10437

@faaany faaany marked this pull request as ready for review January 22, 2025 02:01
@faaany
Copy link
Contributor Author

faaany commented Jan 22, 2025

@hlky

@faaany
Copy link
Contributor Author

faaany commented Feb 5, 2025

Hi @sayakpaul @hlky @DN6 , could we proceed with this PR? Thx a lot!

Copy link
Member

@sayakpaul sayakpaul left a comment

Choose a reason for hiding this comment

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

Thanks very nuch. Just a single comment for clarification.

@@ -101,7 +102,7 @@ def tearDown(self):
# Keeping this test here makes sense because it doesn't look any integration
# (value assertions on logits).
@slow
@require_torch_gpu
@require_torch_accelerator
Copy link
Member

Choose a reason for hiding this comment

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

Do we need to condition the assertion slices based on the accelerator being used?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we might need to do so. But I plan to submit a follow-up PR for value assertion related issues. Because we need to investigate whether this is not a bug in our own software stack.

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