Skip to content

Commit 6c0c617

Browse files
update seq2seq test
1 parent bd8b41f commit 6c0c617

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

optimum/intel/openvino/modeling_visual_language.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2111,6 +2111,9 @@ def preprocess_inputs(
21112111
)
21122112
inputs = processor([prompt], [image], return_tensors="pt")
21132113
inputs.pop("image_sizes", None)
2114+
# skip the temporal_ids which makes the number of loop inconstant:
2115+
# https://huggingface.co/openbmb/MiniCPM-V-4_5/blob/main/resampler.py#L261
2116+
inputs.pop("temporal_ids", None)
21142117
return inputs
21152118

21162119

0 commit comments

Comments
 (0)