We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de1654a commit 33385c9Copy full SHA for 33385c9
examples/dreambooth/train_dreambooth_lora_hidream.py
@@ -895,7 +895,7 @@ def _encode_prompt_with_llama(
895
if attention_mask is None:
896
raise ValueError("text_input_ids must be provided when the tokenizer is not specified")
897
898
- outputs = self.text_encoder_4(
+ outputs = text_encoder(
899
text_input_ids.to(device),
900
attention_mask=attention_mask.to(device),
901
output_hidden_states=True,
@@ -1185,6 +1185,7 @@ def main(args):
1185
"meta-llama/Meta-Llama-3.1-8B-Instruct",
1186
revision=args.revision,
1187
)
1188
+ tokenizer_four.pad_token = tokenizer_four.eos_token
1189
1190
# import correct text encoder classes
1191
text_encoder_cls_one = import_model_class_from_model_name_or_path(
0 commit comments