mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-05-24 11:37:53 +08:00
fix pre-commit
Signed-off-by: bk-201 <joy25810@foxmail.com>
This commit is contained in:
parent
fe104bd63c
commit
1c8e3c4486
@ -2185,7 +2185,7 @@ class GPUModelRunner(
|
|||||||
# pos_info.length may overcount (e.g., special tokens in Qwen-VL).
|
# pos_info.length may overcount (e.g., special tokens in Qwen-VL).
|
||||||
# Fall back to length if is_embed is None.
|
# Fall back to length if is_embed is None.
|
||||||
num_tokens = self.info.get_num_mm_encoder_tokens( # type: ignore[attr-defined]
|
num_tokens = self.info.get_num_mm_encoder_tokens( # type: ignore[attr-defined]
|
||||||
pos_info.get_num_embeds()
|
pos_info.get_num_embeds
|
||||||
)
|
)
|
||||||
prompt_lora_mapping.append(lora_id)
|
prompt_lora_mapping.append(lora_id)
|
||||||
token_lora_mapping.extend([lora_id] * num_tokens)
|
token_lora_mapping.extend([lora_id] * num_tokens)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user