Skip to content

Commit 2f642d5

Browse files
Fix chroma fp8 te being treated as fp16. (Comfy-Org#11795)
1 parent cd91296 commit 2f642d5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

comfy/text_encoders/cosmos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, device="cpu", dtype=None, model_options={}):
3636
if t5_quantization_metadata is not None:
3737
model_options = model_options.copy()
3838
model_options["t5xxl_quantization_metadata"] = t5_quantization_metadata
39-
if dtype is None:
39+
if dtype_t5 is not None:
4040
dtype = dtype_t5
4141
super().__init__(device=device, dtype=dtype, model_options=model_options)
4242
return CosmosTEModel_

comfy/text_encoders/genmo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def __init__(self, device="cpu", dtype=None, model_options={}):
3232
if t5_quantization_metadata is not None:
3333
model_options = model_options.copy()
3434
model_options["t5xxl_quantization_metadata"] = t5_quantization_metadata
35-
if dtype is None:
35+
if dtype_t5 is not None:
3636
dtype = dtype_t5
3737
super().__init__(device=device, dtype=dtype, model_options=model_options)
3838
return MochiTEModel_

comfy/text_encoders/pixart_t5.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def __init__(self, device="cpu", dtype=None, model_options={}):
3636
if t5_quantization_metadata is not None:
3737
model_options = model_options.copy()
3838
model_options["t5xxl_quantization_metadata"] = t5_quantization_metadata
39-
if dtype is None:
39+
if dtype_t5 is not None:
4040
dtype = dtype_t5
4141
super().__init__(device=device, dtype=dtype, model_options=model_options)
4242
return PixArtTEModel_

0 commit comments

Comments
 (0)