[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:
Andreas Karatzas
2025-12-23 20:56:58 -06:00
committed by GitHub
parent 76e6a95192
commit e42894f5b5
2 changed files with 4 additions and 1 deletions

View File

@@ -163,8 +163,10 @@ def apply_rotary_pos_emb(
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
elif is_flash_attn_backend and current_platform.is_rocm():
apply_rotary_emb_func = apply_rotary_emb.forward_hip
else:
apply_rotary_emb_func = apply_rotary_emb.forward_native