Skip to content

Conversation

@prishajain1
Copy link
Collaborator

This change is needed to resolve the OOM issues faced when running the WAN 2.2 I2V pipeline for 720px for higher batch sizes.

Files changed:
wan_pipeline.py : In prepare_latents_i2v_base, added an explicit JAX sharding constraint to the video_condition tensor before it is passed to the VAE encoder.

Changes were made only to prepare_latents_i2v_base which is called only by I2V pipelines, hence tested the I2V pipelines.

Tested:

@github-actions
Copy link

@prishajain1 prishajain1 requested a review from entrpn January 20, 2026 19:05
@entrpn
Copy link
Collaborator

entrpn commented Jan 20, 2026

@prishajain1 can you do one run on multihost to ensure it works. Thanks!

@prishajain1
Copy link
Collaborator Author

@entrpn entrpn merged commit f9b6ff9 into main Jan 21, 2026
4 checks passed
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