Repository navigation
Diffusion route tests: pin a compiling host for the tests that expect fp8 to be admitted - #16993
Merged
Merged
Conversation
… fp8 to be admitted Three precision-gate tests assert a pipeline fp8 request is admitted but never said the host can compile, so on a runner without Triton (the Windows cross-platform leg) compile_eligible() is False and the gate rightly refuses with 'this process cannot run a torch.compile', failing four tests. Pin compile_eligible to True there, mirroring the refusal test that already pins it to False.
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. Bravo. 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
The Windows cross-platform leg fails four tests in
studio/backend/tests/test_diffusion_routes.pywhenever a PR's selection includes that file (seen today on #16815, which only changes sd.cpp error output):These tests check that the precision gate admits a pipeline fp8 request. The gate also refuses fp8 when
compile_eligible()says the process cannot compile, because an uncompiled torchao transformer runs far slower than the bf16 it replaces. That refusal is correct and has its own test,test_a_process_that_cannot_compile_refuses_a_pipeline_precision_up_front, which pinscompile_eligibletoFalse. The admitting tests never pinned it the other way, so they only pass on a host that can actually compile. The Windows runner has no Triton, so the gate refuses there and the tests fail.This is not new: running these tests with
TORCHDYNAMO_DISABLE=1fails the same four on main and on main as of 2026-10-01. It only shows up when a cross-platform Windows leg selects this file.Change
studio/backend/tests/test_diffusion_routes.py, tests only:_pipeline_precision_gate,test_a_pipeline_pick_may_pin_a_precisionandtest_a_transformer_family_still_reaches_the_scheme_checkpincompile_eligibletoTrue, next to thedense_transformer_supportedpin they already set. Product code is unchanged, and the refusal test keeps pinningFalse.Testing
tests/test_diffusion_routes.pyin full, CPU torch 2.10:TORCHDYNAMO_DISABLE=1(as on a host without Triton)