mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-20 15:48:20 +00:00
vram
This commit is contained in:
@@ -51,7 +51,7 @@ class TimestepEmbedder(nn.Module):
|
||||
|
||||
def forward(self, t):
|
||||
t_freq = self.timestep_embedding(t, self.frequency_embedding_size)
|
||||
t_emb = self.mlp(t_freq.to(self.mlp[0].weight.dtype))
|
||||
t_emb = self.mlp(t_freq.to(torch.bfloat16))
|
||||
return t_emb
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user