Skip to content

Commit e6ff3dd

Browse files
committed
pyink
1 parent 715b915 commit e6ff3dd

File tree

4 files changed

+734
-722
lines changed

4 files changed

+734
-722
lines changed

src/MaxText/decode.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ def main(argv: Sequence[str]) -> None:
106106

107107
prefill_length -= image_offsets
108108
text = multimodal_utils.reformat_prompt(
109-
text, image_placeholder=config.image_placeholder, model_name=config.model_name, num_images=processor_outputs.num_images
109+
text,
110+
image_placeholder=config.image_placeholder,
111+
model_name=config.model_name,
112+
num_images=processor_outputs.num_images,
110113
)
111114

112115
metadata = engine.get_tokenizer()

src/MaxText/multimodal/preprocessor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@ def preprocess_mm_data(config):
4242
else:
4343
raise ValueError(f"Model {config.model_name} not supported for multimodal preprocessing.")
4444

45-
return processor_outputs
45+
return processor_outputs

0 commit comments

Comments
 (0)