conftest.py 487 Bytes
Newer Older
1
2
3
4
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
"""Pytest configuration for vLLM pooling tests."""

5
import pytest
6
7
8
9

from vllm.platforms import current_platform


10
11
12
@pytest.fixture
def siglip_attention_config():
    """Return attention config for SigLIP tests on ROCm.
13

14
15
16
17
18
    On ROCm, SigLIP tests require FLEX_ATTENTION backend.
    """
    if current_platform.is_rocm():
        return {"backend": "FLEX_ATTENTION"}
    return None