Skip to content

Commit

Permalink
Fix hunyuan dit text encoder weights always being in fp32.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Jul 31, 2024
1 parent 2c038cc commit a5991a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comfy/text_encoders/hydit.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def state_dict(self):
class HyditModel(torch.nn.Module):
def __init__(self, device="cpu", dtype=None):
super().__init__()
self.hydit_clip = HyditBertModel()
self.mt5xl = MT5XLModel()
self.hydit_clip = HyditBertModel(dtype=dtype)
self.mt5xl = MT5XLModel(dtype=dtype)

self.dtypes = set()
if dtype is not None:
Expand Down

0 comments on commit a5991a7

Please sign in to comment.