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 chroma fp8 te being treated as fp16. (#11795)
comfyanonymous2f642d5d9b48
diff --git a/comfy/text_encoders/cosmos.py b/comfy/text_encoders/cosmos.pyindex 448381fa9..f4b40ac68 100644--- a/comfy/text_encoders/cosmos.py+++ b/comfy/text_encoders/cosmos.py@@ -36,7 +36,7 @@ def te(dtype_t5=None, t5_quantization_metadata=None):if t5_quantization_metadata is not None:model_options = model_options.copy()model_options["t5xxl_quantization_metadata"] = t5_quantization_metadata- if dtype is None:+ if dtype_t5 is not None:dtype = dtype_t5super().__init__(device=device, dtype=dtype, model_options=model_options)return CosmosTEModel_diff --git a/comfy/text_encoders/genmo.py b/comfy/text_encoders/genmo.pyindex 5daea8135..2d7a3fbce 100644--- a/comfy/text_encoders/genmo.py+++ b/comfy/text_encoders/genmo.py@@ -32,7 +32,7 @@ def mochi_te(dtype_t5=None, t5_quantization_metadata=None):if t5_quantization_metadata is not None:model_options = model_options.copy()model_options["t5xxl_quantization_metadata"] = t5_quantization_metadata- if dtype is None:+ if dtype_t5 is not None:dtype = dtype_t5super().__init__(device=device, dtype=dtype, model_options=model_options)return MochiTEModel_diff --git a/comfy/text_encoders/pixart_t5.py b/comfy/text_encoders/pixart_t5.pyindex e5e5f18be..51c6e50c7 100644--- a/comfy/text_encoders/pixart_t5.py+++ b/comfy/text_encoders/pixart_t5.py@@ -36,7 +36,7 @@ def pixart_te(dtype_t5=None, t5_quantization_metadata=None):if t5_quantization_metadata is not None:model_options = model_options.copy()model_options["t5xxl_quantization_metadata"] = t5_quantization_metadata- if dtype is None:+ if dtype_t5 is not None:dtype = dtype_t5super().__init__(device=device, dtype=dtype, model_options=model_options)return PixArtTEModel_