Skip to content

Commit 33385c9

Browse files
committed
te
1 parent de1654a commit 33385c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/dreambooth/train_dreambooth_lora_hidream.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def _encode_prompt_with_llama(
895895
if attention_mask is None:
896896
raise ValueError("text_input_ids must be provided when the tokenizer is not specified")
897897

898-
outputs = self.text_encoder_4(
898+
outputs = text_encoder(
899899
text_input_ids.to(device),
900900
attention_mask=attention_mask.to(device),
901901
output_hidden_states=True,
@@ -1185,6 +1185,7 @@ def main(args):
11851185
"meta-llama/Meta-Llama-3.1-8B-Instruct",
11861186
revision=args.revision,
11871187
)
1188+
tokenizer_four.pad_token = tokenizer_four.eos_token
11881189

11891190
# import correct text encoder classes
11901191
text_encoder_cls_one = import_model_class_from_model_name_or_path(

0 commit comments

Comments
 (0)