Skip to content

[Triton/Gluon] [CI] Fix Flash Attention CI failures - #5687

Merged
azaidy merged 2 commits into
ROCm:mainfrom
micmelesse:micmelesse/fa_system_aiter
Oct 20, 2026
Merged

azaidy merged 2 commits into
ROCm:mainfrom
micmelesse:micmelesse/fa_system_aiter

Conversation

@micmelesse

@micmelesse micmelesse commented Sep 19, 2026 •

Copy link
Copy Markdown
Contributor

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 flydsl dependency 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

@github-actions

Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests on MI35X (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:gfx1250-ffm-triton Run the five-shard gfx1250 FFM Triton test suite
ci:triton-300x Run an additional Triton test job on MI300X in PRs; main branch always runs both MI35X and MI300X
multigpu Aiter multi-GPU tests on the 8-GPU runner
ci:sglang SGLang integration tests: DeepSeek-R1-MXFP4 accuracy, Qwen 3.5 accuracy
ci:atom ATOM benchmark: DeepSeek-R1-0528, GPT-OSS-120B
ci:atom_full ATOM accuracy suite for PR and main models from ATOM models_accuracy.json
ci:vllm vLLM benchmark: GPT-OSS-120B, DeepSeek-R1-0528, Kimi-K2.5
ci:all All standard extended tests (excludes ci:atom_full)

Only add ci:atom_full for FlyDSL or Triton upgrades.
Add labels via the sidebar or gh pr edit 5687 --add-label <label>

PR title tags & labels:
Component tags ([Triton/Gluon], [HIP], [CK], [ASM], ...) are added to the PR title and as PR labels automatically from the changed files and re-synced on every push — change-type tags like [fix]/[Perf], op tags like [MLA], and human labels (ci:*) are left untouched. Add the no-auto-title label to opt this PR out.

@micmelesse
micmelesse marked this pull request as ready for review September 19, 2026 21:41
@micmelesse
micmelesse requested review from a team and a lite review from Copilot September 19, 2026 21:41
@github-actions github-actions Bot added the CI label Sep 19, 2026
@micmelesse

Copy link
Copy Markdown
Contributor Author

@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.

@micmelesse
micmelesse marked this pull request as draft September 19, 2026 21:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 Medium severity

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.

@micmelesse
micmelesse force-pushed the micmelesse/fa_system_aiter branch from ade7453 to 2da6308 Compare October 5, 2026 18:36
@micmelesse
micmelesse force-pushed the micmelesse/fa_system_aiter branch from 2da6308 to 006d8ba Compare October 8, 2026 20:45
@micmelesse
micmelesse force-pushed the micmelesse/fa_system_aiter branch from 8b1718e to 5f8bee2 Compare October 15, 2026 20:47
@micmelesse
micmelesse marked this pull request as ready for review October 17, 2026 19:31
Copilot AI lite review requested due to automatic review settings October 17, 2026 19:31
@github-actions github-actions Bot changed the title [CI] Fix Flash Attention CI failures [Triton/Gluon] [CI] Fix Flash Attention CI failures Oct 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Installer configuration, CI filtering, scope separation, and focused runtime test coverage remain unresolved.

2 open issues
1 resolved since last review

Review effort: Lite

Copilot AI lite review requested due to automatic review settings October 19, 2026 17:12
@micmelesse
micmelesse force-pushed the micmelesse/fa_system_aiter branch from af65f6c to 7ca6877 Compare October 19, 2026 17:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

Runtime attention changes need documentation and coverage, and the test should avoid a private-kernel dependency.

2 open issues
1 resolved since last review

Review effort: Lite

Comment thread aiter/ops/triton/attention/mha.py Resolved
Copilot AI lite review requested due to automatic review settings October 19, 2026 17:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

A critical Windows CI installation failure and additional unresolved test coverage and dispatch issues remain.

1 open issue
2 resolved since last review

Review effort: Lite

@micmelesse

Copy link
Copy Markdown
Contributor Author

@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.

@gyohuangxin Sorry for the delay. Can you take a look? The CI is green.

@gyohuangxin gyohuangxin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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.

@micmelesse
micmelesse requested a review from azaidy October 20, 2026 17:25
@azaidy
azaidy merged commit 48d598c into ROCm:main Oct 20, 2026
yuychang added a commit to yuychang/aiter that referenced this pull request Oct 21, 2026
- Pick up .github/scripts/install_flash_attention.sh from ROCm#5687, which the Flash Attention CI workflow now calls
@micmelesse
micmelesse deleted the micmelesse/fa_system_aiter branch November 14, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants