The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Fix hunyuan dit text encoder weights always being in fp32.
comfyanonymousa5991a7aa6f5
diff --git a/comfy/text_encoders/hydit.py b/comfy/text_encoders/hydit.pyindex ac0c893bc..9dfa288b1 100644--- a/comfy/text_encoders/hydit.py+++ b/comfy/text_encoders/hydit.py@@ -52,8 +52,8 @@ class HyditTokenizer: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: