Skip to content

[tests] enhance attention backend tests - #12830

Open
sayakpaul wants to merge 2 commits into
mainfrom
attention-backend-tests
Open

[tests] enhance attention backend tests#12830
sayakpaul wants to merge 2 commits into
mainfrom
attention-backend-tests

Conversation

@sayakpaul

Copy link
Copy Markdown
Member

What does this PR do?

Even though we will have separate unit-level testing for attention backends in #12822, I think it's still nice to have integration tests.

This PR:

  • Change from torch.allclose() to numpy_cosine_similarity().
  • Change numpy_cosine_similarity to accept torch tensors.

This also helps us relax the environmental constraints.

@sayakpaul
sayakpaul requested review from DN6 and dg845 December 12, 2025 07:58
@github-actions

Copy link
Copy Markdown
Contributor

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions Bot added the stale Issues that haven't received updates label Jan 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Issues that haven't received updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant