Skip to content

[Unity][Frontend][NN] Switch to always using fp32 for timestep embedding calculation#15811

Merged
junrushao merged 2 commits intoapache:unityfrom
jwfromm:fp32_time_embeddings
Sep 23, 2023
Merged

[Unity][Frontend][NN] Switch to always using fp32 for timestep embedding calculation#15811
junrushao merged 2 commits intoapache:unityfrom
jwfromm:fp32_time_embeddings

Conversation

@jwfromm
Copy link
Contributor

@jwfromm jwfromm commented Sep 22, 2023

It turns out that using datatypes besides float32 when calculating timestep embeddings leads to substantial errors. The diffusers library just hard casts to float32 to avoid this and we should too.

@junrushao junrushao merged commit 676def7 into apache:unity Sep 23, 2023
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