[Bugfix] Clean up multi-modal processors (#14417)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung
2025-03-07 10:33:38 +00:00
committed by GitHub
parent 12c29a881f
commit 05fb6718f0
12 changed files with 79 additions and 76 deletions
+2 -2
View File
@@ -446,8 +446,8 @@ class MiniCPMVProcessingInfo(BaseProcessingInfo):
def get_num_frames_with_most_features(self, seq_len: int) -> int:
mm_config = self.ctx.get_mm_config()
max_images = mm_config.limit_per_prompt.get("image", 1)
max_videos = mm_config.limit_per_prompt.get("video", 1)
max_images = mm_config.get_limit_per_prompt("image")
max_videos = mm_config.get_limit_per_prompt("video")
# count <image_idx></image_idx> tokens
# which are not in get_max_image_tokens