Repository navigation
[Triton/Gluon] [CI] Fix Flash Attention CI failures - #5687
Conversation
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
PR title tags & labels: |
|
@gyohuangxin This pr should address the flash attention ci problems. It depends on Dao-AILab/flash-attention#2900 so I will ping when it is ready to merge. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The installer is missing from CI path filters and may omit required Flash Attention dependencies.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 1
Open (1)
What changed in this PR
This PR centralizes Flash Attention installation for CI, using the tested aiter checkout and upstream’s system-aiter flag.
Changes:
- Adds a shared Flash Attention installation script.
- Updates Linux and Windows CI jobs to use it.
- Preserves aiter-first installation ordering.
| File | Summary | Findings |
|---|---|---|
.github/scripts/install_flash_attention.sh |
Installs aiter, then Flash Attention. | Two moderate issues: add the script to workflow path filters; avoid --no-deps or explicitly install required dependencies. |
.github/workflows/flash_attention_integration.yaml |
Uses the shared installer in CI jobs. | Moderate issue: add the installer to push, pull_request, and prechecks.shared path filters. |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ade7453 to
2da6308
Compare
2da6308 to
006d8ba
Compare
8b1718e to
5f8bee2
Compare
af65f6c to
7ca6877
Compare
@gyohuangxin Sorry for the delay. Can you take a look? The CI is green. |
gyohuangxin
left a comment
There was a problem hiding this comment.
LGTM, thanks for the fix. I am not familiar with the attention code, so do you think it should also be reviewed by the attention folks? If you think it is good to go, please feel free to merge it.
- Pick up .github/scripts/install_flash_attention.sh from ROCm#5687, which the Flash Attention CI workflow now calls


Motivation
This pr fixes recent flash attention CI failures. See #5611. It requires Dao-AILab/flash-attention#2900 to be merged first.
Technical Details
We put up a pr Dao-AILab/flash-attention#2900 that adds a flag in upstream flash attention that allows for it to use a local aiter install. In addition to bumping the aiter commit to fix the
flydsldependency issue.In this pr, we centralize flash attention installation into a script that uses the new flag. We also fix issues that we encountered while reenabling ci. We simplify the kernel, centralize masking and restore gradient original sizes after padding.
Test Plan
The ci regressions should be passing now.
Test Result
Submission Checklist