1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

ensure correct dtype for chroma embeddings

This commit is contained in:
Edna
2025-06-11 19:52:43 -06:00
committed by GitHub
parent a3b6697bc3
commit f783f38883

View File

@@ -1665,6 +1665,7 @@ class CombinedTimestepTextProjChromaEmbeddings(nn.Module):
torch.cat([timesteps_proj, guidance_proj], dim=1).repeat(1, mod_index_length, 1)
)
input_vec = torch.cat([timestep_guidance, mod_proj], dim=-1)
input_vec.to(dtype=timestep.dtype)
return input_vec
class CogView3CombinedTimestepSizeEmbeddings(nn.Module):