Skip to content

(closed) - #1

Closed
luca-888 wants to merge 1 commit into
mainfrom
vae-drop-residual-input-clone
Closed

luca-888 wants to merge 1 commit into
mainfrom
vae-drop-residual-input-clone

Conversation

@luca-888

@luca-888 luca-888 commented Oct 14, 2026 •

Copy link
Copy Markdown
Owner

No description provided.

…al up/down blocks

`WanResidualDownBlock`/`WanResidualUpBlock` (and the QwenImage21 copies)
clone the block input before running the main path, only to feed it to the
`avg_shortcut` branch. Nothing in the main path writes to its input in place,
so the clone just holds an extra activation-sized buffer alive for the whole
block. Alias it instead.

Outputs are bitwise identical; peak activation memory drops by ~10%.
@luca-888 luca-888 changed the title [Wan2.2 VAE, Qwen-Image-2.1 VAE] Drop redundant input clone in residual up/down blocks (closed) Oct 14, 2026
@luca-888 luca-888 closed this Oct 14, 2026
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