[CUDA] Run FlashAttention regression test only when FlashAttention is available#27206
Merged
hariharans29 merged 3 commits intomainfrom Feb 4, 2026
Merged
[CUDA] Run FlashAttention regression test only when FlashAttention is available#27206hariharans29 merged 3 commits intomainfrom
hariharans29 merged 3 commits intomainfrom
Conversation
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a conditional skip decorator to the TestGQARegressions test class to prevent FlashAttention regression tests from running when FlashAttention is not available on the system. This helps unblock CI build pipelines that may not have the necessary CUDA support or hardware requirements.
Changes:
- Added
@unittest.skipIfdecorator toTestGQARegressionsclass to skip tests when FlashAttention is unavailable
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
tianleiwu
approved these changes
Jan 29, 2026
titaiwangms
approved these changes
Jan 30, 2026
tianleiwu
pushed a commit
that referenced
this pull request
Feb 4, 2026
… available (#27206) ### Description As title. Checking if FlashAttention exists check includes if torch has CUDA support, the system has the right device to run FlashAttention, etc. ### Motivation and Context Fix Windows CUDA CI failures --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
tianleiwu
added a commit
that referenced
this pull request
Feb 4, 2026
#27021: [Disable matmul 1d tests on DML](1afc8bc) #27206: [[CUDA] Run FlashAttention regression test only when FlashAttention is…](4d95d97) #27120: [POWER : Fix build failure due to unsupported cpuinfo on ppc64le](2843ec0) --------- Co-authored-by: Ti-Tai Wang <titaiwang@microsoft.com> Co-authored-by: Hariharan Seshadri <shariharan91@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: BODAPATIMAHESH <148746454+BODAPATIMAHESH@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
As title.
Checking if FlashAttention exists check includes if torch has CUDA support, the system has the right device to run FlashAttention, etc.
Motivation and Context
Fix Windows CUDA CI failures