Ensure minimum frames for GLM 4.6V compatibility (#30285)

Signed-off-by: Wayne Ferguson <wayneferguson@gmail.com>
This commit is contained in:
gh-wf 2025-12-11 00:26:49 -05:00 committed by GitHub
parent 1a516557e1
commit 36c9ce2554
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1257,6 +1257,7 @@ class Glm4vDummyInputsBuilder(BaseDummyInputsBuilder[Glm4vProcessingInfo]):
) )
height = min(height, overrides.height) height = min(height, overrides.height)
num_frames = max(num_frames, 2) # GLM 4.6V requires 2 frames
video = np.full((num_frames, width, height, 3), 255, dtype=np.uint8) video = np.full((num_frames, width, height, 3), 255, dtype=np.uint8)
video_items = [] video_items = []
for i in range(num_videos): for i in range(num_videos):