Repository navigation
INT8 attention long-probe test: fakes follow quantise / _cuda_attention mode (diffusion red since #18004) - #18035
Merged
Merged
Conversation
…nt, and check the real signatures
Member
Author
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Breezy! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
#18004 (INT8 attention on by default) gave
quantiseand_cuda_attentionincore/inference/diffusion_int8_attention.pya newmodeargument.studio/backend/tests/test_diffusion_int8_attention_long_probe.py(from #17796) replaces both with CPU stand-ins that still take the old arguments. All 7 tests in the file fail on main, which makes(Python 3.13, diffusion)red for every PR based onb2ad0b4493or later:The
KeyErrorand the failed asserts follow from the sameTypeError: the card check catches the error from the stand-in and reports a failed check, so the assertions about what it verified fail. With only the stand-ins updated, all 7 pass.The change in #18004 is fine. The test's fakes did not follow it.
Change
quantisetakesmode(defaultMODE_MAIN), and the_cuda_attentionstand-in becomes a function with the same parameters as the real one and passesmodethrough._fake_cardnow checks that each stand-in takes exactly the real function's parameters, by name. The next signature change then fails every test withupdate the fake quantise: it takes [...], instead of aTypeErrorthat the card check swallows and turns into confusing assertion failures.No production code changes.
Verification
tests/test_diffusion_int8_attention_long_probe.py: 7 failed on main, 7 passed with this change.quantisemakes all 7 fail with theupdate the fake quantisemessage.tests/test_diffusion_int8*.pyandtests/test_diffusion_attention*.py: 1044 passed, 307 skipped.