[MM] Keep raw pixels through dp-sharded ViT path (#56872)

Signed-off-by: cjackal <44624812+cjackal@users.noreply.github.com>
This commit is contained in:
cjackal
2026-09-16 18:47:27 +00:00
committed by GitHub
parent 6b6bf6b3c3
commit 403f182c02
3 changed files with 7 additions and 6 deletions
+2 -2
View File
@@ -1379,7 +1379,7 @@ class Qwen2VLForConditionalGeneration(
if self.use_data_parallel:
return run_dp_sharded_mrope_vision_model(
self.visual,
pixel_values.type(self.visual.dtype),
pixel_values,
grid_thw.tolist(),
rope_type="rope_3d",
)
@@ -1404,7 +1404,7 @@ class Qwen2VLForConditionalGeneration(
if self.use_data_parallel:
return run_dp_sharded_mrope_vision_model(
self.visual,
pixel_values_videos.type(self.visual.dtype),
pixel_values_videos,
grid_thw.tolist(),
rope_type="rope_3d",
)