Skip to content

[staging] #12937 Studio: build VAE tile blend weights on CPU so MPS tiled encode works - #145

Closed
Lyxot wants to merge 4 commits into
staging/12937-basefrom
staging/12937-vae-tiling-mps-float64
Closed

Lyxot wants to merge 4 commits into
staging/12937-basefrom
staging/12937-vae-tiling-mps-float64

Conversation

@Lyxot

@Lyxot Lyxot commented Oct 8, 2026

Copy link
Copy Markdown
Owner

Staging run for unslothai#12937 (same head) for CI and review. The base is the upstream main the head was merged with, so the diff is the PR's own changes.

gokay-ai and others added 4 commits October 7, 2026 13:33
axis_weights() in diffusion_vae_tiling built its float64 weights directly on
the target device, so a tiled encode on Apple Silicon raised before the first
step (MPS has no float64). Build them on CPU and move only the fp32 result,
matching video_ltx2_vae_tiles.axis_weights.

Fixes unslothai#12935

Signed-off-by: GokayAI <[email protected]>
…ks float64

The tile blend weights were moved to an unconditional CPU build to keep float64 off MPS. Gate that on the device's float64 capability instead, the way the RoPE demotion already is: a device with float64 builds them in place exactly as before, and only MPS builds on CPU and receives the fp32 result. The regression test now watches every tensor the build produces rather than the constructor arguments, so a float64 tensor reaching the device through a later move or cast is caught too.
…E tiles

The LTX-2 axis_weights was a copy of the image one that differed only in its default margin and ramp, and the image copy missed the MPS float64 handling the LTX-2 copy had. Delegate to the image implementation with the LTX-2 defaults so the float64 capability is decided in one place.
@Lyxot

Lyxot commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T06:52:00.103333Z e9ca0e2 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: e9ca0e2d4b

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

@Lyxot

Lyxot commented Oct 8, 2026

Copy link
Copy Markdown
Owner Author

Converged at e9ca0e2d4b; results posted on unslothai#12937.

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.

2 participants