Revert "fix: fix video input for qwen3-vl" (#11437)

This commit is contained in:
Lianmin Zheng
2025-10-10 12:44:40 -07:00
committed by GitHub
parent 52fcbbb8bd
commit b4408e6098
4 changed files with 3 additions and 45 deletions

View File

@@ -1126,11 +1126,6 @@ class MRotaryEmbedding(RotaryEmbedding):
second_per_grid_ts: Optional[torch.Tensor] = None,
**kwargs,
) -> Tuple[torch.Tensor, torch.Tensor]:
if model_type.startswith("qwen3_vl") and video_grid_thw is not None:
video_grid_thw = torch.repeat_interleave(
video_grid_thw, video_grid_thw[:, 0], dim=0
)
video_grid_thw[:, 0] = 1
mrope_position_deltas = []
if input_ids is not None and (
image_grid_thw is not None or video_grid_thw is not None