Skip to content

Studio: Optional[...] in the Lanczos reference signature, and register the two-card Wan decode with the VAE seam guard (main reds) - #18945

Merged
danielhanchen merged 1 commit into
mainfrom
fix/main-reds-lanczos-unions-vae-multigpu
Nov 22, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
fix/main-reds-lanczos-unions-vae-multigpu

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Summary

Two checks are red on main and fail on every PR that runs them, for example the staging run for #18941:

Failing check Introduced by Which side was wrong Fix
tests/test_python39_compatibility.py::test_studio_evaluated_unions_do_not_grow (Core, all three combos): "36 studio files now evaluate PEP 604 unions on the floor, against 35 recorded" #18917 added core/inference/diffusion_lanczos_triton.py Code. Its public entry point declares crop, mean and std as tuple[...] | None, which is evaluated when the function is defined and raises TypeError on Python 3.9. Those three parameters become Optional[tuple[...]]. No from __future__ import annotations: the module's Triton kernels read their tl.constexpr annotations, which that import would turn into strings.
studio/backend/tests/test_vae_tile_geometry.py::test_every_tiled_decode_patch_is_probed (seam-guard): "['video_vae_multigpu'] rebind a VAE's tiled_decode but expose no install(vae) this guard applies" #18829 added core/inference/video_vae_multigpu.py Test registry. The module mirrors the stock AutoencoderKLWan.tiled_decode body (checked by AST fingerprint) and only shares its tiles between two cards. It keeps the stock tile grid, and test_video_vae_multigpu.py::test_split_tiles_match_the_stock_tiled_decode_bitwise proves it. Its install(pipe, partner) takes a pipeline, not a VAE, so the guard cannot apply it. Listed in GEOMETRY_PRESERVING with that reason, which is the remedy the guard's message names for a module that keeps the stock tiles.

Neither fix changes behaviour.

Testing

  • tests/test_python39_compatibility.py: fails on main with the message above, 8 passed with this change.
  • tests/test_vae_tile_geometry.py and tests/test_video_vae_multigpu.py: test_every_tiled_decode_patch_is_probed fails on main. With this change, 55 passed, 2 skipped, 2 xfailed (the recorded known seams).
  • tests/test_diffusion_ref_preprocess.py and tests/test_diffusion_ref_preprocess_gate.py, the suites that exercise the Lanczos module: 33 passed.
  • ruff check --select F on the Lanczos module: clean.

… the two-card Wan decode with the VAE seam guard (main reds)
@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-22T20:07:45.514414Z 2cb9437 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. What shall we delve into next?

Reviewed commit: 2cb9437c56

ℹ️ 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 e1661d2 into main Nov 22, 2026
@danielhanchen
danielhanchen deleted the fix/main-reds-lanczos-unions-vae-multigpu branch November 22, 2026 20:09
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