Skip to content

🚨 [ROCm] gpt-oss: route FA3 to aiter-flash-attn, generate ROCm fixtures - #46837

Merged
Abdennacer-Badaoui merged 12 commits into
huggingface:mainfrom
Abdennacer-Badaoui:fix-gptoss
Sep 24, 2026
Merged

Abdennacer-Badaoui merged 12 commits into
huggingface:mainfrom
Abdennacer-Badaoui:fix-gptoss

Conversation

@Abdennacer-Badaoui

@Abdennacer-Badaoui Abdennacer-Badaoui commented Jun 23, 2026 •

Copy link
Copy Markdown
Member

CPU CI GPU run-slow

On ROCm, gpt-oss now routes the FA3-style attention to kernels-community/aiter-flash-attn (_compatible_flash_implementations) and generates separate ROCm fixtures (non-distributed + tp_size=2). Configs that depend on kernels-community/megablocks are skipped because it doesn't ship a ROCm build for torch 2.10 (the version the AMD CI runs today) we have the ones for 2.11 and 2.12, and configs that hit kernels-community/sonic-moe are skipped since that kernel has no ROCm build yet.
Fixes around 140 failing tests.

@Abdennacer-Badaoui
Abdennacer-Badaoui marked this pull request as draft June 23, 2026 08:49
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@Abdennacer-Badaoui
Abdennacer-Badaoui marked this pull request as ready for review June 23, 2026 09:53
@Abdennacer-Badaoui
Abdennacer-Badaoui requested a review from vasqu June 23, 2026 09:53

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Have a few comments, especially hesitant on the tests side because we change a few things that would break the original cuda fixtures so gotta be a bit careful

vasqu
vasqu previously approved these changes Jun 23, 2026

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks, merging 🤗

@vasqu
vasqu added this pull request to the merge queue Jun 23, 2026
@vasqu
vasqu removed this pull request from the merge queue due to a manual request Jun 23, 2026
@vasqu
vasqu dismissed their stale review June 23, 2026 14:23

Noticed significanlty different outputs across eager vs fa

@Abdennacer-Badaoui

Copy link
Copy Markdown
Member Author

This PR allows multiple different names for the same argument (especially for sinks): #45153.
Once it's merged, our aiter-flash-attn can keep using sink as the argument name.

@Abdennacer-Badaoui
Abdennacer-Badaoui marked this pull request as draft June 23, 2026 15:33
@Abdennacer-Badaoui
Abdennacer-Badaoui marked this pull request as ready for review September 24, 2026 09:04
# Conflicts:
#	src/transformers/models/gpt_oss/modeling_gpt_oss.py
#	src/transformers/models/gpt_oss/modular_gpt_oss.py
#	src/transformers/models/openai_privacy_filter/modeling_openai_privacy_filter.py
#	tests/models/gpt_oss/test_modeling_gpt_oss.py
#	tests/test_modeling_common.py
@Abdennacer-Badaoui

Copy link
Copy Markdown
Member Author

run-slow: gpt_oss, openai_privacy_filter

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks overall good just smaller comments

@Abdennacer-Badaoui

Copy link
Copy Markdown
Member Author

run-slow: gpt_oss, openai_privacy_filter

@github-actions

Copy link
Copy Markdown
Contributor

AMD CI

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs on AMD:

models: ["models/gpt_oss", "models/openai_privacy_filter"]

@github-actions

Copy link
Copy Markdown
Contributor

Nvidia CI

Workflow Run ⚙️

This comment contains run-slow, running the specified jobs on Nvidia:

models: ["models/gpt_oss", "models/openai_privacy_filter"]
quantizations: []

@github-actions

Copy link
Copy Markdown
Contributor

CI Results (Nvidia)

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN a1be2f91 workflow commit (merge commit)
PR 7c6890b3 branch commit (from PR)
main 93b45aa9 base commit (on main)

✅ No failing test specific to this PR 🎉 👏 !

@github-actions

Copy link
Copy Markdown
Contributor

CI Results (AMD)

Workflow Run ⚙️

Commit Info

Context Commit Description
RUN a1be2f91 workflow commit (merge commit)
PR 7c6890b3 branch commit (from PR)
main 93b45aa9 base commit (on main)

✅ No failing test specific to this PR 🎉 👏 !

@vasqu vasqu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Last comment but then good to merge 🫡 a hw dependent fallback would be a nice follow up but not here then

@Abdennacer-Badaoui Abdennacer-Badaoui changed the title [ROCm] gpt-oss: route FA3 to aiter-flash-attn, generate ROCm fixtures 🚨 [ROCm] gpt-oss: route FA3 to aiter-flash-attn, generate ROCm fixtures Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: gpt_oss, openai_privacy_filter

@huggingface huggingface deleted a comment from github-actions Bot Sep 24, 2026
@Abdennacer-Badaoui
Abdennacer-Badaoui added this pull request to the merge queue Sep 24, 2026
@github-actions

Copy link
Copy Markdown
Contributor

CI recap

Dashboard: View test results in Grafana
Latest run: 36008217462:1
Result: success | Jobs: 1 | Tests: 19 | Failures: 0 | Duration: 2m 4s

Merged via the queue into huggingface:main with commit 763a150 Sep 24, 2026
113 checks passed
@Abdennacer-Badaoui
Abdennacer-Badaoui deleted the fix-gptoss branch September 24, 2026 14:15
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