Skip to content

Diffusion route tests: pin a compiling host for the tests that expect fp8 to be admitted - #16993

Merged
danielhanchen merged 1 commit into
mainfrom
ci-diffusion-route-tests-pin-compile
Nov 7, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci-diffusion-route-tests-pin-compile

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

The Windows cross-platform leg fails four tests in studio/backend/tests/test_diffusion_routes.py whenever a PR's selection includes that file (seen today on #16815, which only changes sd.cpp error output):

FAILED test_diffusion_routes.py::test_a_pipeline_pick_may_pin_a_precision
FAILED test_diffusion_routes.py::test_a_transformer_family_still_reaches_the_scheme_check
FAILED test_diffusion_routes.py::test_a_whole_module_offload_request_admits_a_pipeline_precision[memory0]
FAILED test_diffusion_routes.py::test_a_whole_module_offload_request_admits_a_pipeline_precision[memory1]
RuntimeError: transformer_quant='fp8' could not be used: this process cannot run a torch.compile (no Triton, TORCHDYNAMO_DISABLE, or a family/device that does not compile), ...

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 pins compile_eligible to False. 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=1 fails 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_precision and test_a_transformer_family_still_reaches_the_scheme_check pin compile_eligible to True, next to the dense_transformer_supported pin they already set. Product code is unchanged, and the refusal test keeps pinning False.

Testing

tests/test_diffusion_routes.py in full, CPU torch 2.10:

compile available TORCHDYNAMO_DISABLE=1 (as on a host without Triton)
main 160 passed 4 failed (the four above), 156 passed
this branch 160 passed 160 passed

… 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.
@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 7, 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-07T08:33:25.202322Z 3a83974 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. Bravo.

Reviewed commit: 3a83974185

ℹ️ 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 add12f4 into main Nov 7, 2026
@danielhanchen
danielhanchen deleted the ci-diffusion-route-tests-pin-compile branch November 7, 2026 08:39
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