2025-12-04 05:00:16 -06:00
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
|
|
|
"""Pytest configuration for vLLM pooling tests."""
|
|
|
|
|
|
2025-12-17 12:49:59 -05:00
|
|
|
import pytest
|
2025-12-04 05:00:16 -06:00
|
|
|
|
|
|
|
|
from vllm.platforms import current_platform
|
|
|
|
|
|
|
|
|
|
|
2025-12-17 12:49:59 -05:00
|
|
|
@pytest.fixture
|
|
|
|
|
def siglip_attention_config():
|
|
|
|
|
"""Return attention config for SigLIP tests on ROCm.
|
2025-12-04 05:00:16 -06:00
|
|
|
|
2025-12-17 12:49:59 -05:00
|
|
|
On ROCm, SigLIP tests require FLEX_ATTENTION backend.
|
|
|
|
|
"""
|
|
|
|
|
if current_platform.is_rocm():
|
|
|
|
|
return {"backend": "FLEX_ATTENTION"}
|
|
|
|
|
return None
|