From 738d0a281fab2e151a67b370c26b4e4360362f8f Mon Sep 17 00:00:00 2001 From: Chengyu Fang <36543092+cnyvfang@users.noreply.github.com> Date: Thu, 19 Mar 2026 02:36:34 +0800 Subject: [PATCH] [Bugfix] Fix incorrect use of merge_size in Qwen3-VL video timestamp calculation (#37439) Signed-off-by: chengyufang --- vllm/model_executor/models/qwen3_vl.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vllm/model_executor/models/qwen3_vl.py b/vllm/model_executor/models/qwen3_vl.py index bf02df7b4..4dd5b0631 100644 --- a/vllm/model_executor/models/qwen3_vl.py +++ b/vllm/model_executor/models/qwen3_vl.py @@ -767,7 +767,7 @@ class Qwen3VLProcessingInfo(Qwen2VLProcessingInfo): sampled_num_frames: int | None = None, ) -> list[int]: video_processor = self.get_video_processor() - merge_size = video_processor.merge_size + temporal_patch_size = video_processor.temporal_patch_size indices = metadata["frames_indices"] # metadata["fps"] refers to the true fps of the input video. @@ -806,7 +806,7 @@ class Qwen3VLProcessingInfo(Qwen2VLProcessingInfo): .astype(int) .tolist() ) - timestamps = self._calculate_timestamps(indices, video_fps, merge_size) + timestamps = self._calculate_timestamps(indices, video_fps, temporal_patch_size) return timestamps