Skip to content

Commit 6daf8f9

Browse files
war
Signed-off-by: Pamela <[email protected]>
1 parent 87d1d3a commit 6daf8f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tensorrt_llm/_torch/models/modeling_qwen2vl.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ def __init__(self, model_config: ModelConfig[PretrainedConfig],
361361
model = model_class.from_pretrained(
362362
model_path,
363363
torch_dtype=pretrained_config.torch_dtype,
364-
attn_implementation='flash_attention_2').eval()
364+
attn_implementation='flash_attention_2',
365+
ignore_mismatched_sizes=True).eval()
365366
# TODO: Make vision model compatible with meta init mode and load_weights at the same place
366367
self.visual = model.visual.to(self.device)
367368
self.post_config()

0 commit comments

Comments
 (0)