Skip to content

Commit

Permalink
bugfix for mrope (#14)
Browse files Browse the repository at this point in the history
a fix follow up [MRotaryEmbedding
change](vllm-project/vllm@bf3b79e#diff-6bc44986c91bf0876240dec03d56c748403691c7fcd90f7a22e7affff7b033ecR839)

Signed-off-by: z00897138 <zhaorifa@huawei.com>
Co-authored-by: z00897138 <zhaorifa@huawei.com>
  • Loading branch information
zouyida2002 and z00897138 authored Feb 7, 2025
1 parent 7d9ae22 commit 4495fc6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions vllm_ascend/model_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -749,14 +749,10 @@ def _compute_multi_modal_input(self, inter_data: InterDataForSeqGroup,
mrope_input_positions, mrope_position_delta = \
MRotaryEmbedding.get_input_positions(
token_ids,
hf_config,
image_grid_thw=image_grid_thw,
video_grid_thw=video_grid_thw,
image_token_id=hf_config.image_token_id,
video_token_id=hf_config.video_token_id,
vision_start_token_id=hf_config.vision_start_token_id,
vision_end_token_id=hf_config.vision_end_token_id,
spatial_merge_size=hf_config.vision_config.
spatial_merge_size,
second_per_grid_ts=None,
context_len=inter_data.context_lens[seq_idx],
seq_len=inter_data.seq_lens[seq_idx],
)
Expand Down

0 comments on commit 4495fc6

Please sign in to comment.