[bug fix] Fix the placeholder in qwen prompt and add some unittests (#4065)

* fix the placeholder in qwen prompt

* fix the placeholder in qwen prompt

* add soem unittests for qwen_vl_processor
This commit is contained in:
lddfym
2025-09-11 20:00:02 +08:00
committed by GitHub
parent 850465e8ed
commit 2056a428bd
2 changed files with 116 additions and 7 deletions

View File

@@ -166,8 +166,8 @@ class DataProcessor:
}
# Define placeholders and their lengths
IMAGE_PLACEHOLDER = "<|image@placeholder|>"
VIDEO_PLACEHOLDER = "<|video@placeholder|>"
IMAGE_PLACEHOLDER = "<|image_pad|>"
VIDEO_PLACEHOLDER = "<|video_pad|>"
IMAGE_PLACEHOLDER_LEN = len(IMAGE_PLACEHOLDER)
VIDEO_PLACEHOLDER_LEN = len(VIDEO_PLACEHOLDER)