mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-24 04:15:01 +08:00
19 lines
487 B
Python
19 lines
487 B
Python
# SPDX-License-Identifier: Apache-2.0
|
|
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
|
"""Pytest configuration for vLLM pooling tests."""
|
|
|
|
import pytest
|
|
|
|
from vllm.platforms import current_platform
|
|
|
|
|
|
@pytest.fixture
|
|
def siglip_attention_config():
|
|
"""Return attention config for SigLIP tests on ROCm.
|
|
|
|
On ROCm, SigLIP tests require FLEX_ATTENTION backend.
|
|
"""
|
|
if current_platform.is_rocm():
|
|
return {"backend": "FLEX_ATTENTION"}
|
|
return None
|