ZhouZJ36DL commited on
Commit
ce81982
·
1 Parent(s): 816f580

modified: src/flux/util.py

Browse files
Files changed (1) hide show
  1. src/flux/util.py +1 -1
src/flux/util.py CHANGED
@@ -131,7 +131,7 @@ def load_flow_model(name: str, device: str | torch.device = "cuda", hf_download:
131
 
132
  def load_t5(device: str | torch.device = "cuda", max_length: int = 512) -> HFEmbedder:
133
  # max length 64, 128, 256 and 512 should work (if your sequence is short enough)
134
- return HFEmbedder("google/t5-v1_1-xxl", max_length=max_length, is_clip=False, torch_dtype=torch.bfloat16).to(device)
135
  #return HFEmbedder("/homedata/HuggingFace/black-forest-labs/FLUX.1-dev/text_encoder_2", max_length=max_length, is_clip=False, torch_dtype=torch.bfloat16).to(device)
136
 
137
 
 
131
 
132
  def load_t5(device: str | torch.device = "cuda", max_length: int = 512) -> HFEmbedder:
133
  # max length 64, 128, 256 and 512 should work (if your sequence is short enough)
134
+ return HFEmbedder("google/t5-v1_1-xl", max_length=max_length, is_clip=False, torch_dtype=torch.bfloat16).to(device)
135
  #return HFEmbedder("/homedata/HuggingFace/black-forest-labs/FLUX.1-dev/text_encoder_2", max_length=max_length, is_clip=False, torch_dtype=torch.bfloat16).to(device)
136
 
137