mirror of
https://github.com/modelscope/DiffSynth-Studio.git
synced 2026-03-24 18:28:10 +00:00
add flux_text_encoder.py
This commit is contained in:
@@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user