Skip to content

Conversation

@DN6
Copy link
Collaborator

@DN6 DN6 commented Apr 2, 2025

What does this PR do?

Changes to the LTX VAE for 0.9.5 caused single file loading to break for the 0.9.1 version VAE. This is because we didn't have a timestep_scale_multiplier attribute in the decoder and removed it from the checkpoint during conversion. Although I think this might be a mistake because the parameter does exist in the 0.9.1 checkpoint and the VAE config seems to imply that it should be used.

The changes for 0.9.5 added the timestep_scale_multiplier attribute but since we were removing it in the conversion function, the model loading fails when trying to load the 0.9.1 checkpoint. This PR just skips removing the key from the checkpoint during conversion.

Fixes # (issue)

Before submitting

Who can review?

Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.

@DN6 DN6 requested a review from a-r-r-o-w April 2, 2025 18:45
@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Contributor

@a-r-r-o-w a-r-r-o-w left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! We updated the VAE weights to correctly use timestep_scale_multiplier (which was a learned parameter instead of fixed value 1000.0) when LTX 0.9.5 was merged

@DN6 DN6 merged commit aabf8ce into main Apr 4, 2025
14 of 15 checks passed
@a-r-r-o-w a-r-r-o-w deleted the ltx-vae-sf-fix branch April 4, 2025 14:05
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.

4 participants