Skip to content

Commit a25e79c

Browse files
committed
remove unneeded flux2 text encoder float cast before quantization
1 parent f3e8689 commit a25e79c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

python/src/coreai_models/diffusion/pipeline.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,6 @@ def _load_hf_pipeline(model_id: str, pipeline_type: str, model_dtype: torch.dtyp
162162
from diffusers import Flux2KleinPipeline
163163

164164
hf_pipe = Flux2KleinPipeline.from_pretrained(model_id, torch_dtype=model_dtype)
165-
# Text encoder needs float32 for token embedding precision
166-
hf_pipe.text_encoder = hf_pipe.text_encoder.float()
167165
return hf_pipe
168166

169167
if pipeline_type == "sd3":

0 commit comments

Comments
 (0)