transformers
c2ab4167 - Fix GLM video frame padding for temporal patches (#47141)

Commit
119 days ago
Fix GLM video frame padding for temporal patches (#47141) Fix GLM/llama3 video frame padding for temporal patches Pad videos to the next multiple of `temporal_patch_size` instead of always repeating `temporal_patch_size - 1` frames. This matches the Qwen2-VL/Qwen3-VL video processor logic and keeps GLM4V, GLM46V, GLM-GA and video_llama3 processors correct when temporal patch sizes greater than 2 are configured.
Author
Parents
Loading