mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-09-09 05:07:01 +08:00
[ROCm][CI][Bugfix] Fix Siglip2 rotary embedding dispatch and InternVL video test tolerance (#31235)
Signed-off-by: Andreas Karatzas <akaratza@amd.com>
This commit is contained in:
parent
76e6a95192
commit
e42894f5b5
@ -513,6 +513,7 @@ VLM_TEST_SETTINGS = {
|
|||||||
max_model_len=8192,
|
max_model_len=8192,
|
||||||
use_tokenizer_eos=True,
|
use_tokenizer_eos=True,
|
||||||
patch_hf_runner=model_utils.internvl_patch_hf_runner,
|
patch_hf_runner=model_utils.internvl_patch_hf_runner,
|
||||||
|
num_logprobs=10 if current_platform.is_rocm() else 5,
|
||||||
),
|
),
|
||||||
"intern_vl-hf": VLMTestInfo(
|
"intern_vl-hf": VLMTestInfo(
|
||||||
models=["OpenGVLab/InternVL3-1B-hf"],
|
models=["OpenGVLab/InternVL3-1B-hf"],
|
||||||
|
|||||||
@ -163,8 +163,10 @@ def apply_rotary_pos_emb(
|
|||||||
enable_fp32_compute=True,
|
enable_fp32_compute=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
if is_flash_attn_backend and not current_platform.is_cuda():
|
if is_flash_attn_backend and current_platform.is_cuda():
|
||||||
apply_rotary_emb_func = apply_rotary_emb.forward_cuda
|
apply_rotary_emb_func = apply_rotary_emb.forward_cuda
|
||||||
|
elif is_flash_attn_backend and current_platform.is_rocm():
|
||||||
|
apply_rotary_emb_func = apply_rotary_emb.forward_hip
|
||||||
else:
|
else:
|
||||||
apply_rotary_emb_func = apply_rotary_emb.forward_native
|
apply_rotary_emb_func = apply_rotary_emb.forward_native
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user