mirror of
https://github.com/NVIDIA/TensorRT-LLM.git
synced 2026-01-14 06:27:45 +08:00
[https://nvbugs/5547434][fix] Fix Qwen2.5-VL device_path error (#8057)
Signed-off-by: yechank <161688079+yechank-nvidia@users.noreply.github.com> Signed-off-by: Mike Iovine <6158008+mikeiovine@users.noreply.github.com>
This commit is contained in:
parent
1b559ba91d
commit
9587f099ac
@ -979,7 +979,7 @@ class Qwen2VLModel(Qwen2VLModelBase):
|
||||
return [
|
||||
"image.pixel_values", "image.image_grid_thw",
|
||||
"video.pixel_values_videos", "video.video_grid_thw",
|
||||
"multimodal_embedding", "mrope_config.mrope_position_ids"
|
||||
"multimodal_embedding"
|
||||
]
|
||||
|
||||
def load_weights(self, weights, weight_mapper: BaseWeightMapper):
|
||||
@ -1032,12 +1032,12 @@ class Qwen2_5_VLModel(Qwen2VLModelBase):
|
||||
return [
|
||||
"image.pixel_values", "video.pixel_values_videos",
|
||||
"image.image_grid_thw", "video.video_grid_thw",
|
||||
"multimodal_embedding", "mrope_config.mrope_position_ids"
|
||||
"multimodal_embedding"
|
||||
]
|
||||
else:
|
||||
return [
|
||||
"image.pixel_values", "video.pixel_values_videos",
|
||||
"multimodal_embedding", "mrope_config.mrope_position_ids"
|
||||
"multimodal_embedding"
|
||||
]
|
||||
|
||||
def load_weights(self, weights, weight_mapper: BaseWeightMapper):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user