Skip to content

Large head attention tests: skip the kernel tests on ROCm, where the router never engages - #17851

Merged
danielhanchen merged 2 commits into
mainfrom
rocm-large-head-tests
Nov 15, 2026
Merged

danielhanchen merged 2 commits into
mainfrom
rocm-large-head-tests

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

tests/test_large_head_attention.py fails on AMD GPUs even though the kernel behaves as designed there. This is a test-only fix.

Cause

The kernel tests are gated on _SM80 = has_real_cuda() and capability[0] >= 8. A ROCm device reports its gfx version as the capability (gfx1151 reports (11, 5)), so the gate opens on AMD. But patch_large_head_attention and the router refuse ROCm (torch.version.hip), so the kernel never engages there and the tests fail. _SM80 now also requires torch.version.hip is None, which matches the router's own gate.

Evidence (AMD gfx1151 CI, base vs head in the same job)

main this PR
Linux / ROCm 7.13 10 failures in the file 0 failures, 17 skipped
Windows 11 / ROCm 7.14 test_self_check_per_head_dim (added in #17817) and the same set fail same gate; not re-run, because the CI patch step is Linux-only

Nothing changes on NVIDIA. Gemma-4 training on gfx1151 is identical before and after #17817.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T16:30:57.991508Z e169809 Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🎉

Reviewed commit: e169809366

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

[skip ci]
@danielhanchen
danielhanchen merged commit 451abae into main Nov 15, 2026
@danielhanchen
danielhanchen deleted the rocm-large-head-tests branch November 15, 2026 16:56
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.

1 participant