Skip to content

Studio tests: the ROCm xformers parity check pins both aiter outcomes since #18924 - #18942

Merged
danielhanchen merged 1 commit into
mainfrom
fix/xformers-parity-aiter-usable
Nov 22, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/xformers-parity-aiter-usable

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Backend tests (the (Python 3.13, rest) shard) is red on main since #18924:

tests/test_xformers_stub_diffusion_parity.py:407: in test_xformers_is_never_selected_on_a_rocm_target
E   AssertionError: assert None == 'aiter'

Both ROCm wheel parametrizations fail. It shows on unrelated PRs, for example the staging run for #18737, which only touches translate files.

#18924 made an explicit aiter pick on ROCm run the auto pick when diffusers has no usable local aiter backend (_diffusers_aiter_usable()), so the pick no longer fails mid-render. That change is correct. #18924 patched _diffusers_aiter_usable in its own tests, but this older parity test still asserted that aiter is always honoured on a ROCm target. On a runner whose diffusers has no local aiter backend, which is every CI runner, that is no longer true.

Fix

The test now pins both outcomes explicitly instead of depending on the runner's diffusers:

  • With _diffusers_aiter_usable returning True, an aiter pick on ROCm is still aiter.
  • With it returning False, an aiter pick resolves to the same backend as auto.

The xformers assertions the test exists for are unchanged. Only the test changes.

Testing

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 22, 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-22T19:43:15.430725Z 61765e1 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. Chef's kiss.

Reviewed commit: 61765e1356

ℹ️ 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".

@danielhanchen
danielhanchen merged commit 44f0243 into main Nov 22, 2026
@danielhanchen
danielhanchen deleted the fix/xformers-parity-aiter-usable branch November 22, 2026 19:44
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