Skip to content

Commit 913bcb0

Browse files
committed
Merge branch 'bugfix/fix_id_list' of https://github.com/kxz2002/FastDeploy into bugfix/fix_id_list
2 parents bcd67a4 + 0337379 commit 913bcb0

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

fastdeploy/input/ernie4_5_vl_processor/process.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -428,12 +428,6 @@ def prompt_token_ids2outputs(
428428
raise ValueError("number of images does not match")
429429
if video_idx != len(videos):
430430
raise ValueError("number of videos does not match")
431-
# for test cases
432-
if len(outputs["input_ids"]) != prompt_token_ids_len:
433-
raise ValueError("number of token ids does not match")
434-
for idx in range(prompt_token_ids_len):
435-
if outputs["input_ids"][idx] != prompt_token_ids[idx]:
436-
raise ValueError("token ids does not match")
437431

438432
if self.enable_processor_cache:
439433
missing_idx = set(missing_idx)

0 commit comments

Comments
 (0)