add flux_text_encoder.py

This commit is contained in:
Qianyi Zhao
2024-08-13 22:26:10 -05:00
committed by GitHub
parent abe88c899e
commit d1ac96c1ab

View File

@@ -49,8 +49,8 @@ class FLUXTextEncoder2(T5EncoderModel):
relative_attention_max_distance = 128, relative_attention_max_distance = 128,
relative_attention_num_buckets = 32, relative_attention_num_buckets = 32,
tie_word_embeddings = False, tie_word_embeddings = False,
torch_dtype = bfloat16, # change torch_dtype = "bfloat16",
transformers_version = "4.43.3", # change transformers_version = "4.43.3",
use_cache = True, use_cache = True,
vocab_size = 32128 vocab_size = 32128
) )