[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:
@@ -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",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user