@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / 4c91a28e30
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 14, 05:30 UTC

[bugfix] Qwen3-VL fix video incorrect timestamp calculations while do_sample_frames=True (#27104)

Co-authored-by: 松灵 <wpf272043@alibaba-inc.com>

燃 committed Oct 18, 2025 at 00:26 UTC 4c91a28e301dc55a8dccd683e203ca69f1d09939
1 file changed +2 -2
vllm/model_executor/models/qwen3_vl.py
+2 -2
@@ -735,9 +735,9 @@ class Qwen3VLProcessingInfo(Qwen2VLProcessingInfo):
735 if do_sample_frames:
736 # here video_fps is the fps of the sampled video, and
737 # metadata["fps"] refers to the fps of the original video.
738 - video_fps = sampled_fps if sampled_fps else video_processor.fps
738 + sampled_fps = sampled_fps if sampled_fps else video_processor.fps
739 total_num_frames = metadata["total_num_frames"]
740 - num_frames = int(total_num_frames / metadata["fps"] * video_fps)
740 + num_frames = int(total_num_frames / metadata["fps"] * sampled_fps)
741 num_frames = min(
742 min(
743 max(num_frames, video_processor.min_frames),