Commit 315e627a authored by lixh6's avatar lixh6
Browse files

Update glm4_1v.py 修复GLM模型虚拟视频插入失败

parent 0144aef4
...@@ -1017,7 +1017,7 @@ class Glm4vProcessingInfo(BaseProcessingInfo): ...@@ -1017,7 +1017,7 @@ class Glm4vProcessingInfo(BaseProcessingInfo):
max_frames_per_video = min(max_total_frames // max(max_videos, 1), max_frames_per_video = min(max_total_frames // max(max_videos, 1),
_MAX_FRAMES_PER_VIDEO) _MAX_FRAMES_PER_VIDEO)
return max(max_frames_per_video, 1) return max(max_frames_per_video, 2) # vllm issue #30645 restore
def _get_video_second_idx(self, metadata: dict[str, Any], def _get_video_second_idx(self, metadata: dict[str, Any],
total_frames: int) -> list[int]: total_frames: int) -> list[int]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment