Skip to content

Commit

Permalink
bugfix for mrope
Browse files Browse the repository at this point in the history
Signed-off-by: zouyida <zouyida@huawei.com>
  • Loading branch information
zouyida2002 committed Feb 26, 2025
1 parent 97e1e1c commit 861fb55
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vllm_ascend/model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,7 @@ def _compute_multi_modal_input(self, inter_data: InterDataForSeqGroup,
assert image_grid_thw is not None or video_grid_thw is not None, (
"mrope embedding type requires multi-modal input mapper "
"returns 'image_grid_thw' or 'video_grid_thw'.")
second_per_grid_ts = mm_kwargs.get("second_per_grid_ts", None)

hf_config = self.runner.model_config.hf_config

Expand All @@ -724,7 +725,7 @@ def _compute_multi_modal_input(self, inter_data: InterDataForSeqGroup,
hf_config,
image_grid_thw=image_grid_thw,
video_grid_thw=video_grid_thw,
second_per_grid_ts=None,
second_per_grid_ts=second_per_grid_ts,
context_len=inter_data.context_lens[seq_idx],
seq_len=inter_data.seq_lens[seq_idx],
)
Expand Down

0 comments on commit 861fb55

Please sign in to comment.