Skip to content

Fix LatteTransformer3DModel dtype mismatch with enable_temporal_attentions #11139

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 29, 2025

Conversation

hlky
Copy link
Contributor

@hlky hlky commented Mar 22, 2025

What does this PR do?

temp_pos_embed is in float32, hidden_states is in the appropriate dtype before hidden_states = hidden_states + self.temp_pos_embed then it becomes float32. temp_pos_embed is cast to hidden_states.dtype instead.

Fixes #11137

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.

@hlky
Copy link
Contributor Author

hlky commented Mar 22, 2025

cc @vladmandic

@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.

@vladmandic
Copy link
Contributor

can you restart the tests? seems they failed only because site was unreachable.

@hlky hlky requested review from DN6 and a-r-r-o-w March 28, 2025 23:08
@hlky hlky merged commit 75d7e5c into huggingface:main Mar 29, 2025
11 of 12 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.

LattePipeline fails with dtype mismatch
4 participants